12#include <klm/dbobjects/KLMTimeConversion.h>
15#include <framework/database/DBObjPtr.h>
16#include <framework/dbobjects/HardwareClockSettings.h>
72 std::pair<int, double>
getRPCTimes(
int ctime,
int tdc,
int triggerTime)
const;
Class for accessing objects in the database.
double getCTimePeriod() const
Get CTIME period.
double m_TDCPeriod
TDC period (stored here because getting it from m_HardwareClockSettings requires to search in a map).
std::pair< int, double > getRPCTimes(int ctime, int tdc, int triggerTime) const
Get coarse and fine times for RPC.
double getTimeSimulation(int tdc, bool scintillator) const
Get time for simulation.
double getScintillatorTime(int ctime, int tdc, int triggerCTime) const
Get time for scintillator.
uint16_t getTDCByTime(double time) const
Get TDC by time.
double getTDCPeriod() const
Get TDC period.
double m_CTimePeriod
CTIME period.
void updateConstants()
Update constants from database objects.
static KLMTime & Instance()
Instantiation.
DBObjPtr< HardwareClockSettings > m_HardwareClockSettings
Hardware clock settings.
DBObjPtr< KLMTimeConversion > m_KLMTimeConversion
KLM time conversion.
Abstract base class for different kinds of events.