CMS 3D CMS Logo

CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
12 
17 
21 
27 
32 
36 
39 
49 
53 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //no CastorUnpackerReport at the moment
54 
55 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
58 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.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 #include <fstream>
67 #include <iostream>
68 #include <memory>
69 #include <string>
70 #include <sys/time.h>
71 #include <vector>
72 
74 public:
76  ~CastorMonitorModule() override;
77 
78 protected:
79  void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup) override;
80 
81  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
82  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
83 
84  void endRun(const edm::Run &run, const edm::EventSetup &eventSetup) override;
85 
86 private:
89  // int NBunchesOrbit;
90  int ievt_;
91  // edm::EDGetTokenT<GlobalAlgBlkBxCollection> l1tStage2uGtSource_;//for L1
92  // uGT DAQ readout record edm::EDGetTokenT<GlobalAlgBlkBxCollection>
93  // TokenL1TStage2uGtSource;
94 
100  typedef std::vector<reco::CastorTower> CastorTowerCollection;
102  typedef std::vector<reco::BasicJet> BasicJetCollection;
104 
105  // std::shared_ptr<l1t::L1TGlobalUtil> gtUtil_;
106 
107  std::unique_ptr<CastorRecHitMonitor> RecHitMon_;
108  std::unique_ptr<CastorDigiMonitor> DigiMon_;
109  std::unique_ptr<CastorLEDMonitor> LedMon_;
110 
111  // MonitorElement* algoBits_before_bxmask_bx_inEvt;
112  // MonitorElement* algoBits_before_bxmask_bx_global;
115 
118 };
119 
120 #endif
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
std::unique_ptr< CastorLEDMonitor > LedMon_
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
void endRun(const edm::Run &run, const edm::EventSetup &eventSetup) override
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_
Definition: Run.h:45