Project
Loading...
Searching...
No Matches
TPCZSLinkMapping.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
14
15
#include "
TPCZSLinkMapping.h
"
16
#include "
TPCBase/Mapper.h
"
17
18
#include <algorithm>
19
#include <cassert>
20
21
using namespace
o2::gpu
;
22
23
TPCZSLinkMapping::TPCZSLinkMapping
(
o2::tpc::Mapper
& mapper)
24
{
25
#ifdef GPUCA_TPC_GEOMETRY_O2
26
const
auto
& fecToGlobalPad = mapper.
getMapFECIDGlobalPad
();
27
assert(fecToGlobalPad.size() ==
TPC_FEC_IDS_IN_SECTOR
);
28
29
const
auto
& globalPadToPadPos = mapper.
getMapGlobalPadToPadPos
();
30
assert(globalPadToPadPos.size() ==
TPC_PADS_IN_SECTOR
);
31
32
for
(
size_t
i
= 0;
i
<
TPC_FEC_IDS_IN_SECTOR
;
i
++) {
33
FECIDToPadPos[
i
] = globalPadToPadPos[fecToGlobalPad[
i
]];
34
}
35
#endif
36
}
i
int32_t i
Definition
GPUCommonAlgorithm.h:443
TPCZSLinkMapping.h
Mapper.h
o2::tpc::Mapper
Definition
Mapper.h:42
o2::tpc::Mapper::getMapGlobalPadToPadPos
const std::vector< PadPos > & getMapGlobalPadToPadPos() const
Definition
Mapper.h:447
o2::tpc::Mapper::getMapFECIDGlobalPad
const std::vector< int > & getMapFECIDGlobalPad() const
Definition
Mapper.h:448
TPC_PADS_IN_SECTOR
#define TPC_PADS_IN_SECTOR
Definition
clusterFinderDefs.h:43
TPC_FEC_IDS_IN_SECTOR
#define TPC_FEC_IDS_IN_SECTOR
Definition
clusterFinderDefs.h:44
o2::gpu
Definition
TrackTRD.h:35
o2::gpu::TPCZSLinkMapping::TPCZSLinkMapping
TPCZSLinkMapping()=default
GPU
GPUTracking
DataTypes
TPCZSLinkMapping.cxx
Generated on Tue Feb 25 2025 17:03:25 for Project by
1.9.8