A class to represent a digitized signal. Unit is nano second.
More...
#include <Clock.h>
|
| TRGClock (const std::string &name, double offset, double frequency) |
| Constructor. "offset" is in unit of ns. "frequency" is in unit of MHz.
|
|
| TRGClock (const std::string &name, const TRGClock &, unsigned multiplicationFactor, unsigned divisionFactor=1) |
| Constructor with clock source.
|
|
virtual | ~TRGClock () |
| Destructor.
|
|
const std::string & | name (void) const |
| returns name.
|
|
int | position (double timing) const |
| returns clock position.
|
|
int | positionInSourceClock (double timing) const |
| returns clock position in the source clock.
|
|
double | absoluteTime (int clockPosition) const |
| returns absolute time of clock position
|
|
double | overShoot (double timing) const |
| returns over shoot.
|
|
int | unit (double period) const |
| returns min # of clocks to cover given time period.
|
|
double | offset (void) const |
| returns offset of the clock zero position in nano second.
|
|
double | frequency (void) const |
| returns frequency in MHz.
|
|
double | phase (double timing) const |
| returns phase of given timing in degree (0 to 360).
|
|
const TRGSignalVector & | clockCounter (void) const |
| returns the clock counter.
|
|
void | dump (const std::string &message="", const std::string &pre="") const |
| dumps contents.
|
|
int | min (void) const |
| returns min. clock point.
|
|
int | max (void) const |
| returns max. clock point.
|
|
double | minTiming (void) const |
| returns min. timing.
|
|
double | maxTiming (void) const |
| returns max. timing.
|
|
TRGTime | minTRGTime (bool edge) const |
| returns min. TRGtime with clock.
|
|
TRGTime | maxTRGTime (bool edge) const |
| returns max. TRGtime with clock.
|
|
A class to represent a digitized signal. Unit is nano second.
Definition at line 38 of file Clock.h.
◆ _clockCounter
Clock counter.
Definition at line 143 of file Clock.h.
◆ _cycle
Clock cycle in nano second.
Definition at line 134 of file Clock.h.
◆ _div
Division factor.
Definition at line 125 of file Clock.h.
◆ _frequency
Frequency in MHz.
Definition at line 131 of file Clock.h.
◆ _max
Clock max. count.
Definition at line 140 of file Clock.h.
◆ _min
Clock min. count.
Definition at line 137 of file Clock.h.
◆ _multi
Multiplication factor.
Definition at line 122 of file Clock.h.
◆ _name
◆ _offset
Clock offset in nano second.
Definition at line 128 of file Clock.h.
◆ _source
Clock source.
Definition at line 119 of file Clock.h.
The documentation for this class was generated from the following files: