 |
Belle II Software
release-05-02-19
|
13 #include <top/dbobjects/TOPSampleTimes.h>
29 class TOPCalTimebase:
public TObject {
60 if (
this != &timeBase) {
85 void append(
unsigned scrodID,
unsigned channel,
86 const std::vector<double>& sampleTimes,
108 const TOPSampleTimes*
getSampleTimes(
unsigned scrodID,
unsigned channel)
const;
117 bool isAvailable(
unsigned scrodID,
unsigned channel)
const;
131 mutable std::map<unsigned, const TOPSampleTimes*>
m_map;
TOPSampleTimes * m_sampleTime
cache for default (equidistant) sample times
bool isAvailable(unsigned scrodID, unsigned channel) const
Checks if calibration is available.
Sample time calibration constants for all channels.
void createMap() const
Creates a map in cache.
void append(unsigned scrodID, unsigned channel, const std::vector< double > &sampleTimes, bool replace=true)
Appends calibration of a single ASIC channel.
std::vector< TOPSampleTimes > m_sampleTimes
calibration constants
std::map< unsigned, const TOPSampleTimes * > m_map
cache for a map
Abstract base class for different kinds of events.
double m_syncTimeBase
synchronization time base (width of 2 ASIC windows)
~TOPCalTimebase()
Destructor.
const std::vector< TOPSampleTimes > & getSampleTimes() const
Returns all calibration constants.
double getSyncTimeBase() const
Returns sinchronization time base (width of 2 ASIC windows)
TOPCalTimebase & operator=(const TOPCalTimebase &timeBase)
Assignment operator.
TOPCalTimebase()
Default constructor.
ClassDef(TOPCalTimebase, 1)
ClassDef.