Belle II Software development
TRGClock Class Reference

A class to represent a digitized signal. Unit is nano second. More...

#include <Clock.h>

Public Member Functions

 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 TRGSignalVectorclockCounter (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.
 

Private Attributes

const std::string _name
 Name.
 
const TRGClock_source
 Clock source.
 
const unsigned _multi
 Multiplication factor.
 
const unsigned _div
 Division factor.
 
const double _offset
 Clock offset in nano second.
 
const double _frequency
 Frequency in MHz.
 
const double _cycle
 Clock cycle in nano second.
 
int _min
 Clock min. count.
 
int _max
 Clock max. count.
 
TRGSignalVector_clockCounter
 Clock counter.
 

Detailed Description

A class to represent a digitized signal. Unit is nano second.

Definition at line 38 of file Clock.h.

Member Data Documentation

◆ _clockCounter

TRGSignalVector* _clockCounter
mutableprivate

Clock counter.

Definition at line 143 of file Clock.h.

◆ _cycle

const double _cycle
private

Clock cycle in nano second.

Definition at line 134 of file Clock.h.

◆ _div

const unsigned _div
private

Division factor.

Definition at line 125 of file Clock.h.

◆ _frequency

const double _frequency
private

Frequency in MHz.

Definition at line 131 of file Clock.h.

◆ _max

int _max
private

Clock max. count.

Definition at line 140 of file Clock.h.

◆ _min

int _min
private

Clock min. count.

Definition at line 137 of file Clock.h.

◆ _multi

const unsigned _multi
private

Multiplication factor.

Definition at line 122 of file Clock.h.

◆ _name

const std::string _name
private

Name.

Definition at line 116 of file Clock.h.

◆ _offset

const double _offset
private

Clock offset in nano second.

Definition at line 128 of file Clock.h.

◆ _source

const TRGClock* _source
private

Clock source.

Definition at line 119 of file Clock.h.


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