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
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
LaserTask::_cSignalMean_FEDuTCA
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
Definition: LaserTask.h:116
LaserTask::_cSignalRMSQIE1011_depth
hcaldqm::ContainerProf2D _cSignalRMSQIE1011_depth
Definition: LaserTask.h:111
ContainerSingleProf1D.h
LaserTask::_cSignalvsEvent_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsEvent_SubdetPM
Definition: LaserTask.h:99
LaserTask::_laserMonCBox
int _laserMonCBox
Definition: LaserTask.h:135
LaserTask::_cMissing_FEDVME
hcaldqm::Container2D _cMissing_FEDVME
Definition: LaserTask.h:126
LaserTask::globalEndLuminosityBlock
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: LaserTask.cc:803
LaserTask::_cSignalMean_FEDVME
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
Definition: LaserTask.h:115
LaserTask::_cSignalRMS_FEDuTCA
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LaserTask.h:120
hcaldqm::UpdateFreq
UpdateFreq
Definition: DQTask.h:32
LaserTask::fBadTiming
Definition: LaserTask.h:58
LaserTask::_cTimingRMS_FEDVME
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
Definition: LaserTask.h:121
LaserTask::_tagLaserMon
edm::InputTag _tagLaserMon
Definition: LaserTask.h:130
LaserTask::_resetMonitors
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: LaserTask.cc:430
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
LaserTask::_cSignalRMS_Subdet
hcaldqm::Container1D _cSignalRMS_Subdet
Definition: LaserTask.h:88
LaserTask::_cMissing_FEDuTCA
hcaldqm::Container2D _cMissing_FEDuTCA
Definition: LaserTask.h:127
LaserTask::_ehashmap
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: LaserTask.h:62
edm::EDGetTokenT
Definition: EDGetToken.h:33
Container1D.h
LaserTask::_dump
virtual void _dump()
Definition: LaserTask.cc:432
LaserTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: LaserTask.cc:55
LaserTask::_cSignalMeanQIE1011_Subdet
hcaldqm::Container1D _cSignalMeanQIE1011_Subdet
Definition: LaserTask.h:89
LaserTask::_filter_uTCA
hcaldqm::filter::HashFilter _filter_uTCA
Definition: LaserTask.h:63
cuy.col
col
Definition: cuy.py:1010
hcaldqm::fLocal
Definition: DQModule.h:26
LaserTask::LaserFlag
LaserFlag
Definition: LaserTask.h:58
LaserTask::_process
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: LaserTask.cc:563
LaserTask::_tokuMN
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: LaserTask.h:56
LaserTask::_xNChs
hcaldqm::ContainerXXX< int > _xNChs
Definition: LaserTask.h:84
LaserTask::_thresh_frac_timingreflm
double _thresh_frac_timingreflm
Definition: LaserTask.h:140
hcaldqm::ContainerProf1D
Definition: ContainerProf1D.h:20
LaserTask::_xTimingRefLMSum2
hcaldqm::ContainerXXX< double > _xTimingRefLMSum2
Definition: LaserTask.h:82
LaserTask::_cSignalMean_depth
hcaldqm::ContainerProf2D _cSignalMean_depth
Definition: LaserTask.h:108
LaserTask::_cSignalRMS_depth
hcaldqm::ContainerProf2D _cSignalRMS_depth
Definition: LaserTask.h:109
LaserTask::_cTimingvsBX_SubdetPM
hcaldqm::ContainerProf1D _cTimingvsBX_SubdetPM
Definition: LaserTask.h:103
LaserTask::_xEntries
hcaldqm::ContainerXXX< int > _xEntries
Definition: LaserTask.h:78
hcaldqm::ContainerSingle2D
Definition: ContainerSingle2D.h:20
Utilities.h
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition: DQModule.h:43
LaserTask::_vflags
std::vector< hcaldqm::flag::Flag > _vflags
Definition: LaserTask.h:59
LaserTask::_laserMonIEta
int _laserMonIEta
Definition: LaserTask.h:134
ElectronicsMap.h
edm::Handle
Definition: AssociativeIterator.h:50
LaserTask::_cTimingRMS_Subdet
hcaldqm::Container1D _cTimingRMS_Subdet
Definition: LaserTask.h:92
LaserTask::_laserMonThreshold
double _laserMonThreshold
Definition: LaserTask.h:138
LaserTask::_thresh_timingreflm
std::map< HcalSubdetector, std::pair< double, double > > _thresh_timingreflm
Definition: LaserTask.h:139
LaserTask::_lowHE
double _lowHE
Definition: LaserTask.h:70
LaserTask::_tokQIE10
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: LaserTask.h:55
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
LaserTask::_lowHF
double _lowHF
Definition: LaserTask.h:72
LaserTask::_cTimingMean_Subdet
hcaldqm::Container1D _cTimingMean_Subdet
Definition: LaserTask.h:91
Container2D.h
LaserTask::_cSignalvsLS_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsLS_SubdetPM
Definition: LaserTask.h:101
LaserTask::_cTimingMean_depth
hcaldqm::ContainerProf2D _cTimingMean_depth
Definition: LaserTask.h:112
Run.h
LaserTask
Definition: LaserTask.py:1
LaserTask::_tagQIE11
edm::InputTag _tagQIE11
Definition: LaserTask.h:49
LaserTask::_cShapeCut_FEDSlot
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
Definition: LaserTask.h:97
ContainerXXX.h
LaserTask::_laserMonTS0
int _laserMonTS0
Definition: LaserTask.h:137
ContainerSingle1D.h
LaserTask::_lowHBHE
double _lowHBHE
Definition: LaserTask.h:69
LaserTask::_cSignalvsBX_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsBX_SubdetPM
Definition: LaserTask.h:104
LaserTask::_nevents
int _nevents
Definition: LaserTask.h:68
LaserTask::_cSignalMeanQIE1011_depth
hcaldqm::ContainerProf2D _cSignalMeanQIE1011_depth
Definition: LaserTask.h:110
LaserTask::_cTimingMean_FEDuTCA
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
Definition: LaserTask.h:118
LaserTask::_vhashFEDs
std::vector< uint32_t > _vhashFEDs
Definition: LaserTask.h:65
LaserTask::LaserTask
LaserTask(edm::ParameterSet const &)
Definition: LaserTask.cc:6
LaserTask::_cSignalRMSQIE1011_Subdet
hcaldqm::Container1D _cSignalRMSQIE1011_Subdet
Definition: LaserTask.h:90
LaserTask::_laserMonDigiOverlap
int _laserMonDigiOverlap
Definition: LaserTask.h:136
hcaldqm::filter::HashFilter
Definition: HashFilter.h:21
hcaldqm::Container1D
Definition: Container1D.h:25
edm::ParameterSet
Definition: ParameterSet.h:36
LaserTask::nLaserFlag
Definition: LaserTask.h:58
LaserTask::_cTimingRMS_FEDuTCA
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LaserTask.h:122
hcaldqm::ContainerProf2D
Definition: ContainerProf2D.h:19
LaserTask::_xTimingSum
hcaldqm::ContainerXXX< double > _xTimingSum
Definition: LaserTask.h:79
hcaldqm::ContainerSingleProf1D
Definition: ContainerSingleProf1D.h:18
LaserTask::processLaserMon
void processLaserMon(edm::Handle< QIE10DigiCollection > &col, std::vector< int > &iLaserMonADC)
Definition: LaserTask.cc:773
LaserTask::_cMissing_depth
hcaldqm::Container2D _cMissing_depth
Definition: LaserTask.h:125
LaserTask::_tokLaserMon
edm::EDGetTokenT< QIE10DigiCollection > _tokLaserMon
Definition: LaserTask.h:131
ContainerSingleProf2D.h
LaserTask::_cTimingRMS_depth
hcaldqm::ContainerProf2D _cTimingRMS_depth
Definition: LaserTask.h:113
LaserTask::fMissingLaserMon
Definition: LaserTask.h:58
LaserTask::_cLaserMonTiming_Event
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_Event
Definition: LaserTask.h:149
hcaldqm::ContainerXXX< double >
LaserTask::_isApplicable
bool _isApplicable(edm::Event const &) override
Definition: LaserTask.cc:814
LaserTask::_cADC_SubdetPM
hcaldqm::Container1D _cADC_SubdetPM
Definition: LaserTask.h:94
ContainerProf1D.h
LaserTask::_cLaserMonTiming_LS
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_LS
Definition: LaserTask.h:147
LaserTask::_cSignalRMS_FEDVME
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
Definition: LaserTask.h:119
LaserTask::_cTimingDiffEvent_SubdetPM
hcaldqm::ContainerProf2D _cTimingDiffEvent_SubdetPM
Definition: LaserTask.h:152
edm::EventSetup
Definition: EventSetup.h:57
LaserTask::_cTimingvsLS_SubdetPM
hcaldqm::ContainerProf1D _cTimingvsLS_SubdetPM
Definition: LaserTask.h:100
LaserTask::_tokHO
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LaserTask.h:54
LaserTask::_taguMN
edm::InputTag _taguMN
Definition: LaserTask.h:52
LaserTask::_cSignalMean_Subdet
hcaldqm::Container1D _cSignalMean_Subdet
Definition: LaserTask.h:87
alignCSCRings.r
r
Definition: alignCSCRings.py:93
LaserTask::_cTimingMean_FEDVME
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
Definition: LaserTask.h:117
hcaldqm::electronicsmap::ElectronicsMap
Definition: ElectronicsMap.h:32
DQTask.h
LaserTask::_cTiming_DigivsLaserMon_SubdetPM
hcaldqm::Container2D _cTiming_DigivsLaserMon_SubdetPM
Definition: LaserTask.h:150
LaserTask::dqmEndRun
void dqmEndRun(edm::Run const &r, edm::EventSetup const &) override
Definition: LaserTask.h:30
LaserTask::_cLaserMonSumQ_Event
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_Event
Definition: LaserTask.h:148
LaserTask::_tagHO
edm::InputTag _tagHO
Definition: LaserTask.h:50
LaserTask::_cLaserMonSumQ
hcaldqm::ContainerSingle1D _cLaserMonSumQ
Definition: LaserTask.h:144
LaserTask::_xNBadTimingRefLM
hcaldqm::ContainerXXX< int > _xNBadTimingRefLM
Definition: LaserTask.h:83
LaserTask::_cSummaryvsLS
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: LaserTask.h:156
LaserTask::_xSignalSum2
hcaldqm::ContainerXXX< double > _xSignalSum2
Definition: LaserTask.h:77
LaserTask::_tagQIE10
edm::InputTag _tagQIE10
Definition: LaserTask.h:51
LaserTask::_laserType
uint32_t _laserType
Definition: LaserTask.h:73
LaserTask::_xMissingLaserMon
int _xMissingLaserMon
Definition: LaserTask.h:142
LaserTask::_xSignalSum
hcaldqm::ContainerXXX< double > _xSignalSum
Definition: LaserTask.h:76
ContainerProf2D.h
LaserTask::_cSignalvsLSQIE1011_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsLSQIE1011_SubdetPM
Definition: LaserTask.h:102
LaserTask::_vLaserMonIPhi
std::vector< int > _vLaserMonIPhi
Definition: LaserTask.h:133
LaserTask::_cTimingDiffLS_SubdetPM
hcaldqm::ContainerProf2D _cTimingDiffLS_SubdetPM
Definition: LaserTask.h:151
hcaldqm::DQTask
Definition: DQTask.h:33
hcaldqm::ContainerSingle1D
Definition: ContainerSingle1D.h:19
LaserTask::~LaserTask
~LaserTask() override
Definition: LaserTask.h:27
ContainerSingle2D.h
LaserTask::_cLaserMonTiming
hcaldqm::ContainerSingle1D _cLaserMonTiming
Definition: LaserTask.h:145
LaserTask::_tokQIE11
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: LaserTask.h:53
edm::Event
Definition: Event.h:73
LaserTask::_cTimingvsEvent_SubdetPM
hcaldqm::ContainerProf1D _cTimingvsEvent_SubdetPM
Definition: LaserTask.h:98
LaserTask::_cSummaryvsLS_FED
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: LaserTask.h:155
edm::InputTag
Definition: InputTag.h:15
LaserTask::_filter_VME
hcaldqm::filter::HashFilter _filter_VME
Definition: LaserTask.h:64
LaserTask::_cSignalvsBXQIE1011_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsBXQIE1011_SubdetPM
Definition: LaserTask.h:105
LaserTask::_xTimingSum2
hcaldqm::ContainerXXX< double > _xTimingSum2
Definition: LaserTask.h:80
LaserTask::_lowHO
double _lowHO
Definition: LaserTask.h:71
hcaldqm::Container2D
Definition: Container2D.h:19
LaserTask::_xTimingRefLMSum
hcaldqm::ContainerXXX< double > _xTimingRefLMSum
Definition: LaserTask.h:81
LaserTask::_cLaserMonSumQ_LS
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_LS
Definition: LaserTask.h:146
LaserTask::_thresh_min_lmsumq
double _thresh_min_lmsumq
Definition: LaserTask.h:141