CMS 3D CMS Logo

LaserTask.h
Go to the documentation of this file.
1 #ifndef LaserTask_h
2 #define LaserTask_h
3 
4 /*
5  * file: LaserTask.h
6  * Author: Viktor Khristenko
7  * Date: 16.10.2015
8  */
9 
23 
24 class LaserTask : public hcaldqm::DQTask {
25 public:
27  ~LaserTask() override {}
28 
29  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
30  void endRun(edm::Run const &r, edm::EventSetup const &) override {
31  if (_ptype == hcaldqm::fLocal) {
32  if (r.runAuxiliary().run() == 1)
33  return;
34  else
35  this->_dump();
36  }
37  }
38  void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
39 
40 protected:
41  // funcs
42  void _process(edm::Event const &, edm::EventSetup const &) override;
43  void _resetMonitors(hcaldqm::UpdateFreq) override;
44  bool _isApplicable(edm::Event const &) override;
45  virtual void _dump();
46  void processLaserMon(edm::Handle<QIE10DigiCollection> &col, std::vector<int> &iLaserMonADC);
47 
48  // tags and tokens
57 
59  std::vector<hcaldqm::flag::Flag> _vflags;
60 
61  // emap
65  std::vector<uint32_t> _vhashFEDs;
66 
67  // Cuts and variables
68  int _nevents;
69  double _lowHBHE;
70  double _lowHE;
71  double _lowHO;
72  double _lowHF;
73  uint32_t _laserType;
74 
75  // Compact
81  hcaldqm::ContainerXXX<double> _xTimingRefLMSum; // For computation of channel-by-channel mean timing w.r.t. lasermon
83  hcaldqm::ContainerXXX<int> _xNBadTimingRefLM; // Count channels with bad timing
84  hcaldqm::ContainerXXX<int> _xNChs; // number of channels per FED as in emap
85 
86  // 1D
93 
95 
96  // Prof1D
106 
107  // 2D timing/signals
114 
123 
124  // Bad Quality and Missing Channels
128 
129  // Things for LASERMON
132 
133  std::vector<int> _vLaserMonIPhi; // Laser mon digis are assigned to CBox=5, IEta=0, IPhi=[23-index] by the emap
139  std::map<HcalSubdetector, std::pair<double, double>> _thresh_timingreflm; // Min and max timing (ref. lasermon)
140  double _thresh_frac_timingreflm; // Flag threshold (BAD) on fraction of channels with bad timing
141  double _thresh_min_lmsumq; // Threshold on minimum SumQ from lasermon, if laser is expected
142  int _xMissingLaserMon; // Counter for missing lasermon events
143 
153 
154  // Summaries
157 };
158 
159 #endif
edm::InputTag _tagQIE11
Definition: LaserTask.h:49
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
Definition: LaserTask.h:97
hcaldqm::ContainerProf1D _cSignalvsEvent_SubdetPM
Definition: LaserTask.h:99
bool _isApplicable(edm::Event const &) override
Definition: LaserTask.cc:809
hcaldqm::ContainerSingle1D _cLaserMonTiming
Definition: LaserTask.h:145
std::vector< hcaldqm::flag::Flag > _vflags
Definition: LaserTask.h:59
double _lowHF
Definition: LaserTask.h:72
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
Definition: LaserTask.h:118
hcaldqm::ContainerXXX< int > _xNBadTimingRefLM
Definition: LaserTask.h:83
hcaldqm::ContainerXXX< double > _xSignalSum2
Definition: LaserTask.h:77
std::vector< uint32_t > _vhashFEDs
Definition: LaserTask.h:65
hcaldqm::ContainerXXX< double > _xTimingRefLMSum
Definition: LaserTask.h:81
hcaldqm::ContainerXXX< int > _xEntries
Definition: LaserTask.h:78
hcaldqm::ContainerProf2D _cSignalRMSQIE1011_depth
Definition: LaserTask.h:111
hcaldqm::ContainerProf1D _cSignalvsLSQIE1011_SubdetPM
Definition: LaserTask.h:102
hcaldqm::Container1D _cTimingRMS_Subdet
Definition: LaserTask.h:92
double _lowHBHE
Definition: LaserTask.h:69
double _lowHE
Definition: LaserTask.h:70
uint32_t _laserType
Definition: LaserTask.h:73
UpdateFreq
Definition: DQTask.h:16
double _laserMonThreshold
Definition: LaserTask.h:138
virtual void _dump()
Definition: LaserTask.cc:432
hcaldqm::ContainerProf1D _cTimingvsEvent_SubdetPM
Definition: LaserTask.h:98
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
Definition: LaserTask.h:119
double _thresh_frac_timingreflm
Definition: LaserTask.h:140
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: LaserTask.cc:430
hcaldqm::ContainerXXX< double > _xSignalSum
Definition: LaserTask.h:76
hcaldqm::ContainerXXX< double > _xTimingSum
Definition: LaserTask.h:79
hcaldqm::Container2D _cMissing_depth
Definition: LaserTask.h:125
hcaldqm::Container2D _cMissing_FEDVME
Definition: LaserTask.h:126
hcaldqm::ContainerProf2D _cSignalMean_depth
Definition: LaserTask.h:108
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_LS
Definition: LaserTask.h:147
int _laserMonTS0
Definition: LaserTask.h:137
edm::InputTag _tagHO
Definition: LaserTask.h:50
hcaldqm::Container1D _cADC_SubdetPM
Definition: LaserTask.h:94
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: LaserTask.h:155
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
Definition: LaserTask.h:121
hcaldqm::ContainerProf2D _cTimingDiffLS_SubdetPM
Definition: LaserTask.h:151
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
Definition: LaserTask.h:115
hcaldqm::Container1D _cTimingMean_Subdet
Definition: LaserTask.h:91
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: LaserTask.cc:55
int _laserMonDigiOverlap
Definition: LaserTask.h:136
ProcessingType _ptype
Definition: DQModule.h:43
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LaserTask.h:122
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LaserTask.h:120
edm::EDGetTokenT< QIE10DigiCollection > _tokLaserMon
Definition: LaserTask.h:131
std::map< HcalSubdetector, std::pair< double, double > > _thresh_timingreflm
Definition: LaserTask.h:139
void processLaserMon(edm::Handle< QIE10DigiCollection > &col, std::vector< int > &iLaserMonADC)
Definition: LaserTask.cc:771
hcaldqm::ContainerProf2D _cTimingDiffEvent_SubdetPM
Definition: LaserTask.h:152
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_LS
Definition: LaserTask.h:146
hcaldqm::filter::HashFilter _filter_uTCA
Definition: LaserTask.h:63
hcaldqm::ContainerProf2D _cSignalMeanQIE1011_depth
Definition: LaserTask.h:110
hcaldqm::ContainerXXX< int > _xNChs
Definition: LaserTask.h:84
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: LaserTask.h:53
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_Event
Definition: LaserTask.h:149
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
Definition: LaserTask.h:117
int _nevents
Definition: LaserTask.h:68
hcaldqm::ContainerSingle1D _cLaserMonSumQ
Definition: LaserTask.h:144
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LaserTask.h:54
hcaldqm::Container1D _cSignalMeanQIE1011_Subdet
Definition: LaserTask.h:89
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: LaserTask.cc:801
double _thresh_min_lmsumq
Definition: LaserTask.h:141
RunAuxiliary const & runAuxiliary() const override
Definition: Run.h:61
hcaldqm::ContainerXXX< double > _xTimingRefLMSum2
Definition: LaserTask.h:82
int _laserMonCBox
Definition: LaserTask.h:135
hcaldqm::ContainerProf1D _cSignalvsBX_SubdetPM
Definition: LaserTask.h:104
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: LaserTask.h:156
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: LaserTask.h:55
double _lowHO
Definition: LaserTask.h:71
hcaldqm::Container2D _cMissing_FEDuTCA
Definition: LaserTask.h:127
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: LaserTask.cc:563
hcaldqm::Container1D _cSignalMean_Subdet
Definition: LaserTask.h:87
hcaldqm::ContainerProf1D _cSignalvsLS_SubdetPM
Definition: LaserTask.h:101
hcaldqm::ContainerProf1D _cTimingvsLS_SubdetPM
Definition: LaserTask.h:100
void endRun(edm::Run const &r, edm::EventSetup const &) override
Definition: LaserTask.h:30
int _laserMonIEta
Definition: LaserTask.h:134
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
Definition: LaserTask.h:116
hcaldqm::Container2D _cTiming_DigivsLaserMon_SubdetPM
Definition: LaserTask.h:150
hcaldqm::ContainerProf2D _cTimingMean_depth
Definition: LaserTask.h:112
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: LaserTask.h:62
edm::InputTag _tagLaserMon
Definition: LaserTask.h:130
edm::InputTag _taguMN
Definition: LaserTask.h:52
~LaserTask() override
Definition: LaserTask.h:27
std::vector< int > _vLaserMonIPhi
Definition: LaserTask.h:133
int _xMissingLaserMon
Definition: LaserTask.h:142
hcaldqm::Container1D _cSignalRMSQIE1011_Subdet
Definition: LaserTask.h:90
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: LaserTask.h:56
hcaldqm::Container1D _cSignalRMS_Subdet
Definition: LaserTask.h:88
col
Definition: cuy.py:1010
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_Event
Definition: LaserTask.h:148
hcaldqm::ContainerProf1D _cSignalvsBXQIE1011_SubdetPM
Definition: LaserTask.h:105
hcaldqm::ContainerXXX< double > _xTimingSum2
Definition: LaserTask.h:80
hcaldqm::ContainerProf2D _cSignalRMS_depth
Definition: LaserTask.h:109
hcaldqm::filter::HashFilter _filter_VME
Definition: LaserTask.h:64
hcaldqm::ContainerProf1D _cTimingvsBX_SubdetPM
Definition: LaserTask.h:103
RunNumber_t run() const
Definition: RunAuxiliary.h:41
LaserTask(edm::ParameterSet const &)
Definition: LaserTask.cc:6
Definition: Run.h:45
hcaldqm::ContainerProf2D _cTimingRMS_depth
Definition: LaserTask.h:113
edm::InputTag _tagQIE10
Definition: LaserTask.h:51