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