CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
CastorMonitorModule Class Reference

#include <CastorMonitorModule.h>

Inheritance diagram for CastorMonitorModule:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 CastorMonitorModule (const edm::ParameterSet &ps)
 
 ~CastorMonitorModule ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &eventSetup)
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup)
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &)
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup)
 
void endRun (const edm::Run &run, const edm::EventSetup &eventSetup)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Types

typedef std::vector
< reco::BasicJet
BasicJetCollection
 
typedef std::vector
< reco::CastorTower
CastorTowerCollection
 

Private Attributes

MonitorElementCastorEventProduct
 
edm::ESHandle< CastorDbServiceconditions_
 
edm::CPUTimer cpu_timer
 
edm::ESHandle< CastorPedestalsdbPedestals
 
CastorDigiMonitorDigiMon_
 
bool digiOK_
 
float fedsUnpacked
 
int fVerbosity
 
int ibunch_
 
int ievent_
 
int ievt_
 
int ilumisec_
 
edm::EDGetTokenT
< CastorTowerCollection
inputTokenCastorTowers_
 
edm::EDGetTokenT
< CastorDigiCollection
inputTokenDigi_
 
edm::EDGetTokenT
< FEDRawDataCollection
inputTokenRaw_
 
edm::EDGetTokenT
< CastorRecHitCollection
inputTokenRecHitCASTOR_
 
edm::EDGetTokenT
< HcalUnpackerReport
inputTokenReport_
 
int irun_
 
int itime_
 
edm::EDGetTokenT
< BasicJetCollection
JetAlgorithm
 
CastorLEDMonitorLedMon_
 
int NBunchesOrbit
 
bool rawOK_
 
CastorRecHitMonitorRecHitMon_
 
bool rechitOK_
 
bool reportOK_
 
std::string rootFolder_
 
bool showTiming_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 80 of file CastorMonitorModule.h.

Member Typedef Documentation

Definition at line 122 of file CastorMonitorModule.h.

Definition at line 120 of file CastorMonitorModule.h.

Constructor & Destructor Documentation

CastorMonitorModule::CastorMonitorModule ( const edm::ParameterSet ps)

Definition at line 22 of file CastorMonitorModule.cc.

References gather_cfg::cout, DigiMon_, fVerbosity, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), ibunch_, ievent_, ievt_, ilumisec_, inputTokenCastorTowers_, inputTokenDigi_, inputTokenRaw_, inputTokenRecHitCASTOR_, inputTokenReport_, irun_, itime_, JetAlgorithm, LedMon_, NBunchesOrbit, NULL, RecHitMon_, CastorDigiMonitor::setup(), CastorRecHitMonitor::setup(), CastorLEDMonitor::setup(), showTiming_, and AlCaHLTBitMon_QueryRunRegistry::string.

23 {
24  fVerbosity = ps.getUntrackedParameter<int>("debug", 0);
25  if(fVerbosity>0) std::cout<<"CastorMonitorModule Constructor(start)"<<std::endl;
26 
27  inputTokenRaw_ = consumes<FEDRawDataCollection>(ps.getParameter<edm::InputTag>("rawLabel"));
28  inputTokenReport_ = consumes<HcalUnpackerReport>(ps.getParameter<edm::InputTag>("unpackerReportLabel"));
29  inputTokenDigi_ = consumes<CastorDigiCollection>(ps.getParameter<edm::InputTag>("digiLabel"));
30  inputTokenRecHitCASTOR_ = consumes<CastorRecHitCollection>(ps.getParameter<edm::InputTag>("CastorRecHitLabel"));
31  inputTokenCastorTowers_ = consumes<CastorTowerCollection>(ps.getParameter<edm::InputTag>("CastorTowerLabel"));
32  JetAlgorithm = consumes<BasicJetCollection>(ps.getParameter<edm::InputTag>("CastorBasicJetsLabel"));
33 
34  NBunchesOrbit = ps.getUntrackedParameter<int>("nBunchesOrbit",3563);
35  showTiming_ = ps.getUntrackedParameter<bool>("showTiming",false);
36 
37 // inputLabelCastorTowers_ = ps.getParameter<edm::InputTag>("CastorTowerLabel");
38 
39  irun_=0;
40  ilumisec_=0;
41  ievent_=0;
42  itime_=0;
43  ibunch_=0;
44 
45  DigiMon_ = NULL;
46  RecHitMon_ = NULL;
47  LedMon_ = NULL;
48 
49  //---------------------- DigiMonitor ----------------------//
50  if ( ps.getUntrackedParameter<bool>("DigiMonitor", false) ) {
51  if(fVerbosity>0) std::cout << "CastorMonitorModule: Digi monitor flag is on...." << std::endl;
52  DigiMon_ = new CastorDigiMonitor(ps);
53 // DigiMon_ = new CastorDigiMonitor();
54  DigiMon_->setup(ps);
55  }
56 
58  if ( ps.getUntrackedParameter<bool>("RecHitMonitor", false) ) {
59  if(fVerbosity>0) std::cout << "CastorMonitorModule: RecHit monitor flag is on...." << std::endl;
61  RecHitMon_->setup(ps);
62  }
64  if ( ps.getUntrackedParameter<bool>("LEDMonitor", false) ) {
65  if(fVerbosity>0) std::cout << "CastorMonitorModule: LED monitor flag is on...." << std::endl;
66  LedMon_ = new CastorLEDMonitor(ps);
67  LedMon_->setup(ps);
68  }
69  //-------------------------------------------------------------//
70 
71  std::string subsystemname = ps.getUntrackedParameter<std::string>("subSystemFolder","Castor");
72  if(fVerbosity>1) std::cout << "===>CastorMonitor name = " << subsystemname << std::endl;
73 
74  ievt_ = 0;
75 
76  if(fVerbosity>0) std::cout<<"CastorMonitorModule Constructor(end)"<< std::endl;
77 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void setup(const edm::ParameterSet &ps)
void setup(const edm::ParameterSet &ps)
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
CastorLEDMonitor * LedMon_
#define NULL
Definition: scimark2.h:8
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
CastorDigiMonitor * DigiMon_
void setup(const edm::ParameterSet &ps)
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
CastorRecHitMonitor * RecHitMon_
tuple cout
Definition: gather_cfg.py:145
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
CastorMonitorModule::~CastorMonitorModule ( )

Definition at line 80 of file CastorMonitorModule.cc.

References DigiMon_, LedMon_, NULL, and RecHitMon_.

80  {
81  if (DigiMon_ != NULL) { delete DigiMon_; }
82  if (RecHitMon_ != NULL) { delete RecHitMon_; }
83  if (LedMon_ != NULL) { delete LedMon_; }
84 }
CastorLEDMonitor * LedMon_
#define NULL
Definition: scimark2.h:8
CastorDigiMonitor * DigiMon_
CastorRecHitMonitor * RecHitMon_

Member Function Documentation

void CastorMonitorModule::analyze ( const edm::Event iEvent,
const edm::EventSetup eventSetup 
)
protectedvirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 132 of file CastorMonitorModule.cc.

References edm::EventBase::bunchCrossing(), CastorEventProduct, conditions_, gather_cfg::cout, cpu_timer, edm::CPUTimer::cpuTime(), DigiMon_, digiOK_, edm::EventID::event(), HcalMonitorModule_cfi::feds, fedsUnpacked, MonitorElement::Fill(), fVerbosity, edm::Event::getByToken(), ibunch_, edm::EventBase::id(), ievent_, ievt_, ilumisec_, inputTokenCastorTowers_, inputTokenDigi_, inputTokenRaw_, inputTokenRecHitCASTOR_, inputTokenReport_, irun_, itime_, JetAlgorithm, fwrapper::jets, LedMon_, edm::EventBase::luminosityBlock(), NBunchesOrbit, NULL, CastorDigiMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorRecHitMonitor::processEventJets(), CastorRecHitMonitor::processEventTowers(), rawOK_, RecHitMon_, rechitOK_, zeeHLT_cff::report, edm::CPUTimer::reset(), edm::EventID::run(), showTiming_, edm::CPUTimer::start(), edm::CPUTimer::stop(), edm::EventBase::time(), and edm::Timestamp::value().

133 {
134  if (fVerbosity>0) std::cout <<" "<<std::endl;
135  if (fVerbosity>0) std::cout <<"CastorMonitorModule::analyze (start)"<<std::endl;
136 
137  using namespace edm;
138 
139  irun_ = iEvent.id().run();
140  ilumisec_ = iEvent.luminosityBlock();
141  ievent_ = iEvent.id().event();
142  itime_ = iEvent.time().value();
143  ibunch_ = iEvent.bunchCrossing() % NBunchesOrbit;
144 
145  if (fVerbosity>1) {
146 //std::cout << " CastorMonitorModule: evts: "<<nevt_ <<", run: "<<irun_<<", LS: "<<ilumisec_<<std::endl;
147  std::cout <<" evt:"<<ievent_<<", time: "<<itime_ <<"\t total count = "<<ievt_<<std::endl;
148  }
149 
150  ievt_++;
151 
152  bool rawOK_ = true;
153  bool digiOK_ = true;
154  bool rechitOK_ = true;
155 
157  iEvent.getByToken(inputTokenRaw_,RawData);
158  if (!RawData.isValid()) {
159  rawOK_=false;
160  if (fVerbosity>0) std::cout << "RAW DATA NOT FOUND!" << std::endl;
161  }
162 
165  if (!report.isValid()) {
166  rawOK_=false;
167  if (fVerbosity>0) std::cout << "UNPACK REPORT HAS FAILED!" << std::endl;
168  }
169  else
170  {
171  const std::vector<int> feds = (*report).getFedsUnpacked();
172  fedsUnpacked = float(feds.size())/3.;
173  }
174 
176  iEvent.getByToken(inputTokenDigi_,CastorDigi);
177  if (!CastorDigi.isValid()) {
178  digiOK_=false;
179  if (fVerbosity>0) std::cout << "DIGI DATA NOT FOUND!" << std::endl;
180  }
181 
183  iEvent.getByToken(inputTokenRecHitCASTOR_,CastorHits);
184  if (!CastorHits.isValid()) {
185  rechitOK_ = false;
186  if (fVerbosity>0) std::cout << "RECO DATA NOT FOUND!" << std::endl;
187  }
188 
190  CastorEventProduct->Fill(1,int(rawOK_));
193 
194  if(digiOK_) DigiMon_->processEvent(*CastorDigi,*conditions_);
195  if (showTiming_){
196  cpu_timer.stop();
197  if (DigiMon_!=NULL) std::cout <<"TIMER:: DIGI MONITOR ->"<<cpu_timer.cpuTime()<<std::endl;
199  }
200 
201  if(rechitOK_) {
202 // RecHitMon_->processEvent(*CastorHits,*hltResults);
203  RecHitMon_->processEvent(*CastorHits);
205 // iEvent.getByLabel(inputLabelCastorTowers_,castorTowers);
206  iEvent.getByToken(inputTokenCastorTowers_,castorTowers);
207  RecHitMon_->processEventTowers(*castorTowers);
209 // iEvent.getByLabel(JetAlgorithm,jets);
210  iEvent.getByToken(JetAlgorithm,jets);
212  }
213 
214  if (showTiming_){
215  cpu_timer.stop();
216  if (RecHitMon_!=NULL) std::cout <<"TIMER:: RECHIT MONITOR ->"<<cpu_timer.cpuTime()<<std::endl;
218  }
219 
220  if(digiOK_) LedMon_->processEvent(*CastorDigi,*conditions_);
221  if (showTiming_){
222  cpu_timer.stop();
223  if (LedMon_!=NULL) std::cout <<"TIMER:: LED MONITOR ->"<<cpu_timer.cpuTime()<<std::endl;
225  }
226 
227  if(fVerbosity>1 && ievt_%100 == 0)
228  std::cout << "CastorMonitorModule: processed "<<ievt_<<" events"<<std::endl;
229  if (fVerbosity>0) std::cout <<"CastorMonitorModule::analyze (end)"<<std::endl;
230  return;
231 }
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
void start()
Definition: CPUTimer.cc:74
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
edm::ESHandle< CastorDbService > conditions_
int bunchCrossing() const
Definition: EventBase.h:65
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:62
CastorLEDMonitor * LedMon_
void reset()
Definition: CPUTimer.cc:107
#define NULL
Definition: scimark2.h:8
void Fill(long long x)
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
tuple report
Definition: zeeHLT_cff.py:9
void processEventJets(const reco::BasicJetCollection &Jets)
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
vector< PseudoJet > jets
CastorDigiMonitor * DigiMon_
Times stop()
Definition: CPUTimer.cc:94
double cpuTime() const
Definition: CPUTimer.cc:158
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
MonitorElement * CastorEventProduct
edm::EventID id() const
Definition: EventBase.h:59
void processEventTowers(const reco::CastorTowerCollection &castorTowers)
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
CastorRecHitMonitor * RecHitMon_
tuple cout
Definition: gather_cfg.py:145
void processEvent(const CastorRecHitCollection &castorHits)
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
TimeValue_t value() const
Definition: Timestamp.h:56
edm::Timestamp time() const
Definition: EventBase.h:60
void CastorMonitorModule::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup eventSetup 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 122 of file CastorMonitorModule.cc.

123  { }
void CastorMonitorModule::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
protectedvirtual

Implements DQMEDAnalyzer.

Definition at line 98 of file CastorMonitorModule.cc.

References DQMStore::IBooker::book1D(), CastorDigiMonitor::bookHistograms(), CastorRecHitMonitor::bookHistograms(), CastorLEDMonitor::bookHistograms(), CastorEventProduct, gather_cfg::cout, DigiMon_, fVerbosity, MonitorElement::getTH1F(), LedMon_, NULL, RecHitMon_, rootFolder_, alignCSCRings::s, and DQMStore::IBooker::setCurrentFolder().

100 {
101  if(fVerbosity>0) std::cout<<"CastorMonitorModule::beginRun (start)" << std::endl;
102 
103  if (DigiMon_ != NULL) { DigiMon_->bookHistograms(ibooker,iRun,iSetup);}
104  if (RecHitMon_ != NULL) { RecHitMon_->bookHistograms(ibooker,iRun,iSetup); }
105  if (LedMon_ != NULL) { LedMon_->bookHistograms(ibooker,iRun,iSetup); }
106 
107 //std::cout<<"CastorMonitorModule::bookHist(): CastorCurrentFolder:"<<rootFolder_<<std::endl;
108  ibooker.setCurrentFolder(rootFolder_ + "CastorEventProducts");
109  char s[60];
110  sprintf(s,"CastorEventProducts");
111  CastorEventProduct = ibooker.book1D(s,s,4,-0.5,3.5);
112  CastorEventProduct->getTH1F()->GetXaxis()->SetBinLabel(1,"FEDs/3");
113  CastorEventProduct->getTH1F()->GetXaxis()->SetBinLabel(2,"RawData");
114  CastorEventProduct->getTH1F()->GetXaxis()->SetBinLabel(3,"CastorDigi");
115  CastorEventProduct->getTH1F()->GetXaxis()->SetBinLabel(4,"CastorRecHits");
116 
117  if(fVerbosity>0)
118  std::cout<<"CastorMonitorModule::bookHistogram(end)"<< std::endl;
119  return;
120 }
CastorLEDMonitor * LedMon_
#define NULL
Definition: scimark2.h:8
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
CastorDigiMonitor * DigiMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
TH1F * getTH1F(void) const
MonitorElement * CastorEventProduct
CastorRecHitMonitor * RecHitMon_
tuple cout
Definition: gather_cfg.py:145
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
void CastorMonitorModule::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
protectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 86 of file CastorMonitorModule.cc.

References conditions_, gather_cfg::cout, dbPedestals, fVerbosity, edm::EventSetup::get(), and edm::ESHandleBase::isValid().

87  {
88  iSetup.get<CastorDbRecord>().get(conditions_);
89 
91  iSetup.get<CastorPedestalsRcd>().get(dbPedestals);
92  if(!dbPedestals.isValid() && fVerbosity>0) {
93  std::cout<<"CASTOR has no CastorPedestals in the CondDB"<<std::endl;
94  }
95 }
edm::ESHandle< CastorDbService > conditions_
edm::ESHandle< CastorPedestals > dbPedestals
const T & get() const
Definition: EventSetup.h:56
tuple cout
Definition: gather_cfg.py:145
bool isValid() const
Definition: ESHandle.h:47
void CastorMonitorModule::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup eventSetup 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 125 of file CastorMonitorModule.cc.

126  {}
void CastorMonitorModule::endRun ( const edm::Run run,
const edm::EventSetup eventSetup 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 128 of file CastorMonitorModule.cc.

129 {}

Member Data Documentation

MonitorElement* CastorMonitorModule::CastorEventProduct
private

Definition at line 133 of file CastorMonitorModule.h.

Referenced by analyze(), and bookHistograms().

edm::ESHandle<CastorDbService> CastorMonitorModule::conditions_
private

Definition at line 135 of file CastorMonitorModule.h.

Referenced by analyze(), and dqmBeginRun().

edm::CPUTimer CastorMonitorModule::cpu_timer
private

Definition at line 138 of file CastorMonitorModule.h.

Referenced by analyze().

edm::ESHandle<CastorPedestals> CastorMonitorModule::dbPedestals
private

Definition at line 139 of file CastorMonitorModule.h.

Referenced by dqmBeginRun().

CastorDigiMonitor* CastorMonitorModule::DigiMon_
private
bool CastorMonitorModule::digiOK_
private

Definition at line 108 of file CastorMonitorModule.h.

Referenced by analyze().

float CastorMonitorModule::fedsUnpacked
private

Definition at line 105 of file CastorMonitorModule.h.

Referenced by analyze().

int CastorMonitorModule::fVerbosity
private

Definition at line 104 of file CastorMonitorModule.h.

Referenced by analyze(), bookHistograms(), CastorMonitorModule(), and dqmBeginRun().

int CastorMonitorModule::ibunch_
private

Definition at line 111 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

int CastorMonitorModule::ievent_
private

Definition at line 111 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

int CastorMonitorModule::ievt_
private

Definition at line 114 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

int CastorMonitorModule::ilumisec_
private

Definition at line 111 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

edm::EDGetTokenT<CastorTowerCollection> CastorMonitorModule::inputTokenCastorTowers_
private

Definition at line 121 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

edm::EDGetTokenT<CastorDigiCollection> CastorMonitorModule::inputTokenDigi_
private

Definition at line 118 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

edm::EDGetTokenT<FEDRawDataCollection> CastorMonitorModule::inputTokenRaw_
private

Definition at line 116 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

edm::EDGetTokenT<CastorRecHitCollection> CastorMonitorModule::inputTokenRecHitCASTOR_
private

Definition at line 119 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

edm::EDGetTokenT<HcalUnpackerReport> CastorMonitorModule::inputTokenReport_
private

Definition at line 117 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

int CastorMonitorModule::irun_
private

Definition at line 111 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

int CastorMonitorModule::itime_
private

Definition at line 111 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

edm::EDGetTokenT<BasicJetCollection> CastorMonitorModule::JetAlgorithm
private

Definition at line 123 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

CastorLEDMonitor* CastorMonitorModule::LedMon_
private
int CastorMonitorModule::NBunchesOrbit
private

Definition at line 115 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().

bool CastorMonitorModule::rawOK_
private

Definition at line 106 of file CastorMonitorModule.h.

Referenced by analyze().

CastorRecHitMonitor* CastorMonitorModule::RecHitMon_
private
bool CastorMonitorModule::rechitOK_
private

Definition at line 109 of file CastorMonitorModule.h.

Referenced by analyze().

bool CastorMonitorModule::reportOK_
private

Definition at line 107 of file CastorMonitorModule.h.

std::string CastorMonitorModule::rootFolder_
private

Definition at line 112 of file CastorMonitorModule.h.

Referenced by bookHistograms().

bool CastorMonitorModule::showTiming_
private

Definition at line 137 of file CastorMonitorModule.h.

Referenced by analyze(), and CastorMonitorModule().