Hall C ROOT/C++ Analyzer (hcana)
THcRFTime Class Reference

Brief Class for calculating and adding the RF Time in the Tree.

Author: Stephen JD Kay University of Regina Date: 12/04/21 (12th April 2021) Based on THcCoinTime class from C Yero

14/04/21 - Now works and reads in epics value for the accelerator frequency. This is used to determine the bunch spacing In future, want to determine the RF time with some corrections for each particle type (as is done in THcCoinTime)

Definition at line 32 of file THcRFTime.h.

Public Member Functions

void Clear (Option_t *opt="")
 
virtual EStatus Init (const TDatime &run_time)
 
virtual Int_t Process (const THaEvData &)
 
void Reset (Option_t *opt="")
 
 THcRFTime (const char *name, const char *description, const char *hadArmName="", const char *elecArmName="", const char *RFname="")
 
virtual ~THcRFTime ()
 

Protected Member Functions

virtual Int_t DefineVariables (EMode mode=kDefine)
 
virtual Int_t ReadDatabase (const TDatime &date)
 

Protected Attributes

Double_t Bunch_Spacing
 
Double_t Bunch_Spacing_Epics
 
Double_t Bunch_Spacing_Override
 
THcTrigDetfCoinDet
 
TString fCoinDetName
 
TString felecArmName
 
THcHallCSpectrometerfelecSpectro
 
THaEpicsEvtHandler * fEpicsHandler
 
TString fhadArmName
 
THcHallCSpectrometerfhadSpectro
 
Double_t fHMS_RFtimeDist
 
THcHodoscopefHod
 
TString fHodName
 
Int_t fNhits
 
Double_t fSHMS_RFtimeDist
 
Double_t HMS_FPtime
 
Double_t HMS_RF_Offset
 
Double_t HMS_RFtime
 
Double_t SHMS_FPtime
 
Double_t SHMS_RF_Offset
 
Double_t SHMS_RFtime
 
THaTrack * theHMSTrack
 
THaTrack * theSHMSTrack
 

#include <THcRFTime.h>

Inheritance diagram for THcRFTime:

Constructor & Destructor Documentation

THcRFTime::THcRFTime ( const char *  name,
const char *  description,
const char *  hadArmName = "",
const char *  elecArmName = "",
const char *  RFname = "" 
)

Definition at line 38 of file THcRFTime.cxx.

THcRFTime::~THcRFTime ( )
virtual

Definition at line 53 of file THcRFTime.cxx.

Member Function Documentation

void THcRFTime::Clear ( Option_t opt = "")

Definition at line 61 of file THcRFTime.cxx.

Int_t THcRFTime::DefineVariables ( EMode  mode = kDefine)
protectedvirtual

Definition at line 155 of file THcRFTime.cxx.

THaAnalysisObject::EStatus THcRFTime::Init ( const TDatime run_time)
virtual

Definition at line 79 of file THcRFTime.cxx.

Int_t THcRFTime::Process ( const THaEvData evdata)
virtual

Definition at line 171 of file THcRFTime.cxx.

Int_t THcRFTime::ReadDatabase ( const TDatime date)
protectedvirtual

Definition at line 123 of file THcRFTime.cxx.

void THcRFTime::Reset ( Option_t opt = "")

Definition at line 71 of file THcRFTime.cxx.

Member Data Documentation

Double_t THcRFTime::Bunch_Spacing
protected

Definition at line 76 of file THcRFTime.h.

Double_t THcRFTime::Bunch_Spacing_Epics
protected

Definition at line 77 of file THcRFTime.h.

Double_t THcRFTime::Bunch_Spacing_Override
protected

Definition at line 74 of file THcRFTime.h.

THcTrigDet* THcRFTime::fCoinDet
protected

Definition at line 64 of file THcRFTime.h.

TString THcRFTime::fCoinDetName
protected

Definition at line 57 of file THcRFTime.h.

TString THcRFTime::felecArmName
protected

Definition at line 59 of file THcRFTime.h.

THcHallCSpectrometer* THcRFTime::felecSpectro
protected

Definition at line 63 of file THcRFTime.h.

THaEpicsEvtHandler* THcRFTime::fEpicsHandler
protected

Definition at line 65 of file THcRFTime.h.

TString THcRFTime::fhadArmName
protected

Definition at line 58 of file THcRFTime.h.

THcHallCSpectrometer* THcRFTime::fhadSpectro
protected

Definition at line 62 of file THcRFTime.h.

Double_t THcRFTime::fHMS_RFtimeDist
protected

Definition at line 83 of file THcRFTime.h.

THcHodoscope* THcRFTime::fHod
protected

Definition at line 70 of file THcRFTime.h.

TString THcRFTime::fHodName
protected

Definition at line 56 of file THcRFTime.h.

Int_t THcRFTime::fNhits
protected

Definition at line 49 of file THcRFTime.h.

Double_t THcRFTime::fSHMS_RFtimeDist
protected

Definition at line 84 of file THcRFTime.h.

Double_t THcRFTime::HMS_FPtime
protected

Definition at line 80 of file THcRFTime.h.

Double_t THcRFTime::HMS_RF_Offset
protected

Definition at line 72 of file THcRFTime.h.

Double_t THcRFTime::HMS_RFtime
protected

Definition at line 78 of file THcRFTime.h.

Double_t THcRFTime::SHMS_FPtime
protected

Definition at line 81 of file THcRFTime.h.

Double_t THcRFTime::SHMS_RF_Offset
protected

Definition at line 73 of file THcRFTime.h.

Double_t THcRFTime::SHMS_RFtime
protected

Definition at line 79 of file THcRFTime.h.

THaTrack* THcRFTime::theHMSTrack
protected

Definition at line 68 of file THcRFTime.h.

THaTrack* THcRFTime::theSHMSTrack
protected

Definition at line 67 of file THcRFTime.h.

Collaboration diagram for THcRFTime:

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