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