ATLAS Offline Software
CounterThread.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_COUNTERTHREAD_H
6 #define TRIGCOSTANALYSIS_COUNTERTHREAD_H 1
7 
8 #include "../CounterBase.h"
9 
14 class CounterThread : public CounterBase {
15  public:
19  CounterThread() = delete;
20 
26  CounterThread(const std::string& name, const MonitorBase* parent);
27 
31  virtual ~CounterThread() = default;
32 
37 
41  CounterThread(const CounterThread&) = delete;
42 
49  virtual StatusCode newEvent(const CostData& data, size_t index, const float weight = 1.0) override;
50 
55  StatusCode postProcess(float weight = 1.0);
56 
60  uint64_t getLowTimestamp() const;
61 
65  uint64_t getHighTimestamp() const;
66 
71 
74 
77 
78 };
79 
80 
81 #endif // TRIGCOSTANALYSIS_COUNTERTHREAD_H
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
CounterBase
Forward declare.
Definition: CounterBase.h:25
index
Definition: index.py:1
CounterThread
Concrete implimentation of Counter to monitor all algorithms executing on a single thread.
Definition: CounterThread.h:14
CounterThread::m_lowTimestamp
uint64_t m_lowTimestamp
Records the lowest timestamp seen on this single thread in an event.
Definition: CounterThread.h:72
CounterThread::postProcess
StatusCode postProcess(float weight=1.0)
Apply post-processing to the Counter, before endEvent is called.
Definition: CounterThread.cxx:54
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
CounterThread::CounterThread
CounterThread(const CounterThread &)=delete
Forbid copy.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CounterThread::operator=
CounterThread & operator=(const CounterThread &)=delete
Forbid assignment.
CounterThread::m_highTimestamp
uint64_t m_highTimestamp
Records the highest timestamp seen on this single thread in an event.
Definition: CounterThread.h:73
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CounterThread::~CounterThread
virtual ~CounterThread()=default
Default destructor.
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
CounterThread::getLowTimestamp
uint64_t getLowTimestamp() const
Get the lowest timestamp of this single thread.
Definition: CounterThread.cxx:97
CounterThread::newEvent
virtual StatusCode newEvent(const CostData &data, size_t index, const float weight=1.0) override
Concrete implementation.
Definition: CounterThread.cxx:32
CounterThread::getHighTimestamp
uint64_t getHighTimestamp() const
Get the highest timestamp of this single thread.
Definition: CounterThread.cxx:102
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MonitorBase
Forward declare.
Definition: Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h:33
CounterThread::CounterThread
CounterThread()=delete
Forbid default constructor.
CounterThread::m_globalLowTimestamp
uint64_t m_globalLowTimestamp
Records the lowest timestamp seen over all threads in an event.
Definition: CounterThread.h:75
CounterThread::m_globalHighTimestamp
uint64_t m_globalHighTimestamp
Records the highest timestamp seen over all threads in an event.
Definition: CounterThread.h:76
CounterThread::setAllThreadsTimestamps
void setAllThreadsTimestamps(uint64_t low, uint64_t high)
Set the low and high timestamps over all threads.
Definition: CounterThread.cxx:107
CostData
Caches and propagates event data to be used by monitoring algorithms.
Definition: CostData.h:26