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 
36 
46 
49 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //-- no CastorUnpackerReport at the moment !
50 #include "DataFormats/HcalDetId/interface/HcalCastorDetId.h" //-- HcalCastorDetId
51 
52 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
55 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
57 //#include "DQM/CastorMonitor/interface/CastorPSMonitor.h"
58 //#include "DQM/CastorMonitor/interface/CastorHIMonitor.h"
59 //#include "DQM/CastorMonitor/interface/CastorDataIntegrityMonitor.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 
68 
69 #include <memory>
70 #include <iostream>
71 #include <fstream>
72 #include <vector>
73 #include <string>
74 #include <sys/time.h>
75 
76 
77 
79 
80 public:
81 
84 
85 protected:
86 
87  void analyze(const edm::Event& iEvent, const edm::EventSetup& eventSetup);
88 
89  void dqmBeginRun(const edm::Run &, const edm::EventSetup &);
90  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &);
91 
92  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
93  const edm::EventSetup& eventSetup) ;
94 
95  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
96  const edm::EventSetup& eventSetup);
97 
98  void endRun(const edm::Run& run, const edm::EventSetup& eventSetup);
99 
100 private:
101 
104  bool rawOK_ ;
105  bool reportOK_ ;
106  bool digiOK_ ;
107  bool rechitOK_ ;
108 
111 
112  int ievt_;
118 
122 
124 
126 
127  bool showTiming_;
130 
131 };
132 
133 #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)
edm::ESHandle< CastorDbService > conditions_
CastorLEDMonitor * LedMon_
edm::ESHandle< CastorPedestals > dbPedestals
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
int iEvent
Definition: GenABIO.cc:230
CastorMonitorModule(const edm::ParameterSet &ps)
CastorDigiMonitor * DigiMon_
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:41