![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCOSTANALYSIS_MONITORBASE_H
6 #define TRIGCOSTANALYSIS_MONITORBASE_H 1
8 #include "GaudiKernel/StatusCode.h"
19 #include <unordered_map>
66 const std::string&
getName()
const;
138 std::unordered_map< std::string, std::unique_ptr<CounterBase> >
m_counters;
149 #endif // TRIGCOSTANALYSIS_MONITORBASE_H
bool msgLvl(const MSG::Level lvl)
Returns if requested level is same or higher than logging level.
char data[hepevt_bytes_allocation_ATLAS]
std::unordered_map< std::string, std::unique_ptr< CounterBase > > m_counters
Storage of Monitor's collection of Counters.
bool counterExists(const std::string &name) const
Check if a counter of a given name exists.
MonitorBase(const MonitorBase &)=delete
Forbid copy.
TH1 * bookGetPointer(TH1 *hist, const std::string &tDir="") const
Appends Monitor name (to histogram path) and forwards histogram book request to parent Range.
const std::string m_name
Monitor's name.
virtual std::unique_ptr< CounterBase > newCounter(const std::string &name)=0
Pure virtual Counter instantiation specialisation.
MsgStream m_msgStream
Logging member.
virtual StatusCode endEvent(float weight=1.)
Called by the framework.
const MonitoredRange * getParent() const
Return cached non-owning const ptr to this Monitor's parent Range.
const MonitoredRange * m_parent
Monitor's parent Range.
CounterBase * getCounter(const std::string &name)
Retrieve counter by name.
MonitorBase & operator=(const MonitorBase &)=delete
Forbid assignment.
::StatusCode StatusCode
StatusCode definition for legacy code.
const std::string & getName() const
Getter for Monitor's name.
MonitorBase()=delete
Forbid default constructor.
Container which represents a time range and holds a collection of Monitors which monitor this range.
MsgStream & msg()
Logging.
Caches and propagates event data to be used by monitoring algorithms.
virtual ~MonitorBase()=default
Default destructor.
virtual StatusCode newEvent(const CostData &data, float weight=1.)=0
Pure virtual interface called by Range to instruct this Monitor to perform its analysis.