Project
Loading...
Searching...
No Matches
PadSecPos.h
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
16
25
26#ifndef AliceO2_TPC_PadSecPos_H
27#define AliceO2_TPC_PadSecPos_H
28
29#include "TPCBase/Sector.h"
30#include "TPCBase/PadPos.h"
31
32namespace o2
33{
34namespace tpc
35{
37{
38 public:
39 PadSecPos() = default;
40
41 PadSecPos(const int sector, const int rowInSector, const int padInRow) : mSector(sector), mPadPos(PadPos(rowInSector, padInRow)) {}
42 PadSecPos(const Sector& sec, const PadPos& padPosition) : mSector(sec), mPadPos(padPosition) {}
43
44 Sector getSector() const { return mSector; }
45
46 Sector& getSector() { return mSector; }
47
48 const PadPos& getPadPos() const { return mPadPos; }
49
50 PadPos& getPadPos() { return mPadPos; }
51
52 private:
53 Sector mSector{};
54 PadPos mPadPos{};
55};
56} // namespace tpc
57} // namespace o2
58#endif
PadSecPos(const Sector &sec, const PadPos &padPosition)
Definition PadSecPos.h:42
PadSecPos(const int sector, const int rowInSector, const int padInRow)
Definition PadSecPos.h:41
Sector getSector() const
Definition PadSecPos.h:44
const PadPos & getPadPos() const
Definition PadSecPos.h:48
PadPos & getPadPos()
Definition PadSecPos.h:50
Sector & getSector()
Definition PadSecPos.h:46
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...