CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 !
52 #include "DataFormats/HcalDetId/interface/HcalCastorDetId.h" //-- HcalCastorDetId
53 
54 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
57 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
59 //#include "DQM/CastorMonitor/interface/CastorPSMonitor.h"
60 //#include "DQM/CastorMonitor/interface/CastorHIMonitor.h"
61 //#include "DQM/CastorMonitor/interface/CastorDataIntegrityMonitor.h"
62 //#include "DQM/CastorMonitor/interface/CastorTowerJetMonitor.h"
63 
64 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h" //-- use to get/dump Calib to DB
65 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h" //-- use to get/hold channel status
67 
68 
70 
71 #include <memory>
72 #include <iostream>
73 #include <fstream>
74 #include <vector>
75 #include <string>
76 #include <sys/time.h>
77 
78 
79 
81 
82 public:
83 
86 
87 protected:
88 
89  void analyze(const edm::Event& iEvent, const edm::EventSetup& eventSetup);
90 
91  void dqmBeginRun(const edm::Run &, const edm::EventSetup &);
92  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &);
93 
94  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
95  const edm::EventSetup& eventSetup) ;
96 
97  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
98  const edm::EventSetup& eventSetup);
99 
100  void endRun(const edm::Run& run, const edm::EventSetup& eventSetup);
101 
102 private:
103 
106  bool rawOK_ ;
107  bool reportOK_ ;
108  bool digiOK_ ;
109  bool rechitOK_ ;
110 
113 
114  int ievt_;
120  typedef std::vector<reco::CastorTower> CastorTowerCollection;
122  typedef std::vector<reco::BasicJet> BasicJetCollection;
124 
125 // edm::InputTag inputLabelCastorTowers_;
126 // edm::InputTag JetAlgorithm;
127 // edm::InputTag trigResultsSource;
128 
132 
134 
136 
137  bool showTiming_;
140 
141 };
142 
143 #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_
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:43