Project
Loading...
Searching...
No Matches
ChamberEfficiency.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#ifndef O2_MID_CHAMBEREFFICIENCY_H
17#define O2_MID_CHAMBEREFFICIENCY_H
18
19#include <cstdint>
20#include <vector>
21#include <unordered_map>
22
24
25namespace o2
26{
27namespace mid
28{
29
31{
32 public:
33 enum class EffType {
34 BendPlane,
37 };
38
41 void setFromCounters(const std::vector<ChEffCounter>& counters);
42
48 double getEfficiency(int deId, int columnId, int lineId, EffType type) const;
49
56 void addEntry(bool isEfficientBP, bool isEfficientNBP, int deId, int columnId, int lineId);
57
60 std::vector<ChEffCounter> getCountersAsVector() const;
61
62 private:
66 EffCountType convert(EffType type) const;
67 std::unordered_map<uint16_t, ChEffCounter> mCounters;
68};
69
70ChamberEfficiency createDefaultChamberEfficiency();
71
72} // namespace mid
73} // namespace o2
74
75#endif /* O2_MID_CHAMBEREFFICIENCY_H */
Chamber efficiency counters.
@ BendPlane
Bending plane efficiency.
@ BothPlanes
Both plane efficiency.
@ NonBendPlane
Non-bending plane efficiency.
double getEfficiency(int deId, int columnId, int lineId, EffType type) const
std::vector< ChEffCounter > getCountersAsVector() const
void addEntry(bool isEfficientBP, bool isEfficientNBP, int deId, int columnId, int lineId)
void setFromCounters(const std::vector< ChEffCounter > &counters)
GLint GLint GLsizei GLuint * counters
Definition glcorearb.h:3985
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
ChamberEfficiency createDefaultChamberEfficiency()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...