CMS 3D CMS Logo

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
CastorJet.h
CastorChannelQualityRcd.h
CastorTower.h
BXVector.h
HcalUnpackerReport.h
CastorDigiMonitor.h
CastorMonitorModule::~CastorMonitorModule
~CastorMonitorModule() override
Definition: CastorMonitorModule.cc:54
CastorMonitorModule::hunpkrep
MonitorElement * hunpkrep
Definition: CastorMonitorModule.h:111
TriggerResults.h
CastorMonitorModule::LedMon_
std::unique_ptr< CastorLEDMonitor > LedMon_
Definition: CastorMonitorModule.h:106
edm::Run
Definition: Run.h:45
CastorMonitorModule::fVerbosity
int fVerbosity
Definition: CastorMonitorModule.h:82
edm::EDGetTokenT< edm::TriggerResults >
GlobalExtBlk.h
edm::CPUTimer
Definition: CPUTimer.h:37
CastorCluster.h
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
CastorMonitorModule::ievt_
int ievt_
Definition: CastorMonitorModule.h:85
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
CastorMonitorModule::inputTokenRaw_
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
Definition: CastorMonitorModule.h:91
ESGetToken.h
CastorMonitorModule::inputTokenDigi_
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
Definition: CastorMonitorModule.h:93
DQMOneEDAnalyzer.h
CastorMonitorModule::CastorTowerCollection
std::vector< reco::CastorTower > CastorTowerCollection
Definition: CastorMonitorModule.h:95
CastorLEDMonitor.h
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
MakerMacros.h
CastorMonitorModule::CastorMonitorModule
CastorMonitorModule(const edm::ParameterSet &ps)
Definition: CastorMonitorModule.cc:28
Service.h
CastorMonitorModule::inputTokenRecHitCASTOR_
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
Definition: CastorMonitorModule.h:94
EventID.h
Run.h
CastorMonitorModule::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: CastorMonitorModule.cc:56
EDGetToken.h
CastorMonitorModule::CastorEventProduct
MonitorElement * CastorEventProduct
Definition: CastorMonitorModule.h:110
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CastorMonitorModule::dqmEndRun
void dqmEndRun(const edm::Run &run, const edm::EventSetup &) override
Definition: CastorMonitorModule.cc:99
CastorRecHitMonitor.h
CaloSubdetectorGeometry.h
CastorMonitorModule::inputTokenReport_
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
Definition: CastorMonitorModule.h:92
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
PCaloHit.h
TriggerNames.h
iEvent
int iEvent
Definition: GenABIO.cc:224
CastorMonitorModule
Definition: CastorMonitorModule.h:68
FEDRawDataCollection.h
CastorMonitorModule::JetAlgorithm
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
Definition: CastorMonitorModule.h:98
GlobalAlgBlk.h
CastorMonitorModule::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &) override
Definition: CastorMonitorModule.cc:105
IdealGeometryRecord.h
edm::EventSetup
Definition: EventSetup.h:57
edm::ESGetToken< CastorDbService, CastorDbRecord >
CastorMonitorModule::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
Definition: CastorMonitorModule.cc:61
CastorMonitorModule::tokenTriggerResults
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
Definition: CastorMonitorModule.h:90
CastorMonitorModule::castorDbServiceToken_
edm::ESGetToken< CastorDbService, CastorDbRecord > castorDbServiceToken_
Definition: CastorMonitorModule.h:100
CastorDbASCIIIO.h
CaloCellGeometry.h
CastorMonitorModule::showTiming_
bool showTiming_
Definition: CastorMonitorModule.h:113
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DetId.h
CastorMonitorModule::DigiMon_
std::unique_ptr< CastorDigiMonitor > DigiMon_
Definition: CastorMonitorModule.h:105
Frameworkfwd.h
CastorMonitorModule::subsystemname_
std::string subsystemname_
Definition: CastorMonitorModule.h:83
CaloHit.h
CaloGeometry.h
PCaloHitContainer.h
CastorMonitorModule::BasicJetCollection
std::vector< reco::BasicJet > BasicJetCollection
Definition: CastorMonitorModule.h:97
L1TGlobalUtil.h
CastorDbService.h
CastorMonitorModule::inputTokenCastorTowers_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
Definition: CastorMonitorModule.h:96
CastorChannelQuality.h
CPUTimer.h
ParameterSet.h
HcalCastorDetId.h
CastorMonitorModule::RecHitMon_
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
Definition: CastorMonitorModule.h:104
CastorMonitorModule::cpu_timer
edm::CPUTimer cpu_timer
Definition: CastorMonitorModule.h:114
edm::Event
Definition: Event.h:73
GlobalPoint.h
CastorDbRecord.h