ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_MonitoringNumbers.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7/*@file SCTHitsNoiseMonTool.cxx
8 * Header file containing scoped 'magic numbers' for use in SCT_Monitoring
9 * @author Shaun Roe
10 **/
11#ifndef SCT_MonitoringNumbers_H
12#define SCT_MonitoringNumbers_H
13#include "TString.h"
14#include <string>
15#include <vector>
16
23 static const std::vector<Bec> index2BecArray={ENDCAP_C, BARREL, ENDCAP_A, GENERAL};
25 inline unsigned int bec2Index(const int becVal) {
26 return (becVal/2) + 1;
27 }
28
29 inline Bec index2Bec(const unsigned int i) {
31 }
32
53
55
56 static const std::vector<std::string> CategoryErrorsNames = {"MaskedLinkALL", "Errors", "BadErrors", "LinkLevelErrors", "RODLevelErrors", "MaskedChipALL", "ByteStreamParseError", "TimeOutError", "BCIDError", "LVL1IDError", "PreambleError", "FormatterError", "TrailerError", "TrailerOverflowError", "HeaderTrailerLimitError", "ABCDError", "RawError", "MaskedLink", "RODClockError", "TruncatedROD", "ROBFragmentError", "MissingLinkHeaderError", "MaskedROD", "ABCDError_Chip0", "ABCDError_Chip1", "ABCDError_Chip2", "ABCDError_Chip3", "ABCDError_Chip4", "ABCDError_Chip5", "ABCDError_Error1", "ABCDError_Error2", "ABCDError_Error4", "TempMaskedChip0", "TempMaskedChip1", "TempMaskedChip2", "TempMaskedChip3", "TempMaskedChip4", "TempMaskedChip5", "ABCDError_Error7", "ABCDError_Invalid", "RODSimulatedData"};
57
59 allRegion, //All SCT module for counting good module
60 disabled, //Disabled
61 badLinkError, //BadLinkLevelError
62 badRODError, //BadRODLevelError
63 badError, //BadError = BadLinkLevelError + BadRODLevelError
64 psTripDCS, //Power supply trip using SCT_DCSConditionsSvc
65 summary, //Total coverage using SCT_ConditionsSummarySvc
67 };
68
70
71 static const std::vector<int> n_layers = {N_DISKS, N_BARRELS, N_DISKS, 2 * N_DISKS + N_BARRELS};
72 static const std::vector<int> n_etabins = {N_ETA_BINS_EC, N_ETA_BINS, N_ETA_BINS_EC};
73 static const std::vector<int> n_phibins = {N_PHI_BINS_EC, N_PHI_BINS, N_PHI_BINS_EC};
74 static const std::vector<int> f_etabin = {FIRST_ETA_BIN_EC, FIRST_ETA_BIN, FIRST_ETA_BIN_EC};
75 static const std::vector<int> l_etabin = {LAST_ETA_BIN_EC, LAST_ETA_BIN, LAST_ETA_BIN_EC};
76 static const std::vector<int> f_phibin = {FIRST_PHI_BIN_EC, FIRST_PHI_BIN, FIRST_PHI_BIN_EC};
77 static const std::vector<int> l_phibin = {LAST_PHI_BIN_EC, LAST_PHI_BIN, LAST_PHI_BIN_EC};
78 static const std::vector<int> n_mod = {N_MOD_ENDCAPS, N_MOD_BARREL, N_MOD_ENDCAPS, N_MOD_BARREL + 2 * N_MOD_ENDCAPS};
79 static const std::vector<int> f_mod = {FIRST_MOD_EC, FIRST_MOD_B, FIRST_MOD_EA};
80 static const std::vector<TString> layerName = {" disk ", " layer ", " disk "};
81 static const std::vector<TString> subDetName = {"Endcap C", "Barrel", "Endcap A", "General"};
82 static const std::vector<TString> subDetNameShort = {"EC", "B", "EA", "ALL"};
83
84 static const long NBINS_LBs = 3000;
85
86 static const std::vector<std::string> coverageVarNames = {
87 "", // All (not used)
88 "OfEnabledLinks", // All - Disabled
89 "WithNoBadLinkLevelError", // All - BadLinkLevelError
90 "WithNoBadRODLevelError", // All - BadRODLevelError
91 "WithNoBadError", // All - BadError
92 "WithNoPSTrip", // All - PSTrip (DCS)
93 "OfLinksWithNoBadProblem" // All - Summary
94 };
95
96 //====================================================================================================
97 // SCTErrMonTool :: getNumModules, Daniel Damiani 16/8/2010
98 //====================================================================================================
99 inline int getNumModules(const int reg,const int layer) {
100 if (reg==BARREL) {
101 if (layer<2) return 384;
102 else if (layer<4) return 480;
103 else if (layer<6) return 576;
104 else if (layer<8) return 672;
105 else return 0;
106 } else {
107 if (layer<2) return 92;
108 else if (layer<12) return 132;
109 else if (layer<16) return 92;
110 else if (layer<18) return 52;
111 else return 0;
112 }
113 return 0;
114 }
115
116}//namespace
117
118#endif
BecIndex
what array indices mean when looping over subsystems
static const std::vector< std::string > coverageVarNames
static const std::vector< int > f_mod
unsigned int bec2Index(const int becVal)
Conversion bec->index.
static const long NBINS_LBs
int getNumModules(const int reg, const int layer)
HistogramNumbers
Numbers to use in histograms.
Bec index2Bec(const unsigned int i)
Conversion index->bec.
static const std::vector< int > n_mod
static const std::vector< TString > subDetName
static const std::vector< TString > layerName
static const std::vector< int > n_phibins
static const std::vector< TString > subDetNameShort
static const std::vector< std::string > CategoryErrorsNames
Bec
Possible values of the 'BEC' (Barrel or EndCap) value.
static const std::vector< int > l_phibin
static const std::vector< int > n_layers
static const std::vector< int > f_etabin
static const std::vector< int > l_etabin
static const std::vector< int > f_phibin
static const std::vector< int > n_etabins
static const std::vector< Bec > index2BecArray
Array for conversion of an array index to a Bec.