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"
19
20using namespace o2::gpu;
21
23{
24 GPUTPCGeometry geo{};
25 int32_t offset = 0;
26 for (int32_t r = 0; r < GPUCA_ROW_COUNT; r++) {
28 offset += geo.NPads(r);
29 }
30}
31
32#ifndef GPUCA_STANDALONE
33#include "TPCBase/CalDet.h"
34
39
41{
42 for (int32_t sector = 0; sector < o2::tpc::constants::MAXSECTOR; sector++) {
43 for (int32_t p = 0; p < TPC_PADS_IN_SECTOR; p++) {
44 const auto val = map.getValue(sector, p);
45 mBitMap[sector].set(p, val);
46 }
47 }
48}
49#endif
#define GPUCA_ROW_COUNT
const T getValue(const int sec, const int globalPadInSector) const
Definition CalDet.h:154
#define TPC_PADS_IN_SECTOR
GLintptr offset
Definition glcorearb.h:660
GLuint GLfloat * val
Definition glcorearb.h:1582
GLboolean r
Definition glcorearb.h:1233
constexpr int MAXSECTOR
Definition Constants.h:28
GPUdi() uint16_t globalPad(tpccf uint16_t mPadOffsetPerRow[GPUCA_ROW_COUNT]
SectorBitMap mBitMap[GPUCA_NSECTORS]
void setFromMap(const o2::tpc::CalDet< bool > &)
setting the stored values from CalDet