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
21using namespace o2::gpu;
22
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}
int32_t i
const std::vector< PadPos > & getMapGlobalPadToPadPos() const
Definition Mapper.h:447
const std::vector< int > & getMapFECIDGlobalPad() const
Definition Mapper.h:448
#define TPC_PADS_IN_SECTOR
#define TPC_FEC_IDS_IN_SECTOR