Project
Loading...
Searching...
No Matches
ChEffCounter.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
17#ifndef O2_MID_CHEFFCOUNTER_H
18#define O2_MID_CHEFFCOUNTER_H
19
20#include <cstdint>
21#include <array>
22#include <cstddef>
23
24namespace o2
25{
26namespace mid
27{
28enum class EffCountType {
29 BendPlane,
33};
34
37 uint8_t deId = 0;
38 uint8_t columnId = 0;
39 uint8_t lineId = 0;
40 std::array<uint32_t, 4> counts;
41
45 uint32_t getCounts(EffCountType type) const { return counts[static_cast<size_t>(type)]; }
46};
47
48} // namespace mid
49} // namespace o2
50
51#endif /* O2_MID_CHEFFCOUNTER_H */
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
@ BendPlane
Bending plane counters.
@ BothPlanes
Both plane counters.
@ AllTracks
All tracks counters.
@ NonBendPlane
Non-bending plane counters.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Column data structure for MID.
uint8_t lineId
Line in column.
std::array< uint32_t, 4 > counts
Counts.
uint32_t getCounts(EffCountType type) const
Returns the efficiency counter.
uint8_t columnId
Column in DE.
uint8_t deId
Index of the detection element.