#include <SiStripMonitorCondDataOnDemandExample.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | beginRun (edm::Run const &run, edm::EventSetup const &eSetup) |
virtual void | endJob () |
virtual void | endRun (edm::Run const &run, edm::EventSetup const &eSetup) |
SiStripMonitorCondDataOnDemandExample (const edm::ParameterSet &) | |
~SiStripMonitorCondDataOnDemandExample () | |
Private Attributes | |
SiStripClassToMonitorCondData * | condDataMonitoring_ |
edm::ParameterSet | conf_ |
int | eventCounter_ |
Definition at line 32 of file SiStripMonitorCondDataOnDemandExample.h.
SiStripMonitorCondDataOnDemandExample::SiStripMonitorCondDataOnDemandExample | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 35 of file SiStripMonitorCondDataOnDemandExample.cc.
:conf_(iConfig){}
SiStripMonitorCondDataOnDemandExample::~SiStripMonitorCondDataOnDemandExample | ( | ) |
Definition at line 43 of file SiStripMonitorCondDataOnDemandExample.cc.
{}
void SiStripMonitorCondDataOnDemandExample::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | eSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 74 of file SiStripMonitorCondDataOnDemandExample.cc.
References condDataMonitoring_.
{ //eventCounter_++; // on demand type I : eventSetup and detId to be passed // output : ME's corresponding to that detId //if(eventCounter_==1){ condDataMonitoring_ -> getModMEsOnDemand(eSetup,369125542);} // on demand type II : eventSetup, subdetector-type(TIB/TOB/TEC/TID), // subdetector-side for TEC/TID (0 for TIB and TOB) // layer_number (0=all layers) //if(eventCounter_==2){ condDataMonitoring_ -> getLayerMEsOnDemand(eSetup,"TEC",0,1);} //condDataMonitoring_ -> getModMEsOnDemand(eSetup,369125542); condDataMonitoring_ -> getLayerMEsOnDemand(eSetup,"TEC",2,4); } // analyze
void SiStripMonitorCondDataOnDemandExample::beginJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 67 of file SiStripMonitorCondDataOnDemandExample.cc.
{} //beginJob
void SiStripMonitorCondDataOnDemandExample::beginRun | ( | edm::Run const & | run, |
edm::EventSetup const & | eSetup | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 52 of file SiStripMonitorCondDataOnDemandExample.cc.
References SiStripClassToMonitorCondData::beginRun(), condDataMonitoring_, conf_, and eventCounter_.
{ eventCounter_=0; condDataMonitoring_ = new SiStripClassToMonitorCondData(conf_); condDataMonitoring_->beginRun(eSetup); } // beginRun
void SiStripMonitorCondDataOnDemandExample::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 113 of file SiStripMonitorCondDataOnDemandExample.cc.
{} //endJob
void SiStripMonitorCondDataOnDemandExample::endRun | ( | edm::Run const & | run, |
edm::EventSetup const & | eSetup | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 101 of file SiStripMonitorCondDataOnDemandExample.cc.
References condDataMonitoring_, and SiStripClassToMonitorCondData::endRun().
{ condDataMonitoring_->endRun(eSetup); } // endRun
Definition at line 51 of file SiStripMonitorCondDataOnDemandExample.h.
Referenced by analyze(), beginRun(), and endRun().
Definition at line 50 of file SiStripMonitorCondDataOnDemandExample.h.
Referenced by beginRun().
int SiStripMonitorCondDataOnDemandExample::eventCounter_ [private] |
Definition at line 49 of file SiStripMonitorCondDataOnDemandExample.h.
Referenced by beginRun().