Project
Loading...
Searching...
No Matches
PadFlags.h
Go to the documentation of this file.
1// Copyright 2019-2025 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
18
19#ifndef AliceO2_TPC_PadFlags_H
20#define AliceO2_TPC_PadFlags_H
21
22namespace o2::tpc
23{
24
25enum class PadFlags : unsigned short {
26 flagGoodPad = 1 << 0,
27 flagDeadPad = 1 << 1,
28 flagUnknownPad = 1 << 2,
29 flagSaturatedPad = 1 << 3,
30 flagHighPad = 1 << 4,
31 flagLowPad = 1 << 5,
32 flagSkip = 1 << 6,
33 flagFEC = 1 << 7,
34 flagNeighbour = 1 << 8,
36};
37
38inline PadFlags operator&(PadFlags a, PadFlags b) { return static_cast<PadFlags>(static_cast<int>(a) & static_cast<int>(b)); }
39inline PadFlags operator~(PadFlags a) { return static_cast<PadFlags>(~static_cast<int>(a)); }
40inline PadFlags operator|(PadFlags a, PadFlags b) { return static_cast<PadFlags>(static_cast<int>(a) | static_cast<int>(b)); }
41
42} // namespace o2::tpc
43
44#endif
GLboolean GLboolean GLboolean b
Definition glcorearb.h:1233
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233
Global TPC definitions and constants.
Definition SimTraits.h:168
SourcesDeadMap operator|(SourcesDeadMap a, SourcesDeadMap b)
SourcesDeadMap operator&(SourcesDeadMap a, SourcesDeadMap b)
SourcesDeadMap operator~(SourcesDeadMap a)
@ flagUnknownPad
flag for unknown status binary 0100
@ flagLowPad
flag for pad with extremly low IDC value
@ flagNeighbour
flag if n neighbouring pads are outlier
@ flagGoodPad
flag for a good pad binary 0001
@ flagSkip
flag for defining a pad which is just ignored during the calculation of I1 and IDCDelta
@ flagDeadPad
flag for a dead pad binary 0010
@ flagHighPad
flag for pad with extremly high IDC value
@ flagFEC
flag for a whole masked FEC
@ flagSaturatedPad
flag for saturated status binary 0100