Concrete implementation of Monitor to monitor global properties of event execution.
More...
#include <MonitorGlobal.h>
Concrete implementation of Monitor to monitor global properties of event execution.
Definition at line 14 of file MonitorGlobal.h.
◆ MonitorGlobal() [1/3]
MonitorGlobal::MonitorGlobal |
( |
| ) |
|
|
delete |
Forbid default constructor.
◆ MonitorGlobal() [2/3]
Construct monitor.
- Parameters
-
[in] | name | Monitor's name |
[in] | parent | Monitor's parent Range, cached non-owning pointer. |
Definition at line 8 of file MonitorGlobal.cxx.
◆ ~MonitorGlobal()
virtual MonitorGlobal::~MonitorGlobal |
( |
| ) |
|
|
virtualdefault |
◆ MonitorGlobal() [3/3]
◆ bookGetPointer()
TH1 * MonitorBase::bookGetPointer |
( |
TH1 * |
hist, |
|
|
const std::string & |
tDir = "" |
|
) |
| const |
|
inherited |
Appends Monitor name (to histogram path) and forwards histogram book request to parent Range.
- Parameters
-
[in] | hist | Bare pointer to histogram. Ownership transferred to THistSvc. |
[in] | tDir | Histogram name & directory. |
- Returns
- Cached pointer to histogram. Used to fill histogram without having to perform THishSvc lookup.
Definition at line 37 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
◆ counterExists()
bool MonitorBase::counterExists |
( |
const std::string & |
name | ) |
const |
|
inherited |
◆ endEvent()
StatusCode MonitorBase::endEvent |
( |
float |
weight = 1. | ) |
|
|
virtualinherited |
◆ getCounter()
◆ getName()
const std::string & MonitorBase::getName |
( |
| ) |
const |
|
inherited |
◆ getParent()
◆ msg() [1/2]
MsgStream & MonitorBase::msg |
( |
| ) |
|
|
inherited |
◆ msg() [2/2]
MsgStream & MonitorBase::msg |
( |
const MSG::Level |
lvl | ) |
|
|
inherited |
◆ msgLvl()
bool MonitorBase::msgLvl |
( |
const MSG::Level |
lvl | ) |
|
|
inherited |
◆ newCounter()
std::unique_ptr< CounterBase > MonitorGlobal::newCounter |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
Concrete counter instantiation.
Mints named counter of CounterAlgorith type.
- Parameters
-
[in] | name | Name of Counter to mint. |
- Returns
- Owning unique ptr object typed on the CounterBase base class which points to concrete Counter of specialised type.
Implements MonitorBase.
Definition at line 25 of file MonitorGlobal.cxx.
26 return std::make_unique<CounterGlobal>(
name,
this);
◆ newEvent()
Concrete dispatch method.
Iterate over all Algorithms in event data and dispatch to owned Counters
- Parameters
-
[in] | data | Access to event data |
[in] | weight | Global event weight |
Implements MonitorBase.
Definition at line 12 of file MonitorGlobal.cxx.
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;
◆ operator=()
◆ m_counters
std::unordered_map< std::string, std::unique_ptr<CounterBase> > MonitorBase::m_counters |
|
protectedinherited |
◆ m_msgStream
MsgStream MonitorBase::m_msgStream |
|
protectedinherited |
◆ m_name
const std::string MonitorBase::m_name |
|
privateinherited |
◆ m_parent
The documentation for this class was generated from the following files:
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.