Project
Loading...
Searching...
No Matches
TPCPadBitMap.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 "
TPCPadBitMap.h
"
16
17
#include "
GPUTPCGeometry.h
"
18
#include "
DataFormatsTPC/Constants.h
"
19
20
using namespace
o2::gpu
;
21
22
TPCPadBitMap::TPCPadBitMap
()
23
{
24
constexpr
GPUTPCGeometry
geo;
25
int32_t
offset
= 0;
26
for
(uint32_t
r
= 0;
r
< GPUTPCGeometry::NROWS;
r
++) {
27
mPadOffsetPerRow
[
r
] =
offset
;
28
offset
+= geo.NPads(
r
);
29
}
30
}
31
32
#ifndef GPUCA_STANDALONE
33
#include "
TPCBase/CalDet.h
"
34
35
TPCPadBitMap::TPCPadBitMap
(
const
o2::tpc::CalDet<bool>
& map) :
TPCPadBitMap
()
36
{
37
setFromMap
(map);
38
}
39
40
void
TPCPadBitMap::setFromMap
(
const
o2::tpc::CalDet<bool>
& map)
41
{
42
for
(int32_t sector = 0; sector < o2::tpc::constants::MAXSECTOR; sector++) {
43
for
(int32_t p = 0; p <
TPC_REAL_PADS_IN_SECTOR
; p++) {
44
const
auto
val
= map.
getValue
(sector, p);
45
mBitMap
[sector].set(p,
val
);
46
}
47
}
48
}
49
#endif
CalDet.h
Constants.h
GPUTPCGeometry.h
TPCPadBitMap.h
o2::gpu::GPUTPCGeometry
Definition
GPUTPCGeometry.h:103
o2::tpc::CalDet
Definition
CalDet.h:47
o2::tpc::CalDet::getValue
const T getValue(const int sec, const int globalPadInSector) const
Definition
CalDet.h:160
TPC_REAL_PADS_IN_SECTOR
#define TPC_REAL_PADS_IN_SECTOR
Definition
clusterFinderDefs.h:48
offset
GLintptr offset
Definition
glcorearb.h:660
val
GLuint GLfloat * val
Definition
glcorearb.h:1582
r
GLboolean r
Definition
glcorearb.h:1233
o2::gpu
Definition
TrackTRD.h:36
o2::gpu::TPCPadBitMap
Definition
TPCPadBitMap.h:33
o2::gpu::TPCPadBitMap::TPCPadBitMap
TPCPadBitMap()
Definition
TPCPadBitMap.cxx:22
o2::gpu::TPCPadBitMap::mBitMap
SectorBitMap mBitMap[o2::tpc::constants::MAXSECTOR]
Definition
TPCPadBitMap.h:108
o2::gpu::TPCPadBitMap::mPadOffsetPerRow
GPUdi() uint16_t globalPad(tpccf uint16_t mPadOffsetPerRow[o2::tpc::constants::MAXGLOBALPADROW]
Definition
TPCPadBitMap.h:63
o2::gpu::TPCPadBitMap::setFromMap
void setFromMap(const o2::tpc::CalDet< bool > &)
setting the stored values from CalDet
Definition
TPCPadBitMap.cxx:40
GPU
GPUTracking
DataTypes
TPCPadBitMap.cxx
Generated on Fri Sep 25 2026 13:59:31 for Project by
1.9.8