Belle II Software development
|
Nominal time-to-digit conversion parameters (simplified model) More...
#include <TOPNominalTDC.h>
Public Types | |
enum | { c_WindowSize = 64 , c_syncWindows = 2 } |
Various constants. More... | |
Public Member Functions | |
TOPNominalTDC () | |
Default constructor. | |
TOPNominalTDC (int numWindows, int subBits, double syncTimeBase, int numofBunches, double offset, double pileupTime, double doubleHitResolution, double timeJitter, double efficiency, const std::string &name="TOPNominalTDC") | |
Useful constructor (new xml file version) | |
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) | |
void | setADCBits (unsigned adcBits) |
Sets the number of ADC bits. | |
void | setAveragePedestal (int averagePedestal) |
Sets average of pedestals. | |
unsigned | getADCBits () const |
Returns the number of ADC bits. | |
unsigned | getADCRange () const |
Returns ADC range. | |
int | getAveragePedestal () const |
Returns average of pedestals. | |
unsigned | getNumWindows () const |
Returns number of ASIC windows per waveform. | |
unsigned | getSubBits () const |
Returns number of bits per sample. | |
double | getSyncTimeBase () const |
Returns synchonization time base (time width of c_syncWindows) | |
unsigned | getNumofBunches () const |
Returns number of bunches in the synchonization time base. | |
double | getBunchSeparationTime () const |
Returns bunch separation time (e.g. | |
double | getOffset () const |
Returns time offset. | |
double | getPileupTime () const |
Returns pile-up time. | |
double | getDoubleHitResolution () const |
Returns double hit resolution time. | |
double | getTimeJitter () const |
Returns r.m.s. | |
double | getEfficiency () const |
Returns electronic efficiency. | |
unsigned | getNumBits () const |
Returns number of bits. | |
double | getBinWidth () const |
Returns time width of a TDC bin. | |
double | getSampleWidth () const |
Returns time difference between two samples. | |
int | getOverflowValue () const |
Returns TDC overflow value. | |
double | getTime (int TDC) const |
Convert TDC count to time. | |
double | getTimeMin () const |
Returns time range lower limit. | |
double | getTimeMax () const |
Returns time range upper limit. | |
int | getTDCcount (double time) const |
Converts time to TDC count. | |
int | getSample (double time) const |
Converts time to sample number. | |
double | getSampleTime (int sample) const |
Converts sample number to time. | |
bool | isSampleValid (int sample) const |
Check for the validity of sample number. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Nominal time-to-digit conversion parameters") const override |
Print the content of the class. | |
void | setName (const std::string &name) |
Sets object name. | |
const std::string & | getName () const |
Returns object name. | |
virtual void | printSurface (const GeoOpticalSurface &surface) const |
Print the content of optical surface. | |
double | getReflectivity (const GeoOpticalSurface &surface, double energy) const |
Returns reflectivity of optical surface at given photon energy. | |
Protected Member Functions | |
void | printUnderlined (const std::string &title) const |
Print the content of the class. | |
ClassDef (TOPGeoBase, 1) | |
ClassDef. | |
Protected Attributes | |
std::string | m_name |
geometry object name | |
Static Protected Attributes | |
static double | s_unit = Unit::cm |
conversion unit for length | |
static std::string | s_unitName |
conversion unit name | |
Private Member Functions | |
ClassDefOverride (TOPNominalTDC, 3) | |
ClassDef. | |
Private Attributes | |
unsigned | m_numWindows = 0 |
number of ASIC windows per waveform | |
unsigned | m_subBits = 0 |
number of bits per sample | |
float | m_syncTimeBase = 0 |
time width of c_syncWindows | |
unsigned | m_numofBunches = 0 |
number of bunches per syncTimeBase | |
float | m_offset = 0 |
time offset | |
float | m_pileupTime = 0 |
pile-up time | |
float | m_doubleHitResolution = 0 |
double hit resolution time | |
float | m_timeJitter = 0 |
r.m.s. | |
float | m_efficiency = 0 |
electronic efficiency (fract. | |
unsigned | m_numBits = 0 |
number of bits | |
float | m_binWidth = 0 |
time width of a TDC bin | |
float | m_sampleWidth = 0 |
time between two samples | |
unsigned | m_adcBits = 12 |
number of ADC bits | |
int | m_averagePedestal = 0 |
average of pedestals [ADC bins] | |
Nominal time-to-digit conversion parameters (simplified model)
Definition at line 22 of file TOPNominalTDC.h.
anonymous enum |
Various constants.
Enumerator | |
---|---|
c_WindowSize | number of samples per ASIC window |
c_syncWindows | number of windows corresponding to syncTimeBase |
Definition at line 28 of file TOPNominalTDC.h.
|
inline |
|
inline |
Useful constructor (old xml file version)
numBits | number of bits |
binWidth | time width of a TDC bin |
offset | time offset |
pileupTime | pile-up time |
doubleHitResolution | double hit resolution time |
timeJitter | r.m.s. of time jitter |
efficiency | electronic efficiency (fraction of hits above threshold) |
name | object name |
Definition at line 73 of file TOPNominalTDC.h.
|
inline |
Returns the number of ADC bits.
Definition at line 108 of file TOPNominalTDC.h.
|
inline |
|
inline |
Returns average of pedestals.
Definition at line 120 of file TOPNominalTDC.h.
|
inline |
Returns time width of a TDC bin.
Definition at line 191 of file TOPNominalTDC.h.
|
inline |
Returns bunch separation time (e.g.
RF cycle - empty bunches are included!)
Definition at line 149 of file TOPNominalTDC.h.
|
inline |
Returns double hit resolution time.
Definition at line 167 of file TOPNominalTDC.h.
|
inline |
Returns electronic efficiency.
Definition at line 179 of file TOPNominalTDC.h.
|
inlineinherited |
|
inline |
|
inline |
Returns number of bunches in the synchonization time base.
Definition at line 143 of file TOPNominalTDC.h.
|
inline |
Returns number of ASIC windows per waveform.
Definition at line 126 of file TOPNominalTDC.h.
|
inline |
|
inline |
|
inline |
|
inline |
Converts sample number to time.
sample | sample number |
Definition at line 245 of file TOPNominalTDC.h.
|
inline |
Returns time difference between two samples.
Definition at line 197 of file TOPNominalTDC.h.
|
inline |
Returns number of bits per sample.
Definition at line 131 of file TOPNominalTDC.h.
|
inline |
Returns synchonization time base (time width of c_syncWindows)
Definition at line 137 of file TOPNominalTDC.h.
|
inline |
Convert TDC count to time.
TDC | TDC count |
Definition at line 210 of file TOPNominalTDC.h.
|
inline |
Returns r.m.s.
of time jitter
Definition at line 173 of file TOPNominalTDC.h.
|
inline |
Returns time range upper limit.
Definition at line 222 of file TOPNominalTDC.h.
|
inline |
|
inline |
Sets the number of ADC bits.
adcBits | number of adcBits |
Definition at line 96 of file TOPNominalTDC.h.
|
inline |
Sets average of pedestals.
averagePedestal | average pedestal value |
Definition at line 102 of file TOPNominalTDC.h.
|
inlineinherited |
Sets object name.
name | object name |
Definition at line 45 of file TOPGeoBase.h.
|
private |
number of ADC bits
Definition at line 283 of file TOPNominalTDC.h.
|
private |
average of pedestals [ADC bins]
Definition at line 284 of file TOPNominalTDC.h.
|
private |
time width of a TDC bin
Definition at line 280 of file TOPNominalTDC.h.
|
private |
double hit resolution time
Definition at line 275 of file TOPNominalTDC.h.
|
private |
electronic efficiency (fract.
of hits above threshold)
Definition at line 277 of file TOPNominalTDC.h.
|
protectedinherited |
geometry object name
Definition at line 89 of file TOPGeoBase.h.
|
private |
number of bits
Definition at line 279 of file TOPNominalTDC.h.
|
private |
number of bunches per syncTimeBase
Definition at line 272 of file TOPNominalTDC.h.
|
private |
number of ASIC windows per waveform
Definition at line 269 of file TOPNominalTDC.h.
|
private |
time offset
Definition at line 273 of file TOPNominalTDC.h.
|
private |
pile-up time
Definition at line 274 of file TOPNominalTDC.h.
|
private |
time between two samples
Definition at line 281 of file TOPNominalTDC.h.
|
private |
number of bits per sample
Definition at line 270 of file TOPNominalTDC.h.
|
private |
time width of c_syncWindows
Definition at line 271 of file TOPNominalTDC.h.
|
private |