ATLAS Offline Software
CounterROS.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGCOSTANALYSIS_COUNTERROS_H
6 #define TRIGCOSTANALYSIS_COUNTERROS_H 1
7 
8 #include "../CounterBase.h"
9 
15 class CounterROS : public CounterBase {
16  public:
20  CounterROS() = delete;
21 
27  CounterROS(const std::string& name, const MonitorBase* parent);
28 
35  CounterROS(const std::string& name, unsigned nRobs, const MonitorBase* parent);
36 
40  virtual ~CounterROS() = default;
41 
45  CounterROS& operator=(const CounterROS&) = delete;
46 
50  CounterROS(const CounterROS&) = delete;
51 
58  virtual StatusCode newEvent(const CostData& data, size_t index, const float weight = 1.) override;
59 
60  private:
65  int getROBHistoryBin(const unsigned history);
66 
67  std::map<uint32_t, unsigned> m_robIdToBin;
68 };
69 
70 #endif // TRIGCOSTANALYSIS_COUNTERROS_H
CounterROS
Concrete implimentation of Counter to monitor the data requests for a single Read Out System request ...
Definition: CounterROS.h:15
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
CounterBase
Forward declare.
Definition: CounterBase.h:25
index
Definition: index.py:1
CounterROS::operator=
CounterROS & operator=(const CounterROS &)=delete
Forbid assignment.
CounterROS::getROBHistoryBin
int getROBHistoryBin(const unsigned history)
Get histogram bin for ROBHistory enum values.
Definition: CounterROS.cxx:114
CounterROS::~CounterROS
virtual ~CounterROS()=default
Default destructor.
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CounterROS::CounterROS
CounterROS(const CounterROS &)=delete
Forbid copy.
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CounterROS::m_robIdToBin
std::map< uint32_t, unsigned > m_robIdToBin
Cached mapping of rob id to bin in ROBsPerRequest_perEvent histogram.
Definition: CounterROS.h:67
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MonitorBase
Forward declare.
Definition: Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h:33
CounterROS::CounterROS
CounterROS()=delete
Forbid default constructor.
CounterROS::newEvent
virtual StatusCode newEvent(const CostData &data, size_t index, const float weight=1.) override
Concrete implementation.
Definition: CounterROS.cxx:32
CostData
Caches and propagates event data to be used by monitoring algorithms.
Definition: CostData.h:26