CMS 3D CMS Logo

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