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
15namespace o2
16{
17namespace tpc
18{
19
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
29{
30 return PadSecPos(mCRU.sector(), getGlobalPadPos());
31}
32
33} // namespace tpc
34} // namespace o2
unsigned char region() const
Definition CRU.h:64
const Sector sector() const
Definition CRU.h:65
PadSecPos getPadSecPos() const
Definition DigitPos.cxx:28
PadPos getGlobalPadPos() const
Definition DigitPos.cxx:20
static Mapper & instance(const std::string mappingDir="")
Definition Mapper.h:44
const PadRegionInfo & getPadRegionInfo(const unsigned char region) const
Definition Mapper.h:385
unsigned char getGlobalRowOffset() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...