11#include <top/dbobjects/TOPSampleTimes.h>
58 if (
this != &timeBase) {
83 void append(
unsigned scrodID,
unsigned channel,
84 const std::vector<double>& sampleTimes,
115 bool isAvailable(
unsigned scrodID,
unsigned channel)
const;
129 mutable std::map<unsigned, size_t>
m_map;
Sample time calibration constants for all channels.
TOPCalTimebase()
Default constructor.
TOPSampleTimes * m_sampleTime
cache for default (equidistant) sample times
~TOPCalTimebase()
Destructor.
double m_syncTimeBase
synchronization time base (width of 2 ASIC windows)
TOPCalTimebase & operator=(const TOPCalTimebase &timeBase)
Assignment operator.
double getSyncTimeBase() const
Returns sinchronization time base (width of 2 ASIC windows)
ClassDef(TOPCalTimebase, 1)
ClassDef.
std::vector< TOPSampleTimes > m_sampleTimes
calibration constants
TOPCalTimebase(const TOPCalTimebase &timeBase)
Copy constructor (since class includes pointers in its cache)
const std::vector< TOPSampleTimes > & getSampleTimes() const
Returns all calibration constants.
TOPCalTimebase(double syncTimeBase)
Useful constructor.
std::map< unsigned, size_t > m_map
cache for a map
Calibration constants of a singe ASIC channel: time axis (sample times)
bool isAvailable(unsigned scrodID, unsigned channel) const
Checks if calibration is available.
void append(unsigned scrodID, unsigned channel, const std::vector< double > &sampleTimes, bool replace=true)
Appends calibration of a single ASIC channel.
void createMap() const
Creates a map in cache.
Abstract base class for different kinds of events.