ATLAS Offline Software
Trigger
TrigMonitoring
TrigSteerMonitor
src
TimeDivider.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TrigSteerMonitor_TimeDivider_h
6
#define TrigSteerMonitor_TimeDivider_h
7
8
#include <unistd.h>
20
class
TimeDivider
{
21
public
:
22
enum
unit
{
seconds
,
minutes
};
23
30
TimeDivider
(
unsigned
int
intervals,
unsigned
int
duration
,
unit
u
);
31
38
bool
isPassed
(time_t
time
,
unsigned
int
& newinterval,
unsigned
int
& oldinterval );
39
46
unsigned
int
forcePassed
(time_t
time
,
unsigned
int
& oldinterval );
47
48
49
private
:
50
unsigned
int
m_intervals
;
51
unsigned
int
m_duration
;
52
unit
m_unit
;
53
unsigned
int
m_current_interval
;
54
time_t
m_beginning
;
55
};
56
57
58
59
#endif
TimeDivider::m_intervals
unsigned int m_intervals
Definition:
TimeDivider.h:50
TimeDivider::TimeDivider
TimeDivider(unsigned int intervals, unsigned int duration, unit u)
construct the TimeDivider
Definition:
TimeDivider.cxx:10
TimeDivider::isPassed
bool isPassed(time_t time, unsigned int &newinterval, unsigned int &oldinterval)
method to know if one shoudl switch to new interval
Definition:
TimeDivider.cxx:21
Trk::u
@ u
Enums for curvilinear frames.
Definition:
ParamDefs.h:77
TimeDivider::m_duration
unsigned int m_duration
Definition:
TimeDivider.h:51
TimeDivider::m_beginning
time_t m_beginning
Definition:
TimeDivider.h:54
TimeDivider::forcePassed
unsigned int forcePassed(time_t time, unsigned int &oldinterval)
method
Definition:
TimeDivider.cxx:47
TimeDivider
Helper class to divide time into intervals aligned with wall clock Once object is constructed say wit...
Definition:
TimeDivider.h:20
PixelAthHitMonAlgCfg.duration
duration
Definition:
PixelAthHitMonAlgCfg.py:152
TimeDivider::m_current_interval
unsigned int m_current_interval
Definition:
TimeDivider.h:53
TimeDivider::seconds
@ seconds
Definition:
TimeDivider.h:22
TimeDivider::unit
unit
Definition:
TimeDivider.h:22
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition:
CaloSwCorrections.py:242
TimeDivider::minutes
@ minutes
Definition:
TimeDivider.h:22
TimeDivider::m_unit
unit m_unit
Definition:
TimeDivider.h:52
Generated on Thu Nov 7 2024 21:28:36 for ATLAS Offline Software by
1.8.18