CMS 3D CMS Logo

CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
6 
13 
18 
21 
27 
32 
37 
40 
47 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //no CastorUnpackerReport at the moment
48 
49 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
52 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
54 //#include "DQM/CastorMonitor/interface/CastorTowerJetMonitor.h"
55 
56 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h" //-- use to get/dump Calib to DB
57 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h" //-- use to get/hold channel status
59 
60 #include <fstream>
61 #include <iostream>
62 #include <memory>
63 #include <string>
64 #include <sys/time.h>
65 #include <vector>
66 
68 public:
70  ~CastorMonitorModule() override;
71 
72 protected:
73  void analyze(const edm::Event &iEvent, const edm::EventSetup &) override;
74 
75  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
76  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
77 
78  void dqmEndRun(const edm::Run &run, const edm::EventSetup &) override;
79 
80 private:
83  // int NBunchesOrbit;
84  int ievt_;
85  // edm::EDGetTokenT<GlobalAlgBlkBxCollection> l1tStage2uGtSource_;//for L1
86  // uGT DAQ readout record edm::EDGetTokenT<GlobalAlgBlkBxCollection>
87  // TokenL1TStage2uGtSource;
88 
94  typedef std::vector<reco::CastorTower> CastorTowerCollection;
96  typedef std::vector<reco::BasicJet> BasicJetCollection;
98 
100 
101  // std::shared_ptr<l1t::L1TGlobalUtil> gtUtil_;
102 
103  std::unique_ptr<CastorRecHitMonitor> RecHitMon_;
104  std::unique_ptr<CastorDigiMonitor> DigiMon_;
105  std::unique_ptr<CastorLEDMonitor> LedMon_;
106 
107  // MonitorElement* algoBits_before_bxmask_bx_inEvt;
108  // MonitorElement* algoBits_before_bxmask_bx_global;
111 
114 };
115 
116 #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