![]() |
ATLAS Offline Software
|
Concrete implimentation of Monitor to monitor Read Out System. More...
#include <MonitorROS.h>
Public Member Functions | |
| MonitorROS ()=delete | |
| Forbid default constructor. More... | |
| MonitorROS (const std::string &name, const MonitoredRange *parent) | |
| Construct monitor. More... | |
| virtual | ~MonitorROS ()=default |
| Default destructor. More... | |
| MonitorROS & | operator= (const MonitorROS &)=delete |
| Forbid assignment. More... | |
| MonitorROS (const MonitorROS &)=delete | |
| Forbid copy. More... | |
| virtual StatusCode | newEvent (const CostData &data, const float weight=1.) override |
| Concrete dispatch method. More... | |
| virtual std::unique_ptr< CounterBase > | newCounter (const std::string &name) override |
| Concrete counter instantiation. More... | |
| std::unique_ptr< CounterBase > | newCounter (const std::string &name, unsigned nRobs) |
| Creates named counter passing the nRobs argument. More... | |
| const std::string & | getName () const |
| Getter for Monitor's name. More... | |
| const MonitoredRange * | getParent () const |
| Return cached non-owning const ptr to this Monitor's parent Range. More... | |
| TH1 * | bookGetPointer (TH1 *hist, const std::string &tDir="") const |
| Appends Monitor name (to histogram path) and forwards histogram book request to parent Range. More... | |
| bool | counterExists (const std::string &name) const |
| Check if a counter of a given name exists. More... | |
| CounterBase * | getCounter (const std::string &name) |
| Retrieve counter by name. More... | |
| virtual StatusCode | endEvent (float weight=1.) |
| Called by the framework. More... | |
| MsgStream & | msg () |
| Logging. More... | |
| MsgStream & | msg (const MSG::Level lvl) |
| Logging on a given level. More... | |
| bool | msgLvl (const MSG::Level lvl) |
| Returns if requested level is same or higher than logging level. More... | |
Protected Attributes | |
| std::unordered_map< std::string, std::unique_ptr< CounterBase > > | m_counters |
| Storage of Monitor's collection of Counters. More... | |
| MsgStream | m_msgStream |
| Logging member. More... | |
Private Attributes | |
| const std::string | m_name |
| Monitor's name. More... | |
| const MonitoredRange * | m_parent |
| Monitor's parent Range. More... | |
Concrete implimentation of Monitor to monitor Read Out System.
Definition at line 14 of file MonitorROS.h.
|
delete |
Forbid default constructor.
| MonitorROS::MonitorROS | ( | const std::string & | name, |
| const MonitoredRange * | parent | ||
| ) |
Construct monitor.
| [in] | name | Monitor's name |
| [in] | parent | Monitor's parent Range, cached non-owning pointer. |
Definition at line 10 of file MonitorROS.cxx.
|
virtualdefault |
Default destructor.
|
delete |
Forbid copy.
|
inherited |
Appends Monitor name (to histogram path) and forwards histogram book request to parent Range.
| [in] | hist | Bare pointer to histogram. Ownership transferred to THistSvc. |
| [in] | tDir | Histogram name & directory. |
Definition at line 37 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Check if a counter of a given name exists.
| [in] | name | Name of Counter. |
Definition at line 47 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
virtualinherited |
Called by the framework.
Causes per-Event Variables to fill their histograms with their accumulated data.
Definition at line 29 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Retrieve counter by name.
If no such counter exists, a new one will be instanced and returned.
| [in] | name | Name of Counter. |
Definition at line 52 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Getter for Monitor's name.
Definition at line 19 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Return cached non-owning const ptr to this Monitor's parent Range.
Definition at line 24 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Logging.
Definition at line 64 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Logging on a given level.
| [in] | lvl | Verbosity level |
Definition at line 68 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
inherited |
Returns if requested level is same or higher than logging level.
| [in] | lvl | Verbosity level |
Definition at line 72 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.cxx.
|
overridevirtual |
Concrete counter instantiation.
Mints named counter of CounterAlgorithm type.
| [in] | name | Name of Counter to mint. |
Implements MonitorBase.
Definition at line 51 of file MonitorROS.cxx.
| std::unique_ptr< CounterBase > MonitorROS::newCounter | ( | const std::string & | name, |
| unsigned | nRobs | ||
| ) |
Creates named counter passing the nRobs argument.
| [in] | name | Name of Counter to mint. |
| [in] | nRobs | Initialize ROB histograms with nRobs |
Definition at line 55 of file MonitorROS.cxx.
Concrete dispatch method.
Iterate over all Algorithms in event data and dispatch to owned Counters based on class name lookup
| [in] | data | Access to event data |
| [in] | weight | Global event weight |
Implements MonitorBase.
Definition at line 15 of file MonitorROS.cxx.
|
delete |
Forbid assignment.
|
protectedinherited |
Storage of Monitor's collection of Counters.
Keyed by name.
Definition at line 138 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h.
|
protectedinherited |
Logging member.
Definition at line 140 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h.
|
privateinherited |
Monitor's name.
Definition at line 144 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h.
|
privateinherited |
Monitor's parent Range.
Cached non-owning const ptr.
Definition at line 145 of file Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h.
1.8.18