Project
Loading...
Searching...
No Matches
PartitionInfo.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
26
27#ifndef ALICEO2_TPC_PARTITIONINFO_H_
28#define ALICEO2_TPC_PARTITIONINFO_H_
29
30namespace o2
31{
32namespace tpc
33{
34
36{
37 public:
38 PartitionInfo() = default;
39
40 PartitionInfo(const unsigned char numberOfFECs,
41 const unsigned char sectorFECOffset,
42 const unsigned char numberOfPadRows,
43 const unsigned char globalRowOffset,
44 const unsigned short numberOfPads);
45
46 unsigned char getNumberOfFECs() const { return mNumberOfFECs; }
47 unsigned char getSectorFECOffset() const { return mSectorFECOffset; }
48 unsigned char getNumberOfPadRows() const { return mNumberOfPadRows; }
49 unsigned char getGlobalRowOffset() const { return mGlobalRowOffset; }
50 unsigned short getNumberOfPads() const { return mNumberOfPads; }
51
52 private:
53 unsigned char mNumberOfFECs{0};
54 unsigned char mSectorFECOffset{0};
55 unsigned char mNumberOfPadRows{0};
56 unsigned char mGlobalRowOffset{0};
57 unsigned short mNumberOfPads{0};
58};
59
60} // namespace tpc
61} // namespace o2
62
63#endif // ALICEO2_TPC_PARTITIONINFO_H_
unsigned char getNumberOfFECs() const
unsigned char getGlobalRowOffset() const
unsigned char getSectorFECOffset() const
unsigned short getNumberOfPads() const
unsigned char getNumberOfPadRows() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...