CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CastorMonitorModule.h
Go to the documentation of this file.
1 #ifndef CastorMonitorModule_H
2 #define CastorMonitorModule_H
3 
6 
14 
19 
22 
28 
33 
38 
41 
48 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h" //no CastorUnpackerReport at the moment
49 
50 //#include "DQM/CastorMonitor/interface/CastorMonitorSelector.h"
53 //#include "DQM/CastorMonitor/interface/CastorChannelQualityMonitor.h"
55 //#include "DQM/CastorMonitor/interface/CastorTowerJetMonitor.h"
56 
57 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h" //-- use to get/dump Calib to DB
58 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h" //-- use to get/hold channel status
60 
61 #include <fstream>
62 #include <iostream>
63 #include <memory>
64 #include <string>
65 #include <sys/time.h>
66 #include <vector>
67 
69 public:
71  ~CastorMonitorModule() override;
72 
73 protected:
74  void analyze(const edm::Event &iEvent, const edm::EventSetup &) override;
75 
76  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
77  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
78 
79  void dqmEndRun(const edm::Run &run, const edm::EventSetup &) override;
80 
81 private:
84  // int NBunchesOrbit;
85  int ievt_;
86  // edm::EDGetTokenT<GlobalAlgBlkBxCollection> l1tStage2uGtSource_;//for L1
87  // uGT DAQ readout record edm::EDGetTokenT<GlobalAlgBlkBxCollection>
88  // TokenL1TStage2uGtSource;
89 
95  typedef std::vector<reco::CastorTower> CastorTowerCollection;
97  typedef std::vector<reco::BasicJet> BasicJetCollection;
99 
101 
102  // std::shared_ptr<l1t::L1TGlobalUtil> gtUtil_;
103 
104  std::unique_ptr<CastorRecHitMonitor> RecHitMon_;
105  std::unique_ptr<CastorDigiMonitor> DigiMon_;
106  std::unique_ptr<CastorLEDMonitor> LedMon_;
107 
108  // MonitorElement* algoBits_before_bxmask_bx_inEvt;
109  // MonitorElement* algoBits_before_bxmask_bx_global;
112 
115 };
116 
117 #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