CMS 3D CMS Logo

DigiTask.h
Go to the documentation of this file.
1 #ifndef DigiTask_h
2 #define DigiTask_h
3 
28 
29 class DigiTask : public hcaldqm::DQTask {
30 public:
31  DigiTask(edm::ParameterSet const &);
32  ~DigiTask() override {}
33 
34  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
35  void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
36  void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
37 
38 protected:
39  void _process(edm::Event const &, edm::EventSetup const &) override;
40  void _resetMonitors(hcaldqm::UpdateFreq) override;
41 
48 
50  double _thresh_unihf;
51 
52  // flag vector
53  std::vector<hcaldqm::flag::Flag> _vflags;
54  enum DigiFlag { fDigiSize = 0, fUni = 1, fNChsHF = 2, fUnknownIds = 3, fLED = 4, fCapId = 5, nDigiFlag = 6 };
55 
56  // hashes/FED vectors
57  std::vector<uint32_t> _vhashFEDs;
58 
59  std::map<HcalSubdetector, int> _refDigiSize;
60 
61  // emap
64 
65  // Filters
73 
74  /* hcaldqm::Containers */
75  // ADC, fC - Charge - just filling - no summary!
82 
83  // ADC, fC for HF (QIE10 has different ADC/fC)
89 
90  // Shape - just filling - not summary!
94 
95  // Timing
96  // just filling - no summary!
107 
108  // Only for Online mode! just filling - no summary!
110 
111  // Occupancy w/o a Cut - whatever is sitting in the Digi Collection
112  // used to determine Missing Digis => used for Summary!
122 
123  // Occupancy w/ a Cut
124  // used to determine if occupancy is symmetric or not. =>
125  // used for Summary
133  //hcaldqm::Container2D _cOccupancyCutvsSlotvsLS_HFPM; // online only
135 
136  // Occupancy w/o and w/ a Cut vs BX and vs LS
140 
141  // #Time Samples for a digi. Used for Summary generation
150 
151  // QIE10 TDC histograms
159 
160  // Bad TDC histograms
165 
169 
170  // (Capid - BX) % 4
172  hcaldqm::ContainerSingle2D _cCapidMinusBXmod4_CrateSlotuTCA[4]; // CrateSlot 2D histograms for each (capid-BX)%4
173  hcaldqm::ContainerSingle2D _cCapidMinusBXmod4_CrateSlotVME[4]; // CrateSlot 2D histograms for each (capid-BX)%4
176  _cCapid_BadvsFEDvsLSmod60; // Same as _cCapid_BadvsFEDvsLS, but only for last 50 LSes (for sound alarm turning off when problem goes away)
177 
178  // #events counters
179  MonitorElement *meNumEvents1LS; // to transfer the #events to harvesting
182 
185 
186  bool _qie10InConditions; // Flag to protect against QIE10 digis not in conditions in 2016.
187 
188  std::map<HcalSubdetector, short> _capidmbx; // Expected (capid - BX) % 4 for each subdet
189 
190  // LED monitoring stuff
191  double _thresh_led;
192  std::map<HcalSubdetector, std::vector<HcalDetId> > _ledCalibrationChannels;
193 
196  hcaldqm::Container2D _LED_ADCvsBX_Subdet; // Pin diode amplitude vs BX
197 };
198 
199 #endif
hcaldqm::ContainerProf1D _cTimingCutvsiphi_SubdetPM
Definition: DigiTask.h:105
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: DigiTask.cc:816
hcaldqm::ContainerXXX< uint32_t > _xBadCapid
Definition: DigiTask.h:149
bool _qie10InConditions
Definition: DigiTask.h:186
double _thresh_led
Definition: DigiTask.h:191
MonitorElement * meNumEvents1LS
Definition: DigiTask.h:179
hcaldqm::Container1D _LED_CUCountvsLSmod60_Subdet
Definition: DigiTask.h:195
edm::InputTag _tagQIE10
Definition: DigiTask.h:44
hcaldqm::Container1D _cADC_SubdetPM
Definition: DigiTask.h:76
hcaldqm::Container1D _cADC_SubdetPM_QIE1011
Definition: DigiTask.h:84
hcaldqm::Container1D _LED_CUCountvsLS_Subdet
Definition: DigiTask.h:194
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DigiTask.cc:1413
hcaldqm::Container1D _cOccupancyCutvsieta_Subdet
Definition: DigiTask.h:132
hcaldqm::Container2D _cLETDCvsADC_2bit_SubdetPM
Definition: DigiTask.h:152
hcaldqm::ContainerProf1D _cSumQvsBX_SubdetPM
Definition: DigiTask.h:81
edm::InputTag _tagHO
Definition: DigiTask.h:43
std::map< HcalSubdetector, int > _refDigiSize
Definition: DigiTask.h:59
hcaldqm::Container2D _cADCvsTS_SubdetPM
Definition: DigiTask.h:92
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DigiTask.cc:1402
hcaldqm::ContainerProf1D _cQ2Q12CutvsLS_FEDHF
Definition: DigiTask.h:109
MonitorElement * meUnknownIds1LS
Definition: DigiTask.h:180
hcaldqm::Container2D _cLETDCTimevsADC_SubdetPM
Definition: DigiTask.h:158
double _cutSumQ_HO
Definition: DigiTask.h:49
double _thresh_unihf
Definition: DigiTask.h:50
UpdateFreq
Definition: DQTask.h:16
std::map< HcalSubdetector, short > _capidmbx
Definition: DigiTask.h:188
hcaldqm::Container2D _cLETDCvsTS_2bit_SubdetPM
Definition: DigiTask.h:154
hcaldqm::ContainerSingle2D _cCapidMinusBXmod4_CrateSlotuTCA[4]
Definition: DigiTask.h:172
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: DigiTask.h:47
~DigiTask() override
Definition: DigiTask.h:32
hcaldqm::ContainerProf2D _cSumQ_depth
Definition: DigiTask.h:79
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: DigiTask.h:46
hcaldqm::Container1D _cOccupancyCutvsiphi_SubdetPM
Definition: DigiTask.h:131
hcaldqm::ContainerProf1D _cSumQvsLS_SubdetPM_QIE1011
Definition: DigiTask.h:87
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: DigiTask.h:184
hcaldqm::ContainerProf2D _cTimingCut_FEDVME
Definition: DigiTask.h:98
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DigiTask.cc:81
hcaldqm::Container2D _cOccupancyCutvsiphivsLS_SubdetPM
Definition: DigiTask.h:134
hcaldqm::ContainerXXX< uint32_t > _xDigiSize
Definition: DigiTask.h:145
hcaldqm::ContainerProf2D _cTimingCut_FEDuTCA
Definition: DigiTask.h:99
hcaldqm::Container1D _cBadTDCvsLS_SubdetPM
Definition: DigiTask.h:163
hcaldqm::filter::HashFilter _filter_VME
Definition: DigiTask.h:66
hcaldqm::Container2D _cLETDCvsADC_6bit_SubdetPM
Definition: DigiTask.h:153
hcaldqm::Container2D _cOccupancy_CrateSlot
Definition: DigiTask.h:118
hcaldqm::ContainerSingle2D _cCapid_BadvsFEDvsLS
Definition: DigiTask.h:174
hcaldqm::Container2D _cADCvsTS_SubdetPM_QIE1011
Definition: DigiTask.h:93
hcaldqm::Container2D _cOccupancyCut_ElectronicsVME
Definition: DigiTask.h:128
hcaldqm::Container1D _cDigiSize_Crate
Definition: DigiTask.h:142
hcaldqm::Container1D _cShapeCut_FED
Definition: DigiTask.h:91
hcaldqm::Container2D _cOccupancyCut_depth
Definition: DigiTask.h:130
hcaldqm::ContainerProf1D _cOccupancyCutvsBX_Subdet
Definition: DigiTask.h:139
double _cutSumQ_HF
Definition: DigiTask.h:49
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: DigiTask.h:45
hcaldqm::Container1D _cfC_SubdetPM_QIE1011
Definition: DigiTask.h:85
double _cutSumQ_HBHE
Definition: DigiTask.h:49
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
Definition: DigiTask.h:192
hcaldqm::ContainerProf2D _cTimingCut_depth
Definition: DigiTask.h:104
hcaldqm::Container1D _cBadTDCValues_SubdetPM
Definition: DigiTask.h:161
hcaldqm::Container2D _cOccupancy_FEDVME
Definition: DigiTask.h:113
hcaldqm::ContainerProf1D _cTimingCutvsLS_SubdetPM
Definition: DigiTask.h:103
hcaldqm::Container2D _cOccupancyCut_FEDVME
Definition: DigiTask.h:126
hcaldqm::filter::HashFilter _filter_TDC2bit
Definition: DigiTask.h:71
hcaldqm::ContainerProf1D _cSumQvsBX_SubdetPM_QIE1011
Definition: DigiTask.h:88
hcaldqm::ContainerSingle2D _cCapidMinusBXmod4_CrateSlotVME[4]
Definition: DigiTask.h:173
hcaldqm::Container2D _cOccupancy_depth
Definition: DigiTask.h:119
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: DigiTask.h:183
hcaldqm::filter::HashFilter _filter_FEDHF
Definition: DigiTask.h:68
DigiTask(edm::ParameterSet const &)
Definition: DigiTask.cc:7
hcaldqm::ContainerProf1D _cOccupancyvsLS_Subdet
Definition: DigiTask.h:137
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: DigiTask.cc:798
hcaldqm::ContainerProf1D _cSumQvsLS_SubdetPM
Definition: DigiTask.h:80
hcaldqm::ContainerXXX< uint32_t > _xUni
Definition: DigiTask.h:146
hcaldqm::ContainerProf1D _cTimingCutvsLS_FED
Definition: DigiTask.h:102
hcaldqm::Container2D _cOccupancyCut_FEDuTCA
Definition: DigiTask.h:127
hcaldqm::Container2D _cOccupancy_ElectronicsVME
Definition: DigiTask.h:115
hcaldqm::Container1D _cDigiSize_FED
Definition: DigiTask.h:143
hcaldqm::filter::HashFilter _filter_QIE8
Definition: DigiTask.h:70
hcaldqm::Container1D _cBadTDCValues
Definition: DigiTask.h:166
hcaldqm::Container2D _LED_ADCvsBX_Subdet
Definition: DigiTask.h:196
hcaldqm::ContainerXXX< uint32_t > _xNChsNominal
Definition: DigiTask.h:148
hcaldqm::Container1D _cSumQ_SubdetPM
Definition: DigiTask.h:78
hcaldqm::Container1D _cOccupancyvsiphi_SubdetPM
Definition: DigiTask.h:120
hcaldqm::ContainerProf1D _cTimingCutvsieta_Subdet
Definition: DigiTask.h:106
hcaldqm::ContainerSingle2D _cCapid_BadvsFEDvsLSmod60
Definition: DigiTask.h:176
hcaldqm::Container1D _cLETDCTime_SubdetPM
Definition: DigiTask.h:156
hcaldqm::electronicsmap::ElectronicsMap _dhashmap
Definition: DigiTask.h:63
std::vector< hcaldqm::flag::Flag > _vflags
Definition: DigiTask.h:53
hcaldqm::Container2D _cOccupancyCut_ElectronicsuTCA
Definition: DigiTask.h:129
hcaldqm::ContainerProf2D _cTimingCut_ElectronicsVME
Definition: DigiTask.h:100
hcaldqm::Container1D _cBadTDCvsBX_SubdetPM
Definition: DigiTask.h:162
hcaldqm::Container2D _cOccupancy_Crate
Definition: DigiTask.h:117
hcaldqm::filter::HashFilter _filter_uTCA
Definition: DigiTask.h:67
hcaldqm::Container2D _cLETDCvsTS_6bit_SubdetPM
Definition: DigiTask.h:155
hcaldqm::ContainerProf1D _cDigiSizevsLS_FED
Definition: DigiTask.h:144
hcaldqm::ContainerXXX< uint32_t > _xNChs
Definition: DigiTask.h:147
hcaldqm::filter::HashFilter _filter_TDC6bit
Definition: DigiTask.h:72
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: DigiTask.h:62
hcaldqm::ContainerProf1D _cOccupancyCutvsLS_Subdet
Definition: DigiTask.h:138
hcaldqm::filter::HashFilter _filter_QIE1011
Definition: DigiTask.h:69
hcaldqm::Container2D _cBadTDCCount_depth
Definition: DigiTask.h:164
hcaldqm::ContainerProf2D _cLETDCTime_depth
Definition: DigiTask.h:157
std::vector< uint32_t > _vhashFEDs
Definition: DigiTask.h:57
hcaldqm::Container1D _cBadTDCvsBX
Definition: DigiTask.h:167
edm::InputTag _tagQIE11
Definition: DigiTask.h:42
hcaldqm::Container1D _cOccupancyvsieta_Subdet
Definition: DigiTask.h:121
hcaldqm::ContainerProf2D _cTimingCut_ElectronicsuTCA
Definition: DigiTask.h:101
hcaldqm::Container1D _cSumQ_SubdetPM_QIE1011
Definition: DigiTask.h:86
hcaldqm::Container1D _cTimingCut_SubdetPM
Definition: DigiTask.h:97
Definition: Run.h:45
hcaldqm::Container1D _cBadTDCvsLS
Definition: DigiTask.h:168
bool _unknownIdsPresent
Definition: DigiTask.h:181
hcaldqm::Container2D _cOccupancy_FEDuTCA
Definition: DigiTask.h:114
hcaldqm::Container1D _cCapidMinusBXmod4_SubdetPM
Definition: DigiTask.h:171
hcaldqm::ContainerXXX< uint32_t > _xUniHF
Definition: DigiTask.h:146
hcaldqm::Container1D _cfC_SubdetPM
Definition: DigiTask.h:77
hcaldqm::Container2D _cOccupancy_ElectronicsuTCA
Definition: DigiTask.h:116