|
ATLAS Offline Software
|
Go to the documentation of this file.
14 m_cachedLifetimeHistPtr(nullptr),
18 std::string hisSvcName =
getName() +
"_walltime";
19 std::unique_ptr<TProfile>
hist = std::make_unique<TProfile>(hisSvcName.c_str(),
"Walltime;;Seconds", 5000, 0, 5000);
51 return StatusCode::SUCCESS;
56 if (not skipMonitoringThisEvent) {
63 const bool isNewLB =
m_seenLB.insert(
data.lb() ).second;
64 if (
data.liveTimeIsPerEvent() or isNewLB) {
73 return StatusCode::SUCCESS;
TrigCostAnalysis * m_parent
Cached ptr to the parent Athena algorithm.
char data[hepevt_bytes_allocation_ATLAS]
TH1 * bookGetPointer(TH1 *hist, const std::string &tDir="") const
Appends Range's name (to histogram path) and forwards histogram book request to parent Athena algorit...
TH1 * bookGetPointer(TH1 *hist, const std::string &tDir="") const
Public method forwarded to this class' AthHistogramAlgorithm::bookGetPointer base.
StatusCode addMonitor(std::unique_ptr< MonitorBase > monitor)
Adds a new Monitor into this Range.
std::set< std::unique_ptr< MonitorBase > > m_monitors
Storage of Range's Monitors.
std::set< uint32_t > m_seenLB
Luminosity blocks for which we have seen at least one event.
const std::string & getName() const
Getter for Range's name.
const std::string m_name
Name of the Monitored Range.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode newEvent(const CostData &data, const float weight=1., const bool skipMonitoringThisEvent=false)
Interface called by TrigCostAnalysis algorithm to instruct this Range to trigger all its Monitors.
std::set< std::unique_ptr< MonitorBase > > & getMonitors()
Getter for Range's owned Monitors.
Athena algorithm used to process Trigger cost monitoring data in Run 3 and above. Outputs histograms.
TH1 * m_cachedLifetimeHistPtr
Cached histogram ptr used to store normalisation quantities.
MonitoredRange()=delete
Forbid default constructor.
Caches and propagates event data to be used by monitoring algorithms.
const TrigCostAnalysis * getParent() const
Return cached non-owning ptr to this Monitor's parent TrigCostAnalysis Athena algorithm.