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 dqmEndRun(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 globalEndLuminosityBlock(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
58 
60  std::vector<hcaldqm::flag::Flag> _vflags;
61 
62  // emap
66  std::vector<uint32_t> _vhashFEDs;
67 
68  // Cuts and variables
69  int _nevents;
70  double _lowHBHE;
71  double _lowHE;
72  double _lowHO;
73  double _lowHF;
74  uint32_t _laserType;
75 
76  // Compact
82  hcaldqm::ContainerXXX<double> _xTimingRefLMSum; // For computation of channel-by-channel mean timing w.r.t. lasermon
84  hcaldqm::ContainerXXX<int> _xNBadTimingRefLM; // Count channels with bad timing
85  hcaldqm::ContainerXXX<int> _xNChs; // number of channels per FED as in emap
86 
87  // 1D
94 
96 
97  // Prof1D
107 
108  // 2D timing/signals
115 
120 
121  // Bad Quality and Missing Channels
124 
125  // Things for LASERMON
128 
129  std::vector<int> _vLaserMonIPhi; // Laser mon digis are assigned to CBox=5, IEta=0, IPhi=[23-index] by the emap
135  std::map<HcalSubdetector, std::pair<double, double>> _thresh_timingreflm; // Min and max timing (ref. lasermon)
136  double _thresh_frac_timingreflm; // Flag threshold (BAD) on fraction of channels with bad timing
137  double _thresh_min_lmsumq; // Threshold on minimum SumQ from lasermon, if laser is expected
138  int _xMissingLaserMon; // Counter for missing lasermon events
139 
149 
150  // Summaries
153 };
154 
155 #endif
edm::InputTag _tagQIE11
Definition: LaserTask.h:49
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
Definition: LaserTask.h:98
hcaldqm::ContainerProf1D _cSignalvsEvent_SubdetPM
Definition: LaserTask.h:100
bool _isApplicable(edm::Event const &) override
Definition: LaserTask.cc:763
hcaldqm::ContainerSingle1D _cLaserMonTiming
Definition: LaserTask.h:141
std::vector< hcaldqm::flag::Flag > _vflags
Definition: LaserTask.h:60
double _lowHF
Definition: LaserTask.h:73
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
Definition: LaserTask.h:117
hcaldqm::ContainerXXX< int > _xNBadTimingRefLM
Definition: LaserTask.h:84
hcaldqm::ContainerXXX< double > _xSignalSum2
Definition: LaserTask.h:78
std::vector< uint32_t > _vhashFEDs
Definition: LaserTask.h:66
hcaldqm::ContainerXXX< double > _xTimingRefLMSum
Definition: LaserTask.h:82
hcaldqm::ContainerXXX< int > _xEntries
Definition: LaserTask.h:79
hcaldqm::ContainerProf2D _cSignalRMSQIE1011_depth
Definition: LaserTask.h:112
hcaldqm::ContainerProf1D _cSignalvsLSQIE1011_SubdetPM
Definition: LaserTask.h:103
hcaldqm::Container1D _cTimingRMS_Subdet
Definition: LaserTask.h:93
double _lowHBHE
Definition: LaserTask.h:70
double _lowHE
Definition: LaserTask.h:71
uint32_t _laserType
Definition: LaserTask.h:74
UpdateFreq
Definition: DQTask.h:32
double _laserMonThreshold
Definition: LaserTask.h:134
virtual void _dump()
Definition: LaserTask.cc:392
hcaldqm::ContainerProf1D _cTimingvsEvent_SubdetPM
Definition: LaserTask.h:99
double _thresh_frac_timingreflm
Definition: LaserTask.h:136
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: LaserTask.cc:390
hcaldqm::ContainerXXX< double > _xSignalSum
Definition: LaserTask.h:77
hcaldqm::ContainerXXX< double > _xTimingSum
Definition: LaserTask.h:80
hcaldqm::Container2D _cMissing_depth
Definition: LaserTask.h:122
hcaldqm::ContainerProf2D _cSignalMean_depth
Definition: LaserTask.h:109
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_LS
Definition: LaserTask.h:143
int _laserMonTS0
Definition: LaserTask.h:133
edm::InputTag _tagHO
Definition: LaserTask.h:50
hcaldqm::Container1D _cADC_SubdetPM
Definition: LaserTask.h:95
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: LaserTask.h:151
hcaldqm::ContainerProf2D _cTimingDiffLS_SubdetPM
Definition: LaserTask.h:147
hcaldqm::Container1D _cTimingMean_Subdet
Definition: LaserTask.h:92
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: LaserTask.cc:56
int _laserMonDigiOverlap
Definition: LaserTask.h:132
ProcessingType _ptype
Definition: DQModule.h:44
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LaserTask.h:119
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LaserTask.h:118
edm::EDGetTokenT< QIE10DigiCollection > _tokLaserMon
Definition: LaserTask.h:127
std::map< HcalSubdetector, std::pair< double, double > > _thresh_timingreflm
Definition: LaserTask.h:135
void processLaserMon(edm::Handle< QIE10DigiCollection > &col, std::vector< int > &iLaserMonADC)
Definition: LaserTask.cc:722
hcaldqm::ContainerProf2D _cTimingDiffEvent_SubdetPM
Definition: LaserTask.h:148
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_LS
Definition: LaserTask.h:142
hcaldqm::filter::HashFilter _filter_uTCA
Definition: LaserTask.h:64
hcaldqm::ContainerProf2D _cSignalMeanQIE1011_depth
Definition: LaserTask.h:111
hcaldqm::ContainerXXX< int > _xNChs
Definition: LaserTask.h:85
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: LaserTask.h:57
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: LaserTask.h:53
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_Event
Definition: LaserTask.h:145
int _nevents
Definition: LaserTask.h:69
hcaldqm::ContainerSingle1D _cLaserMonSumQ
Definition: LaserTask.h:140
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LaserTask.h:54
void dqmEndRun(edm::Run const &r, edm::EventSetup const &) override
Definition: LaserTask.h:30
hcaldqm::Container1D _cSignalMeanQIE1011_Subdet
Definition: LaserTask.h:90
double _thresh_min_lmsumq
Definition: LaserTask.h:137
hcaldqm::ContainerXXX< double > _xTimingRefLMSum2
Definition: LaserTask.h:83
int _laserMonCBox
Definition: LaserTask.h:131
hcaldqm::ContainerProf1D _cSignalvsBX_SubdetPM
Definition: LaserTask.h:105
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: LaserTask.h:152
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: LaserTask.h:55
double _lowHO
Definition: LaserTask.h:72
hcaldqm::Container2D _cMissing_FEDuTCA
Definition: LaserTask.h:123
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: LaserTask.cc:512
hcaldqm::Container1D _cSignalMean_Subdet
Definition: LaserTask.h:88
hcaldqm::ContainerProf1D _cSignalvsLS_SubdetPM
Definition: LaserTask.h:102
hcaldqm::ContainerProf1D _cTimingvsLS_SubdetPM
Definition: LaserTask.h:101
int _laserMonIEta
Definition: LaserTask.h:130
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
Definition: LaserTask.h:116
hcaldqm::Container2D _cTiming_DigivsLaserMon_SubdetPM
Definition: LaserTask.h:146
hcaldqm::ContainerProf2D _cTimingMean_depth
Definition: LaserTask.h:113
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: LaserTask.h:63
edm::InputTag _tagLaserMon
Definition: LaserTask.h:126
edm::InputTag _taguMN
Definition: LaserTask.h:52
~LaserTask() override
Definition: LaserTask.h:27
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: LaserTask.cc:752
std::vector< int > _vLaserMonIPhi
Definition: LaserTask.h:129
int _xMissingLaserMon
Definition: LaserTask.h:138
hcaldqm::Container1D _cSignalRMSQIE1011_Subdet
Definition: LaserTask.h:91
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: LaserTask.h:56
hcaldqm::Container1D _cSignalRMS_Subdet
Definition: LaserTask.h:89
col
Definition: cuy.py:1009
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_Event
Definition: LaserTask.h:144
hcaldqm::ContainerProf1D _cSignalvsBXQIE1011_SubdetPM
Definition: LaserTask.h:106
hcaldqm::ContainerXXX< double > _xTimingSum2
Definition: LaserTask.h:81
hcaldqm::ContainerProf2D _cSignalRMS_depth
Definition: LaserTask.h:110
hcaldqm::filter::HashFilter _filter_VME
Definition: LaserTask.h:65
hcaldqm::ContainerProf1D _cTimingvsBX_SubdetPM
Definition: LaserTask.h:104
LaserTask(edm::ParameterSet const &)
Definition: LaserTask.cc:6
Definition: Run.h:45
hcaldqm::ContainerProf2D _cTimingRMS_depth
Definition: LaserTask.h:114
edm::InputTag _tagQIE10
Definition: LaserTask.h:51