Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DRFTime_factory_FDC Class Reference

#include <DRFTime_factory_FDC.h>

+ Inheritance diagram for DRFTime_factory_FDC:

Public Member Functions

 DRFTime_factory_FDC ()
 
 ~DRFTime_factory_FDC ()
 
const char * Tag (void)
 
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
 
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 (vector< double > &locRFTimes, double &locRFTimeVariance) const
 

Private Attributes

DetectorSystem_t dSourceSystem
 
double dBeamBunchPeriod
 
double dTimeOffset
 
double dTimeOffsetVariance
 
double dTimeResolutionSq
 

Detailed Description

Definition at line 24 of file DRFTime_factory_FDC.h.

Constructor & Destructor Documentation

DRFTime_factory_FDC::DRFTime_factory_FDC ( )
inline

Definition at line 27 of file DRFTime_factory_FDC.h.

DRFTime_factory_FDC::~DRFTime_factory_FDC ( )
inline

Definition at line 28 of file DRFTime_factory_FDC.h.

Member Function Documentation

jerror_t DRFTime_factory_FDC::brun ( jana::JEventLoop *  eventLoop,
int32_t  runnumber 
)

Called everytime a new run number is detected.

Definition at line 25 of file DRFTime_factory_FDC.cc.

References dBeamBunchPeriod, dSourceSystem, dTimeOffset, dTimeOffsetVariance, dTimeResolutionSq, and NameToSystem().

double DRFTime_factory_FDC::Calc_WeightedAverageRFTime ( vector< double > &  locRFTimes,
double &  locRFTimeVariance 
) const
private

Definition at line 140 of file DRFTime_factory_FDC.cc.

References dTimeOffsetVariance, dTimeResolutionSq, and Step_TimeToNearInputTime().

Referenced by evnt().

double DRFTime_factory_FDC::Convert_TDCToTime ( const DRFTDCDigiTime locRFTDCDigiTime,
const DTTabUtilities locTTabUtilities 
) const
jerror_t DRFTime_factory_FDC::erun ( void  )
private

Called everytime run number changes, provided brun has been called.

Definition at line 189 of file DRFTime_factory_FDC.cc.

jerror_t DRFTime_factory_FDC::evnt ( jana::JEventLoop *  eventLoop,
uint64_t  eventnumber 
)
private
jerror_t DRFTime_factory_FDC::fini ( void  )
private

Called after last event of last event source has been processed.

Definition at line 197 of file DRFTime_factory_FDC.cc.

jerror_t DRFTime_factory_FDC::init ( void  )
private

Called once at program start.

Definition at line 13 of file DRFTime_factory_FDC.cc.

References dSourceSystem, dTimeOffset, dTimeOffsetVariance, dTimeResolutionSq, and SYS_FDC.

double DRFTime_factory_FDC::Step_TimeToNearInputTime ( double  locTimeToStep,
double  locTimeToStepTo 
) const

Definition at line 116 of file DRFTime_factory_FDC.cc.

References dBeamBunchPeriod.

Referenced by Calc_WeightedAverageRFTime().

double DRFTime_factory_FDC::Step_TimeToNearInputTime ( double  locTimeToStep,
double  locTimeToStepTo,
double  locPeriod 
) const

Definition at line 121 of file DRFTime_factory_FDC.cc.

const char* DRFTime_factory_FDC::Tag ( void  )
inline

Definition at line 29 of file DRFTime_factory_FDC.h.

Member Data Documentation

double DRFTime_factory_FDC::dBeamBunchPeriod
private

Definition at line 47 of file DRFTime_factory_FDC.h.

Referenced by brun(), and Step_TimeToNearInputTime().

DetectorSystem_t DRFTime_factory_FDC::dSourceSystem
private

Definition at line 46 of file DRFTime_factory_FDC.h.

Referenced by brun(), evnt(), and init().

double DRFTime_factory_FDC::dTimeOffset
private

Definition at line 49 of file DRFTime_factory_FDC.h.

Referenced by brun(), Convert_TDCToTime(), and init().

double DRFTime_factory_FDC::dTimeOffsetVariance
private

Definition at line 50 of file DRFTime_factory_FDC.h.

Referenced by brun(), Calc_WeightedAverageRFTime(), and init().

double DRFTime_factory_FDC::dTimeResolutionSq
private

Definition at line 51 of file DRFTime_factory_FDC.h.

Referenced by brun(), Calc_WeightedAverageRFTime(), and init().


The documentation for this class was generated from the following files: