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