37 const std::string&
name =
"signal");
44 const std::string&
name =
"signal");
52 const std::string&
name(
void)
const;
55 const std::string&
name(
const std::string& newName);
58 bool edge(
void)
const;
68 void dump(
const std::string& message =
"",
69 const std::string& pre =
"")
const;
95 int time(
int newTime);
187 if (
_time != a._time)
return false;
188 if (
_edge != a._edge)
return false;
189 if (
_clock != a._clock)
return false;
198 return (!
operator==(a));
A class to represent a digitized signal. Unit is nano second.
A class to represent a digitized signal. Unit is nano second.
A class to represent a signal timing in the trigger system.
const TRGClock * _clock
Clock.
int _time
Time in clock unit.
bool _edge
Edge type. true : rising, false : falling.
virtual ~TRGTime()
Destructor.
bool operator!=(const TRGTime &) const
returns false if two are the same.
bool operator==(const TRGTime &) const
returns true if two are the same.
const TRGClock & clock(void) const
returns clock.
TRGTime & reverse(void)
reverse edge.
const std::string & name(void) const
returns name.
TRGSignal operator|(const TRGTime &) const
oring two TRGTime. A result is TRGSignal.
TRGTime & shift(int unit)
delays by clock unit.
int time(void) const
returns timing in clock position.
bool edge(void) const
returns edge information.
static bool sortByTime(const TRGTime &a, const TRGTime &b)
returns true if a is older than b.
TRGSignal operator&(const TRGTime &) const
adding two TRGTime. A result is TRGSignal.
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
Abstract base class for different kinds of events.