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 
78 
79 protected:
80 
81  void analyze(const edm::Event& iEvent, const edm::EventSetup& eventSetup);
82 
83  void dqmBeginRun(const edm::Run &, const edm::EventSetup &);
84  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &);
85 
86  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
87  const edm::EventSetup& eventSetup) ;
88 
89  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
90  const edm::EventSetup& eventSetup);
91 
92  void endRun(const edm::Run& run, const edm::EventSetup& eventSetup);
93 
94 private:
95 
96  int fVerbosity;
101  int ievt_;
102 
107  typedef std::vector<reco::CastorTower> CastorTowerCollection;
109  typedef std::vector<reco::BasicJet> BasicJetCollection;
111 
115 
118 
120 
121  bool showTiming_;
124 };
125 
126 #endif
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
void endRun(const edm::Run &run, const edm::EventSetup &eventSetup)
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup)
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 &)
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
MonitorElement * CastorEventProduct
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
CastorRecHitMonitor * RecHitMon_
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup)
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
Definition: Run.h:42