39 for (
auto&
count : mCounters) {
61 auto entryTot = mCounters.find(idx);
62 if (entryTot == mCounters.end()) {
63 std::cerr <<
"Warning: no efficiency found for deId: " << deId <<
" column: " << columnId <<
" line: " << lineId <<
" type: " <<
static_cast<int>(
type) <<
"\n";
66 return static_cast<double>(entryTot->second.getCounts(convert(
type))) /
static_cast<double>(entryTot->second.getCounts(
EffCountType::AllTracks));
74 entry.columnId = columnId;
75 entry.lineId = lineId;
83 if (isEfficientBP && isEfficientNBP) {
93 uint32_t nevents = 10000;
97 for (uint32_t ievent = 0; ievent < nevents; ++ievent) {
98 effMap.
addEntry(
true,
true, ide, icol, iline);
Measured values of the RPC efficiency.
Useful detector parameters for MID.
@ 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)
int getFirstColumn(int deId) const
int getLastBoardBP(int column, int deId) const
int getFirstBoardBP(int column, int deId) const
GLint GLint GLsizei GLuint * counters
GLint GLint GLsizei GLint GLenum GLenum type
constexpr int NDetectionElements
Number of RPCs.
uint16_t makeUniqueFEEId(int deId, int columnId, int lineId)
@ BendPlane
Bending plane counters.
@ BothPlanes
Both plane counters.
@ AllTracks
All tracks counters.
ChamberEfficiency createDefaultChamberEfficiency()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...