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 
124 
125  // Bad Quality and Missing Channels
129 
130  // Things for LASERMON
133 
134  std::vector<int> _vLaserMonIPhi; // Laser mon digis are assigned to CBox=5, IEta=0, IPhi=[23-index] by the emap
140  std::map<HcalSubdetector, std::pair<double, double>> _thresh_timingreflm; // Min and max timing (ref. lasermon)
141  double _thresh_frac_timingreflm; // Flag threshold (BAD) on fraction of channels with bad timing
142  double _thresh_min_lmsumq; // Threshold on minimum SumQ from lasermon, if laser is expected
143  int _xMissingLaserMon; // Counter for missing lasermon events
144 
154 
155  // Summaries
158 };
159 
160 #endif
LaserTask::_cSignalMean_FEDuTCA
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
Definition: LaserTask.h:117
LaserTask::_cSignalRMSQIE1011_depth
hcaldqm::ContainerProf2D _cSignalRMSQIE1011_depth
Definition: LaserTask.h:112
ContainerSingleProf1D.h
LaserTask::_cSignalvsEvent_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsEvent_SubdetPM
Definition: LaserTask.h:100
LaserTask::_laserMonCBox
int _laserMonCBox
Definition: LaserTask.h:136
LaserTask::_cMissing_FEDVME
hcaldqm::Container2D _cMissing_FEDVME
Definition: LaserTask.h:127
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:116
LaserTask::_cSignalRMS_FEDuTCA
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LaserTask.h:121
hcaldqm::UpdateFreq
UpdateFreq
Definition: DQTask.h:32
LaserTask::fBadTiming
Definition: LaserTask.h:59
LaserTask::_cTimingRMS_FEDVME
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
Definition: LaserTask.h:122
LaserTask::_tagLaserMon
edm::InputTag _tagLaserMon
Definition: LaserTask.h:131
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:89
LaserTask::_cMissing_FEDuTCA
hcaldqm::Container2D _cMissing_FEDuTCA
Definition: LaserTask.h:128
LaserTask::_ehashmap
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: LaserTask.h:63
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:56
LaserTask::_cSignalMeanQIE1011_Subdet
hcaldqm::Container1D _cSignalMeanQIE1011_Subdet
Definition: LaserTask.h:90
LaserTask::_filter_uTCA
hcaldqm::filter::HashFilter _filter_uTCA
Definition: LaserTask.h:64
cuy.col
col
Definition: cuy.py:1009
hcaldqm::fLocal
Definition: DQModule.h:26
LaserTask::LaserFlag
LaserFlag
Definition: LaserTask.h:59
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:85
LaserTask::_thresh_frac_timingreflm
double _thresh_frac_timingreflm
Definition: LaserTask.h:141
hcaldqm::ContainerProf1D
Definition: ContainerProf1D.h:20
LaserTask::_xTimingRefLMSum2
hcaldqm::ContainerXXX< double > _xTimingRefLMSum2
Definition: LaserTask.h:83
LaserTask::_cSignalMean_depth
hcaldqm::ContainerProf2D _cSignalMean_depth
Definition: LaserTask.h:109
LaserTask::_cSignalRMS_depth
hcaldqm::ContainerProf2D _cSignalRMS_depth
Definition: LaserTask.h:110
LaserTask::_cTimingvsBX_SubdetPM
hcaldqm::ContainerProf1D _cTimingvsBX_SubdetPM
Definition: LaserTask.h:104
LaserTask::_xEntries
hcaldqm::ContainerXXX< int > _xEntries
Definition: LaserTask.h:79
hcaldqm::ContainerSingle2D
Definition: ContainerSingle2D.h:20
Utilities.h
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition: DQModule.h:44
LaserTask::_vflags
std::vector< hcaldqm::flag::Flag > _vflags
Definition: LaserTask.h:60
LaserTask::_laserMonIEta
int _laserMonIEta
Definition: LaserTask.h:135
ElectronicsMap.h
edm::Handle
Definition: AssociativeIterator.h:50
LaserTask::_cTimingRMS_Subdet
hcaldqm::Container1D _cTimingRMS_Subdet
Definition: LaserTask.h:93
LaserTask::_laserMonThreshold
double _laserMonThreshold
Definition: LaserTask.h:139
LaserTask::_thresh_timingreflm
std::map< HcalSubdetector, std::pair< double, double > > _thresh_timingreflm
Definition: LaserTask.h:140
LaserTask::_lowHE
double _lowHE
Definition: LaserTask.h:71
LaserTask::_tokQIE10
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: LaserTask.h:55
LaserTask::_lowHF
double _lowHF
Definition: LaserTask.h:73
LaserTask::_cTimingMean_Subdet
hcaldqm::Container1D _cTimingMean_Subdet
Definition: LaserTask.h:92
Container2D.h
LaserTask::_cSignalvsLS_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsLS_SubdetPM
Definition: LaserTask.h:102
LaserTask::_cTimingMean_depth
hcaldqm::ContainerProf2D _cTimingMean_depth
Definition: LaserTask.h:113
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:98
ContainerXXX.h
LaserTask::_laserMonTS0
int _laserMonTS0
Definition: LaserTask.h:138
ContainerSingle1D.h
LaserTask::_lowHBHE
double _lowHBHE
Definition: LaserTask.h:70
LaserTask::_cSignalvsBX_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsBX_SubdetPM
Definition: LaserTask.h:105
LaserTask::_nevents
int _nevents
Definition: LaserTask.h:69
LaserTask::_cSignalMeanQIE1011_depth
hcaldqm::ContainerProf2D _cSignalMeanQIE1011_depth
Definition: LaserTask.h:111
LaserTask::_cTimingMean_FEDuTCA
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
Definition: LaserTask.h:119
LaserTask::_vhashFEDs
std::vector< uint32_t > _vhashFEDs
Definition: LaserTask.h:66
LaserTask::LaserTask
LaserTask(edm::ParameterSet const &)
Definition: LaserTask.cc:6
LaserTask::_cSignalRMSQIE1011_Subdet
hcaldqm::Container1D _cSignalRMSQIE1011_Subdet
Definition: LaserTask.h:91
LaserTask::_laserMonDigiOverlap
int _laserMonDigiOverlap
Definition: LaserTask.h:137
hcaldqm::filter::HashFilter
Definition: HashFilter.h:21
hcaldqm::Container1D
Definition: Container1D.h:25
edm::ParameterSet
Definition: ParameterSet.h:47
LaserTask::nLaserFlag
Definition: LaserTask.h:59
LaserTask::_cTimingRMS_FEDuTCA
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LaserTask.h:123
hcaldqm::ContainerProf2D
Definition: ContainerProf2D.h:19
LaserTask::_xTimingSum
hcaldqm::ContainerXXX< double > _xTimingSum
Definition: LaserTask.h:80
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:126
LaserTask::_tokLaserMon
edm::EDGetTokenT< QIE10DigiCollection > _tokLaserMon
Definition: LaserTask.h:132
ContainerSingleProf2D.h
LaserTask::_cTimingRMS_depth
hcaldqm::ContainerProf2D _cTimingRMS_depth
Definition: LaserTask.h:114
LaserTask::fMissingLaserMon
Definition: LaserTask.h:59
LaserTask::_cLaserMonTiming_Event
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_Event
Definition: LaserTask.h:150
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:95
ContainerProf1D.h
LaserTask::_cLaserMonTiming_LS
hcaldqm::ContainerSingleProf1D _cLaserMonTiming_LS
Definition: LaserTask.h:148
LaserTask::_cSignalRMS_FEDVME
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
Definition: LaserTask.h:120
LaserTask::_cTimingDiffEvent_SubdetPM
hcaldqm::ContainerProf2D _cTimingDiffEvent_SubdetPM
Definition: LaserTask.h:153
edm::EventSetup
Definition: EventSetup.h:58
LaserTask::_cTimingvsLS_SubdetPM
hcaldqm::ContainerProf1D _cTimingvsLS_SubdetPM
Definition: LaserTask.h:101
edm::ESGetToken< HcalDbService, HcalDbRecord >
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:88
alignCSCRings.r
r
Definition: alignCSCRings.py:93
LaserTask::_cTimingMean_FEDVME
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
Definition: LaserTask.h:118
hcaldqm::electronicsmap::ElectronicsMap
Definition: ElectronicsMap.h:32
DQTask.h
LaserTask::_cTiming_DigivsLaserMon_SubdetPM
hcaldqm::Container2D _cTiming_DigivsLaserMon_SubdetPM
Definition: LaserTask.h:151
LaserTask::dqmEndRun
void dqmEndRun(edm::Run const &r, edm::EventSetup const &) override
Definition: LaserTask.h:30
LaserTask::hcalDbServiceToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: LaserTask.h:57
LaserTask::_cLaserMonSumQ_Event
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_Event
Definition: LaserTask.h:149
LaserTask::_tagHO
edm::InputTag _tagHO
Definition: LaserTask.h:50
LaserTask::_cLaserMonSumQ
hcaldqm::ContainerSingle1D _cLaserMonSumQ
Definition: LaserTask.h:145
LaserTask::_xNBadTimingRefLM
hcaldqm::ContainerXXX< int > _xNBadTimingRefLM
Definition: LaserTask.h:84
LaserTask::_cSummaryvsLS
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: LaserTask.h:157
LaserTask::_xSignalSum2
hcaldqm::ContainerXXX< double > _xSignalSum2
Definition: LaserTask.h:78
LaserTask::_tagQIE10
edm::InputTag _tagQIE10
Definition: LaserTask.h:51
LaserTask::_laserType
uint32_t _laserType
Definition: LaserTask.h:74
dqm::implementation::IBooker
Definition: DQMStore.h:43
LaserTask::_xMissingLaserMon
int _xMissingLaserMon
Definition: LaserTask.h:143
LaserTask::_xSignalSum
hcaldqm::ContainerXXX< double > _xSignalSum
Definition: LaserTask.h:77
ContainerProf2D.h
LaserTask::_cSignalvsLSQIE1011_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsLSQIE1011_SubdetPM
Definition: LaserTask.h:103
LaserTask::_vLaserMonIPhi
std::vector< int > _vLaserMonIPhi
Definition: LaserTask.h:134
LaserTask::_cTimingDiffLS_SubdetPM
hcaldqm::ContainerProf2D _cTimingDiffLS_SubdetPM
Definition: LaserTask.h:152
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:146
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:99
LaserTask::_cSummaryvsLS_FED
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: LaserTask.h:156
edm::InputTag
Definition: InputTag.h:15
LaserTask::_filter_VME
hcaldqm::filter::HashFilter _filter_VME
Definition: LaserTask.h:65
LaserTask::_cSignalvsBXQIE1011_SubdetPM
hcaldqm::ContainerProf1D _cSignalvsBXQIE1011_SubdetPM
Definition: LaserTask.h:106
LaserTask::_xTimingSum2
hcaldqm::ContainerXXX< double > _xTimingSum2
Definition: LaserTask.h:81
LaserTask::_lowHO
double _lowHO
Definition: LaserTask.h:72
hcaldqm::Container2D
Definition: Container2D.h:19
LaserTask::_xTimingRefLMSum
hcaldqm::ContainerXXX< double > _xTimingRefLMSum
Definition: LaserTask.h:82
LaserTask::_cLaserMonSumQ_LS
hcaldqm::ContainerSingleProf1D _cLaserMonSumQ_LS
Definition: LaserTask.h:147
LaserTask::_thresh_min_lmsumq
double _thresh_min_lmsumq
Definition: LaserTask.h:142