ATLAS Offline Software
Loading...
Searching...
No Matches
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>
19
21public:
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
49private:
50 unsigned int m_intervals;
51 unsigned int m_duration;
53 unsigned int m_current_interval;
55};
56
57
58
59#endif
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
unsigned int forcePassed(time_t time, unsigned int &oldinterval)
method
time_t m_beginning
Definition TimeDivider.h:54
unsigned int m_intervals
Definition TimeDivider.h:50
unsigned int m_current_interval
Definition TimeDivider.h:53
TimeDivider(unsigned int intervals, unsigned int duration, unit u)
construct the TimeDivider
bool isPassed(time_t time, unsigned int &newinterval, unsigned int &oldinterval)
method to know if one shoudl switch to new interval
unsigned int m_duration
Definition TimeDivider.h:51