Project
Loading...
Searching...
No Matches
DigitPos.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
12
#include "
TPCBase/DigitPos.h
"
13
#include "
TPCBase/Mapper.h
"
14
15
namespace
o2
16
{
17
namespace
tpc
18
{
19
20
PadPos
DigitPos::getGlobalPadPos
()
const
21
{
22
const
Mapper
& mapper =
Mapper::instance
();
23
const
PadRegionInfo
& p = mapper.
getPadRegionInfo
(mCRU.
region
());
24
25
return
PadPos
(mPadPos.getRow() + p.getGlobalRowOffset(), mPadPos.getPad());
26
}
27
28
PadSecPos
DigitPos::getPadSecPos
()
const
29
{
30
return
PadSecPos
(mCRU.
sector
(),
getGlobalPadPos
());
31
}
32
33
}
// namespace tpc
34
}
// namespace o2
DigitPos.h
Mapper.h
o2::tpc::CRU::region
unsigned char region() const
Definition
CRU.h:64
o2::tpc::CRU::sector
const Sector sector() const
Definition
CRU.h:65
o2::tpc::DigitPos::getPadSecPos
PadSecPos getPadSecPos() const
Definition
DigitPos.cxx:28
o2::tpc::DigitPos::getGlobalPadPos
PadPos getGlobalPadPos() const
Definition
DigitPos.cxx:20
o2::tpc::Mapper
Definition
Mapper.h:42
o2::tpc::Mapper::instance
static Mapper & instance(const std::string mappingDir="")
Definition
Mapper.h:44
o2::tpc::Mapper::getPadRegionInfo
const PadRegionInfo & getPadRegionInfo(const unsigned char region) const
Definition
Mapper.h:385
o2::tpc::PadPos
Definition
PadPos.h:35
o2::tpc::PadRegionInfo
Definition
PadRegionInfo.h:41
o2::tpc::PadSecPos
Definition
PadSecPos.h:37
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
TPC
base
src
DigitPos.cxx
Generated on Fri Jun 27 2025 13:12:48 for Project by
1.9.8