CMS 3D CMS Logo

CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
12 
16 
22 
27 
31 
35 
38 
48 
51 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //no CastorUnpackerReport at the moment
53 
54 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
57 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
59 //#include "DQM/CastorMonitor/interface/CastorTowerJetMonitor.h"
60 
61 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h" //-- use to get/dump Calib to DB
62 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h" //-- use to get/hold channel status
64 
65 #include <memory>
66 #include <iostream>
67 #include <fstream>
68 #include <vector>
69 #include <string>
70 #include <sys/time.h>
71 
73 
74 public:
75 
77  ~CastorMonitorModule() override;
78 
79 protected:
80 
81  void analyze(const edm::Event& iEvent, const edm::EventSetup& eventSetup) override;
82 
83  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
84  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
85 
86 
87 
88  void endRun(const edm::Run& run, const edm::EventSetup& eventSetup) override;
89 
90 private:
91 
92  int fVerbosity;
97  int ievt_;
98 
103  typedef std::vector<reco::CastorTower> CastorTowerCollection;
105  typedef std::vector<reco::BasicJet> BasicJetCollection;
107 
111 
114 
116 
117  bool showTiming_;
120 };
121 
122 #endif
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
void endRun(const edm::Run &run, 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
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