CMS 3D CMS Logo

CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
12 
17 
21 
27 
32 
36 
39 
49 
52 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //no CastorUnpackerReport at the moment
54 
55 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
58 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
60 //#include "DQM/CastorMonitor/interface/CastorTowerJetMonitor.h"
61 
62 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h" //-- use to get/dump Calib to DB
63 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h" //-- use to get/hold channel status
65 
66 #include <memory>
67 #include <iostream>
68 #include <fstream>
69 #include <vector>
70 #include <string>
71 #include <sys/time.h>
72 
74 
75 public:
76 
78  ~CastorMonitorModule() override;
79 
80 protected:
81 
82  void analyze(const edm::Event& iEvent, const edm::EventSetup& eventSetup) override;
83 
84  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
85  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
86 
87  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
88  const edm::EventSetup& eventSetup) override;
89 
90  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
91  const edm::EventSetup& eventSetup) override;
92 
93  void endRun(const edm::Run& run, const edm::EventSetup& eventSetup) override;
94 
95 private:
96 
97  int fVerbosity;
101 // int NBunchesOrbit;
102  int ievt_;
103 // edm::EDGetTokenT<GlobalAlgBlkBxCollection> l1tStage2uGtSource_;//for L1 uGT DAQ readout record
104 // edm::EDGetTokenT<GlobalAlgBlkBxCollection> TokenL1TStage2uGtSource;
105 
111  typedef std::vector<reco::CastorTower> CastorTowerCollection;
113  typedef std::vector<reco::BasicJet> BasicJetCollection;
115 
116 // std::shared_ptr<l1t::L1TGlobalUtil> gtUtil_;
117 
121 
122 // MonitorElement* algoBits_before_bxmask_bx_inEvt;
123 // MonitorElement* algoBits_before_bxmask_bx_global;
126 
128 
129  bool showTiming_;
132 };
133 
134 #endif
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
void endRun(const edm::Run &run, const edm::EventSetup &eventSetup) override
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup) override
std::vector< reco::BasicJet > BasicJetCollection
edm::ESHandle< CastorDbService > conditions_
MonitorElement * hunpkrep
CastorLEDMonitor * LedMon_
edm::ESHandle< CastorPedestals > dbPedestals
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
int iEvent
Definition: GenABIO.cc:230
CastorMonitorModule(const edm::ParameterSet &ps)
CastorDigiMonitor * DigiMon_
std::vector< reco::CastorTower > CastorTowerCollection
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup) override
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup) override
MonitorElement * CastorEventProduct
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
CastorRecHitMonitor * RecHitMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
Definition: Run.h:44