Belle II Software prerelease-11-00-00d
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.
 
 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.
 

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.

Member Data Documentation

◆ _clock

const TRGClock* _clock
private

Clock.

Definition at line 117 of file Time.h.

◆ _edge

bool _edge
private

Edge type. true : rising, false : falling.

Definition at line 114 of file Time.h.

◆ _name

std::string _name
private

Name.

Definition at line 120 of file Time.h.

◆ _time

int _time
private

Time in clock unit.

Definition at line 111 of file Time.h.


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