|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "../counters/CounterGlobal.h"
15 ss <<
"LumiBlock_" << std::setfill(
'0') << std::setw(5) <<
data.lb();
16 const size_t incrementWalltime = (
data.liveTimeIsPerEvent() or !
counterExists(
ss.str()) ) ? 1 : 0;
21 return StatusCode::SUCCESS;
26 return std::make_unique<CounterGlobal>(
name,
this);
char data[hepevt_bytes_allocation_ATLAS]
virtual StatusCode newEvent(const CostData &data, size_t index, float weight=1.0)=0
Pure virtual interface called by Monitor to instruct this Counter to perform its analysis.
bool counterExists(const std::string &name) const
Check if a counter of a given name exists.
virtual StatusCode newEvent(const CostData &data, const float weight=1.) override
Concrete dispatch method.
MonitorGlobal()=delete
Forbid default constructor.
virtual std::unique_ptr< CounterBase > newCounter(const std::string &name) override
Concrete counter instantiation.
CounterBase * getCounter(const std::string &name)
Retrieve counter by name.
::StatusCode StatusCode
StatusCode definition for legacy code.
Container which represents a time range and holds a collection of Monitors which monitor this range.
Caches and propagates event data to be used by monitoring algorithms.