ATLAS Offline Software
Loading...
Searching...
No Matches
MonitorAlgorithm.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGCOSTANALYSIS_MONITORALGORITHM_H
6#define TRIGCOSTANALYSIS_MONITORALGORITHM_H 1
7
8#include "../MonitorBase.h"
9#include <string>
10#include <memory>
11
17 public:
21 MonitorAlgorithm() = delete;
22
28 MonitorAlgorithm(const std::string& name, const MonitoredRange* parent);
29
33 virtual ~MonitorAlgorithm() = default;
34
39
44
50 virtual StatusCode newEvent(const CostData& data, const float weight = 1.) override;
51
57 virtual std::unique_ptr<CounterBase> newCounter(const std::string& name) override;
58};
59
60#endif // TRIGCOSTANALYSIS_MONITORALGORITHM_H
Caches and propagates event data to be used by monitoring algorithms.
Definition CostData.h:26
virtual std::unique_ptr< CounterBase > newCounter(const std::string &name) override
Concrete counter instantiation.
virtual StatusCode newEvent(const CostData &data, const float weight=1.) override
Concrete dispatch method.
MonitorAlgorithm()=delete
Forbid default constructor.
MonitorAlgorithm(const MonitorAlgorithm &)=delete
Forbid copy.
MonitorAlgorithm & operator=(const MonitorAlgorithm &)=delete
Forbid assignment.
virtual ~MonitorAlgorithm()=default
Default destructor.
MonitorBase()=delete
Forbid default constructor.
Container which represents a time range and holds a collection of Monitors which monitor this range.