Project
Loading...
Searching...
No Matches
StatusHelper.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
15
16#ifndef O2_TRD_STATUSHELPER_H
17#define O2_TRD_STATUSHELPER_H
18
20
21#include "Rtypes.h"
22
23#include <bitset>
24
25namespace o2
26{
27
28namespace trd
29{
30
32{
33
34 public:
36 void maskChamber(int sec, int stack, int ly);
37 void maskHalfChamberA(int sec, int stack, int ly);
38 void maskHalfChamberB(int sec, int stack, int ly);
39 bool isMasked(int hcId) const { return mStatus.test(hcId); }
40 void print();
41
42 private:
43 std::bitset<constants::MAXHALFCHAMBER> mStatus{};
44
45 ClassDefNV(HalfChamberStatusQC, 1);
46};
47
48} // namespace trd
49
50} // namespace o2
51
52#endif // O2_TRD_STATUSHELPER_H
Global TRD definitions and constants.
uint32_t stack
Definition RawData.h:1
void maskHalfChamberB(int sec, int stack, int ly)
bool isMasked(int hcId) const
void maskChamber(int sec, int stack, int ly)
void maskHalfChamberA(int sec, int stack, int ly)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...