13#include "trg/trg/SignalVector.h"
50 unsigned multiplicationFactor,
51 unsigned divisionFactor = 1);
59 const std::string&
name(
void)
const;
74 int unit(
double period)
const;
83 double phase(
double timing)
const;
90 void dump(
const std::string& message =
"",
91 const std::string& pre =
"")
const;
182 return int(a /
_cycle) + 1;
A class to represent a digitized signal. Unit is nano second.
const double _offset
Clock offset in nano second.
const unsigned _div
Division factor.
const std::string _name
Name.
const double _cycle
Clock cycle in nano second.
int _max
Clock max. count.
const double _frequency
Frequency in MHz.
int _min
Clock min. count.
const unsigned _multi
Multiplication factor.
const TRGClock * _source
Clock source.
TRGSignalVector * _clockCounter
Clock counter.
A class to represent a bundle of digitized signals.
A class to represent a signal timing in the trigger system.
double absoluteTime(int clockPosition) const
returns absolute time of clock position
double phase(double timing) const
returns phase of given timing in degree (0 to 360).
const std::string & name(void) const
returns name.
int min(void) const
returns min. clock point.
double offset(void) const
returns offset of the clock zero position in nano second.
int max(void) const
returns max. clock point.
double maxTiming(void) const
returns max. timing.
double overShoot(double timing) const
returns over shoot.
int unit(double period) const
returns min # of clocks to cover given time period.
int positionInSourceClock(double timing) const
returns clock position in the source clock.
const TRGSignalVector & clockCounter(void) const
returns the clock counter.
int position(double timing) const
returns clock position.
double frequency(void) const
returns frequency in MHz.
TRGTime minTRGTime(bool edge) const
returns min. TRGtime with clock.
virtual ~TRGClock()
Destructor.
TRGTime maxTRGTime(bool edge) const
returns max. TRGtime with clock.
double minTiming(void) const
returns min. timing.
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
Abstract base class for different kinds of events.