Belle II Software  release-08-01-10
TRGTime Class Reference

A class to represent a signal timing in the trigger system. More...

#include <Time.h>

Collaboration diagram for TRGTime:

Public Member Functions

 TRGTime (const TRGTime &)
 Copy constructor.
 
 TRGTime (double timing, bool edge, const TRGClock &clock, const std::string &name="signal")
 Constructor with clock. More...
 
 TRGTime (int clockPosition, bool edge, const TRGClock &clock, const std::string &name="signal")
 Constructor with clock. More...
 
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 TRGClockclock (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. More...
 
const TRGClockclock (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.
 
TRGTimereverse (void)
 reverse edge.
 
TRGTimeshift (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.
 

Detailed Description

A class to represent a signal timing in the trigger system.

Unit is nano second.

Definition at line 25 of file Time.h.


The documentation for this class was generated from the following files: