Hall-D Software
alpha
|
#include <DRFTime_factory.h>
Public Member Functions | |
DRFTime_factory () | |
~DRFTime_factory () | |
double | Step_TimeToNearInputTime (double locTimeToStep, double locTimeToStepTo) const |
double | Step_TimeToNearInputTime (double locTimeToStep, double locTimeToStepTo, double locPeriod) const |
double | Convert_TDCToTime (const DRFTDCDigiTime *locRFTDCDigiTime, const DTTabUtilities *locTTabUtilities) const |
double | Convert_ADCToTime (const DRFDigiTime *locRFDigiTime) const |
jerror_t | brun (jana::JEventLoop *eventLoop, int32_t runnumber) |
Called everytime a new run number is detected. More... | |
Private Member Functions | |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | evnt (jana::JEventLoop *eventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
Called everytime run number changes, provided brun has been called. More... | |
jerror_t | fini (void) |
Called after last event of last event source has been processed. More... | |
double | Calc_WeightedAverageRFTime (map< DetectorSystem_t, vector< double > > &locRFTimesMap, double &locRFTimeVariance) const |
Private Attributes | |
DetectorSystem_t | dOverrideRFSourceSystem |
double | dBeamBunchPeriod |
map< DetectorSystem_t, double > | dTimeOffsetMap |
map< DetectorSystem_t, double > | dTimeOffsetVarianceMap |
map< DetectorSystem_t, double > | dTimeResolutionSqMap |
Definition at line 24 of file DRFTime_factory.h.
|
inline |
Definition at line 27 of file DRFTime_factory.h.
|
inline |
Definition at line 28 of file DRFTime_factory.h.
jerror_t DRFTime_factory::brun | ( | jana::JEventLoop * | eventLoop, |
int32_t | runnumber | ||
) |
Called everytime a new run number is detected.
Definition at line 22 of file DRFTime_factory.cc.
References dBeamBunchPeriod, dOverrideRFSourceSystem, dTimeOffsetMap, dTimeOffsetVarianceMap, dTimeResolutionSqMap, and NameToSystem().
Referenced by DHistogramAction_EventVertex::Perform_Action().
|
private |
Definition at line 171 of file DRFTime_factory.cc.
References dTimeOffsetVarianceMap, dTimeResolutionSqMap, and Step_TimeToNearInputTime().
Referenced by evnt().
double DRFTime_factory::Convert_ADCToTime | ( | const DRFDigiTime * | locRFDigiTime | ) | const |
double DRFTime_factory::Convert_TDCToTime | ( | const DRFTDCDigiTime * | locRFTDCDigiTime, |
const DTTabUtilities * | locTTabUtilities | ||
) | const |
Definition at line 157 of file DRFTime_factory.cc.
References DTTabUtilities::Convert_DigiTimeToNs_CAEN1290TDC(), DTTabUtilities::Convert_DigiTimeToNs_F1TDC(), DRFTDCDigiTime::dIsCAENTDCFlag, DRFTDCDigiTime::dSystem, and dTimeOffsetMap.
Referenced by evnt(), and JEventProcessor_RF_online::evnt().
|
private |
Called everytime run number changes, provided brun has been called.
Definition at line 223 of file DRFTime_factory.cc.
|
private |
Called every event.
Definition at line 68 of file DRFTime_factory.cc.
References Calc_WeightedAverageRFTime(), Convert_TDCToTime(), dOverrideRFSourceSystem, DRFTDCDigiTime::dSystem, DRFTime::dTime, dTimeOffsetMap, dTimeResolutionSqMap, DRFTime::dTimeVariance, and SYS_NULL.
|
private |
Called after last event of last event source has been processed.
Definition at line 231 of file DRFTime_factory.cc.
|
private |
Called once at program start.
Definition at line 13 of file DRFTime_factory.cc.
References dOverrideRFSourceSystem, and SYS_NULL.
double DRFTime_factory::Step_TimeToNearInputTime | ( | double | locTimeToStep, |
double | locTimeToStepTo | ||
) | const |
Definition at line 145 of file DRFTime_factory.cc.
References dBeamBunchPeriod.
Referenced by Calc_WeightedAverageRFTime(), JEventProcessor_TAGH_timewalk::evnt(), JEventProcessor_PSC_TW::evnt(), JEventProcessor_TAGM_TW::evnt(), JEventProcessor_ST_Tresolution::evnt(), JEventProcessor_ST_online_Tresolution::evnt(), JEventProcessor_ST_Propagation_Time::evnt(), JEventProcessor_RF_online::evnt(), JEventProcessor_ST_ZEff::evnt(), and DHistogramAction_EventVertex::Perform_Action().
double DRFTime_factory::Step_TimeToNearInputTime | ( | double | locTimeToStep, |
double | locTimeToStepTo, | ||
double | locPeriod | ||
) | const |
Definition at line 150 of file DRFTime_factory.cc.
|
private |
Definition at line 47 of file DRFTime_factory.h.
Referenced by brun(), and Step_TimeToNearInputTime().
|
private |
Definition at line 46 of file DRFTime_factory.h.
|
private |
Definition at line 49 of file DRFTime_factory.h.
Referenced by brun(), Convert_TDCToTime(), and evnt().
|
private |
Definition at line 50 of file DRFTime_factory.h.
Referenced by brun(), and Calc_WeightedAverageRFTime().
|
private |
Definition at line 51 of file DRFTime_factory.h.
Referenced by brun(), Calc_WeightedAverageRFTime(), and evnt().