Belle II Software development
|
A class to represent a signal timing in the trigger system. More...
#include <Time.h>
Public Member Functions | |
TRGTime (const TRGTime &) | |
Copy constructor. | |
TRGTime (double timing, bool edge, const TRGClock &clock, const std::string &name="signal") | |
Constructor with clock. | |
TRGTime (int clockPosition, bool edge, const TRGClock &clock, const std::string &name="signal") | |
Constructor with clock. | |
virtual | ~TRGTime () |
Destructor. | |
const std::string & | name (void) const |
returns name. | |
const std::string & | name (const std::string &newName) |
sets and returns name. | |
bool | edge (void) const |
returns edge information. | |
const TRGClock & | clock (void) const |
returns clock. | |
int | time (void) const |
returns timing in clock position. | |
void | dump (const std::string &message="", const std::string &pre="") const |
dumps contents. | |
const TRGClock & | clock (const TRGClock &) |
changes clock. | |
TRGSignal | operator& (const TRGTime &) const |
adding two TRGTime. A result is TRGSignal. | |
TRGSignal | operator& (const TRGSignal &) const |
adding two TRGTime. A result is TRGSignal. | |
TRGSignal | operator| (const TRGTime &) const |
oring two TRGTime. A result is TRGSignal. | |
TRGSignal | operator| (const TRGSignal &) const |
oring two TRGTime. A result is TRGSignal. | |
bool | operator== (const TRGTime &) const |
returns true if two are the same. | |
bool | operator!= (const TRGTime &) const |
returns false if two are the same. | |
int | time (int newTime) |
sets and returns timing in clock position. | |
TRGTime & | reverse (void) |
reverse edge. | |
TRGTime & | shift (int unit) |
delays by clock unit. | |
Static Public Member Functions | |
static bool | sortByTime (const TRGTime &a, const TRGTime &b) |
returns true if a is older than b. | |
Private Attributes | |
int | _time |
Time in clock unit. | |
bool | _edge |
Edge type. true : rising, false : falling. | |
const TRGClock * | _clock |
Clock. | |
std::string | _name |
Name. | |
A class to represent a signal timing in the trigger system.
Unit is nano second.
|
private |