ValidityStamp.cc
Go to the documentation of this file.
1 
10 #include <det/ValidityStamp.h>
11 #include <utl/TimeStamp.h>
12 #include <det/Detector.h>
13 
14 using namespace det;
15 using namespace utl;
16 
17 
18 bool
20  const
21 {
22  const TimeStamp& curTime = Detector::GetInstance().GetTime();
23  return IsInRange(curTime);
24 }
25 
26 
27 // Configure (x)emacs for this file ...
28 // Local Variables:
29 // mode: c++
30 // compile-command: "make -C .. -k"
31 // End:
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
bool IsValid() const
True if detector time is between start and end validity times.
bool IsInRange(const double x, const vector< double > &r)

, generated on Tue Sep 26 2023.