ATLAS Offline Software
Loading...
Searching...
No Matches
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
14class 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
70 void setAllThreadsTimestamps(uint64_t low, uint64_t high);
71
72 uint64_t m_lowTimestamp;
73 uint64_t m_highTimestamp;
74
77
78};
79
80
81#endif // TRIGCOSTANALYSIS_COUNTERTHREAD_H
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Caches and propagates event data to be used by monitoring algorithms.
Definition CostData.h:26
CounterBase()=delete
Forbid default constructor.
StatusCode postProcess(float weight=1.0)
Apply post-processing to the Counter, before endEvent is called.
uint64_t m_globalLowTimestamp
Records the lowest timestamp seen over all threads in an event.
CounterThread()=delete
Forbid default constructor.
uint64_t getLowTimestamp() const
Get the lowest timestamp of this single thread.
uint64_t getHighTimestamp() const
Get the highest timestamp of this single thread.
virtual StatusCode newEvent(const CostData &data, size_t index, const float weight=1.0) override
Concrete implementation.
uint64_t m_highTimestamp
Records the highest timestamp seen on this single thread in an event.
virtual ~CounterThread()=default
Default destructor.
uint64_t m_lowTimestamp
Records the lowest timestamp seen on this single thread in an event.
uint64_t m_globalHighTimestamp
Records the highest timestamp seen over all threads in an event.
void setAllThreadsTimestamps(uint64_t low, uint64_t high)
Set the low and high timestamps over all threads.
CounterThread & operator=(const CounterThread &)=delete
Forbid assignment.
CounterThread(const CounterThread &)=delete
Forbid copy.
Definition index.py:1