Project
Loading...
Searching...
No Matches
PadCalibrationsAliases.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
12#ifndef O2_TRD_PADCALIBALIASES_H
13#define O2_TRD_PADCALIBALIASES_H
14
16// Store for the pad status across the entire TRD.
17// PadCalibrations stores the roc, and PadParameters the actual content of
18// statuses.
19//
20// Note to run2 correlation:
21// This then matches similarly to the old AliTRDCalPadStatus which held an
22// array of AliTRDCalSingleChamberStatus.
23// Only real change to the interface is that one now needs to explicitly
24// state the roc in question when querying a pads status, as the method is
25// higher up in the heirachy now.
27
30
32
33namespace o2
34{
35namespace trd
36{
37
38class PadStatus : public PadCalibrations<char>
39{
40 public:
41 enum { kMasked = 2,
46 bool isMasked(int roc, int col, int row) const { return ((getValue(roc, col, row) & kMasked) ? true : false); };
47 bool isBridgedLeft(int roc, int col, int row) const { return ((getValue(roc, col, row) & kPadBridgedLeft) ? true : false); };
48 bool isBridgedRight(int roc, int col, int row) const { return ((getValue(roc, col, row) & kPadBridgedRight) ? true : false); };
49 bool isNotConnected(int roc, int col, int row) const { return ((getValue(roc, col, row) & kNotConnected) ? true : false); };
50
51 private:
52 ClassDefNV(PadStatus, 1);
53};
54
57
58} // namespace trd
59} // namespace o2
60
61#endif // O2_TRD_PADCALIBALIASES_H
uint32_t roc
Definition RawData.h:3
uint32_t col
Definition RawData.h:4
char getValue(int roc, int col, int row) const
bool isBridgedLeft(int roc, int col, int row) const
bool isNotConnected(int roc, int col, int row) const
bool isBridgedRight(int roc, int col, int row) const
bool isMasked(int roc, int col, int row) const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< int > row