CMS 3D CMS Logo

CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
12 
17 
20 
26 
31 
35 
38 
48 
52 #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 <fstream>
66 #include <iostream>
67 #include <memory>
68 #include <string>
69 #include <sys/time.h>
70 #include <vector>
71 
73 public:
75  ~CastorMonitorModule() override;
76 
77 protected:
78  void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup) override;
79 
80  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
81  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
82 
83  void dqmEndRun(const edm::Run &run, const edm::EventSetup &eventSetup) override;
84 
85 private:
88  // int NBunchesOrbit;
89  int ievt_;
90  // edm::EDGetTokenT<GlobalAlgBlkBxCollection> l1tStage2uGtSource_;//for L1
91  // uGT DAQ readout record edm::EDGetTokenT<GlobalAlgBlkBxCollection>
92  // TokenL1TStage2uGtSource;
93 
99  typedef std::vector<reco::CastorTower> CastorTowerCollection;
101  typedef std::vector<reco::BasicJet> BasicJetCollection;
103 
104  // std::shared_ptr<l1t::L1TGlobalUtil> gtUtil_;
105 
106  std::unique_ptr<CastorRecHitMonitor> RecHitMon_;
107  std::unique_ptr<CastorDigiMonitor> DigiMon_;
108  std::unique_ptr<CastorLEDMonitor> LedMon_;
109 
110  // MonitorElement* algoBits_before_bxmask_bx_inEvt;
111  // MonitorElement* algoBits_before_bxmask_bx_global;
114 
117 };
118 
119 #endif
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
std::unique_ptr< CastorLEDMonitor > LedMon_
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
std::vector< reco::BasicJet > BasicJetCollection
MonitorElement * hunpkrep
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
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup) override
MonitorElement * CastorEventProduct
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
void dqmEndRun(const edm::Run &run, const edm::EventSetup &eventSetup) override
Definition: Run.h:45