11#include <top/dbobjects/TOPGeoBase.h>
57 double doubleHitResolution,
60 const std::string& name =
"TOPNominalTDC");
77 double doubleHitResolution,
80 const std::string& name =
"TOPNominalTDCold"):
264 void print(
const std::string& title =
"Nominal time-to-digit conversion parameters")
const override;
Base class for geometry parameters.
Nominal time-to-digit conversion parameters (simplified model)
float m_efficiency
electronic efficiency (fract.
unsigned m_numBits
number of bits
unsigned m_subBits
number of bits per sample
double getTimeJitter() const
Returns r.m.s.
float m_offset
time offset
float m_syncTimeBase
time width of c_syncWindows
unsigned getADCBits() const
Returns the number of ADC bits.
TOPNominalTDC(unsigned numBits, double binWidth, double offset, double pileupTime, double doubleHitResolution, double timeJitter, double efficiency, const std::string &name="TOPNominalTDCold")
Useful constructor (old xml file version)
unsigned getADCRange() const
Returns ADC range.
@ c_syncWindows
number of windows corresponding to syncTimeBase
@ c_WindowSize
number of samples per ASIC window
unsigned m_adcBits
number of ADC bits
float m_pileupTime
pile-up time
int getOverflowValue() const
Returns TDC overflow value.
int getAveragePedestal() const
Returns average of pedestals.
TOPNominalTDC()
Default constructor.
double getPileupTime() const
Returns pile-up time.
float m_doubleHitResolution
double hit resolution time
double getTime(int TDC) const
Convert TDC count to time.
double getSampleWidth() const
Returns time difference between two samples.
double getTimeMin() const
Returns time range lower limit.
double getTimeMax() const
Returns time range upper limit.
unsigned m_numofBunches
number of bunches per syncTimeBase
double getSyncTimeBase() const
Returns synchonization time base (time width of c_syncWindows)
double getOffset() const
Returns time offset.
double getDoubleHitResolution() const
Returns double hit resolution time.
void setADCBits(unsigned adcBits)
Sets the number of ADC bits.
double getEfficiency() const
Returns electronic efficiency.
double getSampleTime(int sample) const
Converts sample number to time.
void setAveragePedestal(int averagePedestal)
Sets average of pedestals.
unsigned getSubBits() const
Returns number of bits per sample.
float m_sampleWidth
time between two samples
double getBinWidth() const
Returns time width of a TDC bin.
float m_binWidth
time width of a TDC bin
unsigned m_numWindows
number of ASIC windows per waveform
int m_averagePedestal
average of pedestals [ADC bins]
unsigned getNumofBunches() const
Returns number of bunches in the synchonization time base.
ClassDefOverride(TOPNominalTDC, 3)
ClassDef.
unsigned getNumWindows() const
Returns number of ASIC windows per waveform.
double getBunchSeparationTime() const
Returns bunch separation time (e.g.
unsigned getNumBits() const
Returns number of bits.
bool isConsistent() const override
Check for consistency of data members.
int getTDCcount(double time) const
Converts time to TDC count.
void print(const std::string &title="Nominal time-to-digit conversion parameters") const override
Print the content of the class.
bool isSampleValid(int sample) const
Check for the validity of sample number.
int getSample(double time) const
Converts time to sample number.
Abstract base class for different kinds of events.