Belle II Software
release-08-01-10
|
KLM time conversion. More...
#include <KLMTime.h>
Public Member Functions | |
void | updateConstants () |
Update constants from database objects. More... | |
double | getTDCPeriod () const |
Get TDC period. | |
double | getCTimePeriod () const |
Get CTIME period. | |
double | getScintillatorTime (int ctime, int tdc, int triggerCTime) const |
Get time for scintillator. More... | |
std::pair< int, double > | getRPCTimes (int ctime, int tdc, int triggerTime) const |
Get coarse and fine times for RPC. More... | |
double | getTimeSimulation (int tdc, bool scintillator) const |
Get time for simulation. More... | |
uint16_t | getTDCByTime (double time) const |
Get TDC by time. | |
Static Public Member Functions | |
static KLMTime & | Instance () |
Instantiation. | |
Private Member Functions | |
KLMTime () | |
Constructor. | |
~KLMTime () | |
Destructor. | |
Private Attributes | |
DBObjPtr< KLMTimeConversion > | m_KLMTimeConversion |
KLM time conversion. | |
DBObjPtr< HardwareClockSettings > | m_HardwareClockSettings |
Hardware clock settings. | |
double | m_TDCPeriod = 0. |
TDC period (stored here because getting it from m_HardwareClockSettings requires to search in a map). | |
double | m_CTimePeriod = 0. |
CTIME period. | |
std::pair< int, double > getRPCTimes | ( | int | ctime, |
int | tdc, | ||
int | triggerTime | ||
) | const |
Get coarse and fine times for RPC.
[in] | ctime | REVO9 time. |
[in] | tdc | TDC. |
[in] | triggerTime | REVO9 Trigger time. |
Definition at line 46 of file KLMTime.cc.
double getScintillatorTime | ( | int | ctime, |
int | tdc, | ||
int | triggerCTime | ||
) | const |
Get time for scintillator.
[in] | ctime | CTIME. |
[in] | tdc | TDC. |
[in] | triggerCTime | Trigger CTIME. |
Definition at line 27 of file KLMTime.cc.
double getTimeSimulation | ( | int | tdc, |
bool | scintillator | ||
) | const |
Get time for simulation.
[in] | tdc | TDC. |
[in] | scintillator | Scintillator (true) or RPC (false). |
Definition at line 66 of file KLMTime.cc.
void updateConstants | ( | ) |
Update constants from database objects.
This function needs to be called when database objects change, for example, at the beginning of the run.
Definition at line 20 of file KLMTime.cc.