Belle II Software  release-08-01-10
TOPCalTimebase Class Reference

Sample time calibration constants for all channels. More...

#include <TOPCalTimebase.h>

Inheritance diagram for TOPCalTimebase:
Collaboration diagram for TOPCalTimebase:

Public Member Functions

 TOPCalTimebase ()
 Default constructor.
 
 TOPCalTimebase (double syncTimeBase)
 Useful constructor. More...
 
 TOPCalTimebase (const TOPCalTimebase &timeBase)
 Copy constructor (since class includes pointers in its cache)
 
TOPCalTimebaseoperator= (const TOPCalTimebase &timeBase)
 Assignment operator.
 
 ~TOPCalTimebase ()
 Destructor.
 
void append (unsigned scrodID, unsigned channel, const std::vector< double > &sampleTimes, bool replace=true)
 Appends calibration of a single ASIC channel. More...
 
double getSyncTimeBase () const
 Returns sinchronization time base (width of 2 ASIC windows) More...
 
const std::vector< TOPSampleTimes > & getSampleTimes () const
 Returns all calibration constants. More...
 
const TOPSampleTimesgetSampleTimes (unsigned scrodID, unsigned channel) const
 Returns calibration constants for given SCROD and channel. More...
 
bool isAvailable (unsigned scrodID, unsigned channel) const
 Checks if calibration is available. More...
 

Private Member Functions

void createMap () const
 Creates a map in cache.
 
 ClassDef (TOPCalTimebase, 1)
 ClassDef.
 

Private Attributes

double m_syncTimeBase = 0
 synchronization time base (width of 2 ASIC windows)
 
std::vector< TOPSampleTimesm_sampleTimes
 calibration constants
 
std::map< unsigned, size_t > m_map
 cache for a map
 
TOPSampleTimesm_sampleTime = 0
 cache for default (equidistant) sample times
 

Detailed Description

Sample time calibration constants for all channels.

Definition at line 27 of file TOPCalTimebase.h.

Constructor & Destructor Documentation

◆ TOPCalTimebase()

TOPCalTimebase ( double  syncTimeBase)
inlineexplicit

Useful constructor.

Parameters
syncTimeBasesinchronization time base (width of 2 ASIC windows)

Definition at line 40 of file TOPCalTimebase.h.

40  : m_syncTimeBase(syncTimeBase)
41  {}
double m_syncTimeBase
synchronization time base (width of 2 ASIC windows)

Member Function Documentation

◆ getSampleTimes()

const std::vector<TOPSampleTimes>& getSampleTimes ( ) const
inline

Returns all calibration constants.

Returns
vector of calibration constants

Definition at line 97 of file TOPCalTimebase.h.

◆ getSyncTimeBase()

double getSyncTimeBase ( ) const
inline

Returns sinchronization time base (width of 2 ASIC windows)

Returns
sinchronization time base

Definition at line 91 of file TOPCalTimebase.h.


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