#include <ZDCMonitorClient.h>
Public Member Functions | |
void | analyze (void) |
Analyze. More... | |
void | analyze (const edm::Event &evt, const edm::EventSetup &es) |
void | beginJob () |
BeginJob. More... | |
void | beginLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &c) |
BeginLumiBlock. More... | |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
BeginRun. More... | |
void | createTests (void) |
Create tests. More... | |
void | dumpHistograms (int &runNum, std::vector< TH1F * > &hist1d, std::vector< TH2F * > &hist2d) |
void | endJob (void) |
EndJob. More... | |
void | endLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &c) |
EndLumiBlock. More... | |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
EndRun. More... | |
void | errorSummary () |
Generate error summary. More... | |
void | htmlOutput (void) |
HtmlOutput. More... | |
void | initialize (const edm::ParameterSet &ps) |
void | loadHistograms (TFile *infile, const char *fname) |
void | offlineSetup () |
bool | prescale () |
Boolean prescale test for this event. More... | |
void | report (bool update) |
Create reports. More... | |
void | resetAllME (void) |
reset all monitor elements More... | |
ZDCMonitorClient () | |
Constructors. More... | |
ZDCMonitorClient (const edm::ParameterSet &ps) | |
~ZDCMonitorClient () | |
Destructor. More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
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 (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
void | removeAllME (void) |
void | writeDBfile () |
Private Attributes | |
std::string | baseHtmlDir_ |
edm::CPUTimer | cpu_timer |
DQMStore * | dbe_ |
Connection to the DQM backend. More... | |
int | debug_ |
Verbosity switch used for debugging or informational output. More... | |
bool | enableMonitorDaemon_ |
int | ievent_ |
int | ievt_ |
int | ilumisec_ |
std::string | inputFile_ |
int | irun_ |
int | itime_ |
int | maxlumisec_ |
int | minlumisec_ |
std::string | monitorName_ |
units of "updates", TBD More... | |
time_t | mytime_ |
int | nlumisecs_ |
counters and flags More... | |
bool | Online_ |
int | prescaleEvt_ |
int | prescaleLS_ |
units of events More... | |
int | prescaleTime_ |
units of lumi sections More... | |
int | prescaleUpdate_ |
units of minutes More... | |
struct { | |
double elapsedTime | |
double startTime | |
timeval startTV | |
double updateTime | |
timeval updateTV | |
} | psTime_ |
int | resetEvents_ |
int | resetLS_ |
std::string | rootFolder_ |
bool | runningStandalone_ |
bool | saved_ |
bool | showTiming_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
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) |
Definition at line 18 of file ZDCMonitorClient.h.
ZDCMonitorClient::ZDCMonitorClient | ( | ) |
ZDCMonitorClient::ZDCMonitorClient | ( | const edm::ParameterSet & | ps | ) |
Definition at line 37 of file ZDCMonitorClient.cc.
References initialize().
ZDCMonitorClient::~ZDCMonitorClient | ( | ) |
Destructor.
Definition at line 44 of file ZDCMonitorClient.cc.
References gather_cfg::cout, and debug_.
void ZDCMonitorClient::analyze | ( | void | ) |
Analyze.
Definition at line 399 of file ZDCMonitorClient.cc.
References gather_cfg::cout, createTests(), dbe_, debug_, errorSummary(), and DQMStore::runQTests().
Referenced by analyze(), endLuminosityBlock(), and endRun().
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 362 of file ZDCMonitorClient.cc.
References analyze(), gather_cfg::cout, debug_, edm::EventID::event(), edm::EventBase::id(), ievent_, ievt_, ilumisec_, irun_, itime_, edm::EventBase::luminosityBlock(), max(), maxlumisec_, bookConverter::min, minlumisec_, mytime_, prescale(), prescaleEvt_, resetAllME(), resetEvents_, resetLS_, edm::EventID::run(), runningStandalone_, edm::EventBase::time(), and edm::Timestamp::value().
|
virtual |
BeginJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 154 of file ZDCMonitorClient.cc.
References gather_cfg::cout, debug_, and ievt_.
|
virtual |
BeginLumiBlock.
Reimplemented from edm::EDAnalyzer.
Definition at line 336 of file ZDCMonitorClient.cc.
References gather_cfg::cout, debug_, ilumisec_, and edm::LuminosityBlockBase::luminosityBlock().
|
virtual |
BeginRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 164 of file ZDCMonitorClient.cc.
References DQMStore::book2D(), DQMStore::bookFloat(), gather_cfg::cout, dbe_, debug_, MonitorElement::Fill(), DQMStore::get(), MonitorElement::getName(), MonitorElement::getTH2F(), edm::RunBase::id(), DQMStore::removeElement(), rootFolder_, edm::RunID::run(), DQMStore::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.
void ZDCMonitorClient::createTests | ( | void | ) |
Create tests.
Definition at line 414 of file ZDCMonitorClient.cc.
References gather_cfg::cout, and debug_.
Referenced by analyze(), and report().
void ZDCMonitorClient::dumpHistograms | ( | int & | runNum, |
std::vector< TH1F * > & | hist1d, | ||
std::vector< TH2F * > & | hist2d | ||
) |
Definition at line 474 of file ZDCMonitorClient.cc.
|
virtual |
EndJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 296 of file ZDCMonitorClient.cc.
References gather_cfg::cout, debug_, and ievt_.
|
virtual |
EndLumiBlock.
Reimplemented from edm::EDAnalyzer.
Definition at line 347 of file ZDCMonitorClient.cc.
References analyze(), gather_cfg::cout, debug_, Online_, prescale(), and prescaleLS_.
|
virtual |
EndRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 305 of file ZDCMonitorClient.cc.
References analyze(), gather_cfg::cout, debug_, edm::RunBase::id(), ievt_, inputFile_, irun_, Online_, report(), and edm::RunID::run().
void ZDCMonitorClient::errorSummary | ( | ) |
Generate error summary.
Definition at line 438 of file ZDCMonitorClient.cc.
References dbe_, MonitorElement::Fill(), DQMStore::get(), and rootFolder_.
Referenced by analyze(), and report().
void ZDCMonitorClient::htmlOutput | ( | void | ) |
void ZDCMonitorClient::initialize | ( | const edm::ParameterSet & | ps | ) |
Definition at line 50 of file ZDCMonitorClient.cc.
References baseHtmlDir_, gather_cfg::cout, dbe_, debug_, enableMonitorDaemon_, edm::ParameterSet::getUntrackedParameter(), ievent_, ilumisec_, inputFile_, irun_, itime_, maxlumisec_, minlumisec_, NULL, Online_, DQMStore::open(), cppFunctionSkipper::operator, prescaleEvt_, prescaleLS_, resetEvents_, resetLS_, rootFolder_, runningStandalone_, DQMStore::showDirStructure(), showTiming_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ZDCMonitorClient().
void ZDCMonitorClient::loadHistograms | ( | TFile * | infile, |
const char * | fname | ||
) |
void ZDCMonitorClient::offlineSetup | ( | ) |
Definition at line 456 of file ZDCMonitorClient.cc.
bool ZDCMonitorClient::prescale | ( | ) |
Boolean prescale test for this event.
Return true if this event should be skipped according to the prescale condition...
Accommodate a logical "OR" of the possible tests
Definition at line 482 of file ZDCMonitorClient.cc.
References gather_cfg::cout, debug_, ievt_, ilumisec_, prescaleEvt_, and prescaleLS_.
Referenced by analyze(), and endLuminosityBlock().
|
private |
Definition at line 130 of file ZDCMonitorClient.cc.
References DQMStore::cd(), gather_cfg::cout, dbe_, debug_, DQMStore::dirExists(), NULL, DQMStore::removeContents(), and DQMStore::rmdir().
void ZDCMonitorClient::report | ( | bool | update | ) |
Create reports.
Definition at line 421 of file ZDCMonitorClient.cc.
References baseHtmlDir_, gather_cfg::cout, createTests(), dbe_, debug_, errorSummary(), htmlOutput(), ievt_, and DQMStore::runQTests().
Referenced by endRun().
void ZDCMonitorClient::resetAllME | ( | void | ) |
reset all monitor elements
do a reset of all monitor elements...
Definition at line 148 of file ZDCMonitorClient.cc.
References gather_cfg::cout, and debug_.
Referenced by analyze().
|
private |
Definition at line 328 of file ZDCMonitorClient.cc.
|
private |
Definition at line 133 of file ZDCMonitorClient.h.
Referenced by initialize(), and report().
|
private |
Definition at line 98 of file ZDCMonitorClient.h.
|
private |
Connection to the DQM backend.
Definition at line 114 of file ZDCMonitorClient.h.
Referenced by analyze(), beginRun(), errorSummary(), initialize(), removeAllME(), and report().
|
private |
Verbosity switch used for debugging or informational output.
Definition at line 94 of file ZDCMonitorClient.h.
Referenced by analyze(), beginJob(), beginLuminosityBlock(), beginRun(), createTests(), endJob(), endLuminosityBlock(), endRun(), initialize(), prescale(), removeAllME(), report(), resetAllME(), and ~ZDCMonitorClient().
double ZDCMonitorClient::elapsedTime |
Definition at line 109 of file ZDCMonitorClient.h.
|
private |
Definition at line 130 of file ZDCMonitorClient.h.
Referenced by initialize().
|
private |
Definition at line 117 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
Definition at line 125 of file ZDCMonitorClient.h.
Referenced by analyze(), beginJob(), endJob(), endRun(), prescale(), and report().
|
private |
Definition at line 118 of file ZDCMonitorClient.h.
Referenced by analyze(), beginLuminosityBlock(), initialize(), and prescale().
|
private |
Definition at line 132 of file ZDCMonitorClient.h.
Referenced by endRun(), and initialize().
|
private |
Definition at line 117 of file ZDCMonitorClient.h.
Referenced by analyze(), endRun(), and initialize().
|
private |
Definition at line 117 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
Definition at line 119 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
Definition at line 119 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
units of "updates", TBD
The name of the monitoring process which derives from this class, used to standardize filename and file structure
Definition at line 91 of file ZDCMonitorClient.h.
|
private |
Definition at line 121 of file ZDCMonitorClient.h.
Referenced by analyze().
|
private |
counters and flags
Definition at line 102 of file ZDCMonitorClient.h.
|
private |
Definition at line 104 of file ZDCMonitorClient.h.
Referenced by endLuminosityBlock(), endRun(), and initialize().
|
private |
Prescale variables for restricting the frequency of analyzer behavior. The base class does not implement prescales. Set to -1 to be ignored.
Definition at line 84 of file ZDCMonitorClient.h.
Referenced by analyze(), initialize(), and prescale().
|
private |
units of events
Definition at line 85 of file ZDCMonitorClient.h.
Referenced by endLuminosityBlock(), initialize(), and prescale().
|
private |
units of lumi sections
Definition at line 86 of file ZDCMonitorClient.h.
|
private |
units of minutes
Definition at line 87 of file ZDCMonitorClient.h.
struct { ... } ZDCMonitorClient::psTime_ |
|
private |
Definition at line 126 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
Definition at line 127 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
Definition at line 123 of file ZDCMonitorClient.h.
Referenced by beginRun(), errorSummary(), and initialize().
|
private |
Definition at line 129 of file ZDCMonitorClient.h.
Referenced by analyze(), and initialize().
|
private |
Definition at line 103 of file ZDCMonitorClient.h.
|
private |
Definition at line 97 of file ZDCMonitorClient.h.
Referenced by initialize().
double ZDCMonitorClient::startTime |
Definition at line 108 of file ZDCMonitorClient.h.
timeval ZDCMonitorClient::startTV |
Definition at line 107 of file ZDCMonitorClient.h.
double ZDCMonitorClient::updateTime |
Definition at line 110 of file ZDCMonitorClient.h.
timeval ZDCMonitorClient::updateTV |
Definition at line 107 of file ZDCMonitorClient.h.