ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigCost
TrigCostAnalysis
src
counters
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
36
CounterThread
&
operator=
(
const
CounterThread
&) =
delete
;
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
75
uint64_t
m_globalLowTimestamp
;
76
uint64_t
m_globalHighTimestamp
;
77
78
};
79
80
81
#endif
// TRIGCOSTANALYSIS_COUNTERTHREAD_H
CounterBase.h
CostData
Caches and propagates event data to be used by monitoring algorithms.
Definition
CostData.h:26
CounterBase::CounterBase
CounterBase()=delete
Forbid default constructor.
CounterThread::postProcess
StatusCode postProcess(float weight=1.0)
Apply post-processing to the Counter, before endEvent is called.
Definition
CounterThread.cxx:54
CounterThread::m_globalLowTimestamp
uint64_t m_globalLowTimestamp
Records the lowest timestamp seen over all threads in an event.
Definition
CounterThread.h:75
CounterThread::CounterThread
CounterThread()=delete
Forbid default constructor.
CounterThread::getLowTimestamp
uint64_t getLowTimestamp() const
Get the lowest timestamp of this single thread.
Definition
CounterThread.cxx:97
CounterThread::getHighTimestamp
uint64_t getHighTimestamp() const
Get the highest timestamp of this single thread.
Definition
CounterThread.cxx:102
CounterThread::newEvent
virtual StatusCode newEvent(const CostData &data, size_t index, const float weight=1.0) override
Concrete implementation.
Definition
CounterThread.cxx:32
CounterThread::m_highTimestamp
uint64_t m_highTimestamp
Records the highest timestamp seen on this single thread in an event.
Definition
CounterThread.h:73
CounterThread::~CounterThread
virtual ~CounterThread()=default
Default destructor.
CounterThread::m_lowTimestamp
uint64_t m_lowTimestamp
Records the lowest timestamp seen on this single thread in an event.
Definition
CounterThread.h:72
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
CounterThread::operator=
CounterThread & operator=(const CounterThread &)=delete
Forbid assignment.
CounterThread::CounterThread
CounterThread(const CounterThread &)=delete
Forbid copy.
MonitorBase
Forward declare.
Definition
Trigger/TrigCost/TrigCostAnalysis/src/MonitorBase.h:33
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0