 |
Belle II Software
release-05-01-25
|
15 #include "trg/trg/Clock.h"
16 #include "trg/trg/Time.h"
17 #include "trg/trg/Signal.h"
38 const std::string& name) :
39 _time(clock.position(timing)),
49 const std::string& name) :
93 const std::string& pre)
const
95 cout << pre <<
"time(clock):";
104 if (msg.find(
"name") != string::npos ||
105 msg.find(
"detail") != string::npos) {
106 cout <<
" (" <<
_name <<
")";
114 if (a.time() < b.time()) {
116 }
else if (a.time() == b.time()) {
117 if (a.edge() & (! b.edge()))
119 else if (a.edge() == b.edge())
130 _time = c.position(t);
A class to represent a digitized signal. Unit is nano second.
bool _edge
Edge type. true : rising, false : falling.
TRGSignal operator|(const TRGTime &) const
oring two TRGTime. A result is TRGSignal.
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
const TRGClock & clock(void) const
returns clock.
static bool sortByTime(const TRGTime &a, const TRGTime &b)
returns true if a is older than b.
Abstract base class for different kinds of events.
const TRGClock * _clock
Clock.
TRGSignal operator&(const TRGTime &) const
adding two TRGTime. A result is TRGSignal.
double absoluteTime(int clockPosition) const
returns absolute time of clock position
virtual ~TRGTime()
Destructor.
TRGTime(const TRGTime &)
Copy constructor.
A class to represent a signal timing in the trigger system.
A class to represent a digitized signal. Unit is nano second.
int _time
Time in clock unit.