CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
6 
13 
17 
20 
26 
31 
36 
39 
46 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //no CastorUnpackerReport at the moment
47 
48 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
51 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
53 //#include "DQM/CastorMonitor/interface/CastorTowerJetMonitor.h"
54 
55 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h" //-- use to get/dump Calib to DB
56 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h" //-- use to get/hold channel status
58 
59 #include <fstream>
60 #include <iostream>
61 #include <memory>
62 #include <string>
63 #include <sys/time.h>
64 #include <vector>
65 
67 public:
69  ~CastorMonitorModule() override;
70 
71 protected:
72  void analyze(const edm::Event &iEvent, const edm::EventSetup &) override;
73 
74  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
75  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
76 
77  void dqmEndRun(const edm::Run &run, const edm::EventSetup &) override;
78 
79 private:
82  // int NBunchesOrbit;
83  int ievt_;
84  // edm::EDGetTokenT<GlobalAlgBlkBxCollection> l1tStage2uGtSource_;//for L1
85  // uGT DAQ readout record edm::EDGetTokenT<GlobalAlgBlkBxCollection>
86  // TokenL1TStage2uGtSource;
87 
93  typedef std::vector<reco::CastorTower> CastorTowerCollection;
95  typedef std::vector<reco::BasicJet> BasicJetCollection;
97 
99 
100  std::unique_ptr<CastorRecHitMonitor> RecHitMon_;
101  std::unique_ptr<CastorDigiMonitor> DigiMon_;
102  std::unique_ptr<CastorLEDMonitor> LedMon_;
103 
104  // MonitorElement* algoBits_before_bxmask_bx_inEvt;
105  // MonitorElement* algoBits_before_bxmask_bx_global;
108 
111 };
112 
113 #endif
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
std::unique_ptr< CastorLEDMonitor > LedMon_
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
std::vector< reco::BasicJet > BasicJetCollection
MonitorElement * hunpkrep
edm::ESGetToken< CastorDbService, CastorDbRecord > castorDbServiceToken_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
int iEvent
Definition: GenABIO.cc:224
CastorMonitorModule(const edm::ParameterSet &ps)
std::unique_ptr< CastorDigiMonitor > DigiMon_
std::vector< reco::CastorTower > CastorTowerCollection
void analyze(const edm::Event &iEvent, const edm::EventSetup &) override
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
MonitorElement * CastorEventProduct
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
void dqmEndRun(const edm::Run &run, const edm::EventSetup &) override
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
Definition: Run.h:45