Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcCoinTime.h
Go to the documentation of this file.
1#ifndef ROOT_THcCoinTime
2#define ROOT_THcCoinTime
3
5// //
6// THcCoinTime Physics Module //
7// Author: Carlos Yero //
8// Date: April 27, 2018 //
10
11#include "THaEvData.h"
12#include "THaCutList.h"
13#include "VarDef.h"
14#include "VarType.h"
15#include "TClonesArray.h"
16
17#include <cstring>
18#include <cstdio>
19#include <cstdlib>
20#include <iostream>
21
22#include "THaPhysicsModule.h"
23#include "THcTrigDet.h"
24#include "THcHodoscope.h"
25//#include "THaSpectrometer.h"
27#include "THaTrack.h"
28
30public:
31 THcCoinTime( const char* name, const char* description, const char* hadArmName="",
32 const char* elecArmName="", const char* coinname="");
33
34 virtual ~THcCoinTime();
35
36 virtual EStatus Init( const TDatime& run_time );
37 virtual Int_t Process( const THaEvData& );
38
39 void Reset( Option_t* opt="" );
40 void Clear( Option_t* opt="" );
41
42 protected:
43
44 virtual Int_t ReadDatabase( const TDatime& date);
46
47 // Data needed for adding coincidence time as a Leaf Variable
48
49 TString fHodName; // Name of hodoscope
50 TString fCoinDetName; // Name of Coin Trigger
51 TString fhadArmName; //name of hadron arm
52 TString felecArmName; // name of electron arm
53
54 THcHallCSpectrometer* fhadSpectro; // hadron Spectrometer object
55 THcHallCSpectrometer* felecSpectro; // electron Spectrometer object
56 THcTrigDet* fCoinDet; //Coin Trigger detector object
57
60
61 THcHodoscope* fHod; // Hodscope object
62
63 //-----Declare Variables used in HMS/SHMS Coin. time correction-----
67
68 //hadron masses (the e- could be in coincidence with any of the hadrons)
72
73 Double_t eHad_CT_Offset; //e-Hadron coin time Offset
74
77
80
85
90
95
100
105
106 Double_t fROC1_ePosCoinTime; //electron-positron coin time
108 Double_t fSHMS_ePosCoinTime; //electron-positron coin time
110
114
117
120
123
126
127 Double_t elec_P; //electron golden track momentum
128 Double_t elec_dP; //electron golden track delta-> (P-P0 / P0)
129 Double_t elec_xptar; //electron golden track theta (xptar, :)
130 Double_t elec_FPtime; //electron focal plane time
131
132 Double_t had_P; //hadron golden track momentum
133 Double_t had_xfp; //hadron x-focal plane
134 Double_t had_xpfp; //hadron xp focal plane
135 Double_t had_ypfp; //hadron yp focal plane
136 Double_t had_FPtime; //hadron focal plane time
137
138 // trigger times pTrig1 (SHMS 3/4 trig) and pTrig3 (HMS 3/4 trig)
143
144 //--------------------------------------------------------------------
145
146 ClassDef(THcCoinTime,0) // Coincidence Time Module
147};
148
149#endif
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char mode
Class for calculating and adding the Coincidence Time in the Tree. SJDK - 08/09/21 - Switched Trig4 t...
Definition THcCoinTime.h:29
Double_t fROC1_RAW_CoinTime
Definition THcCoinTime.h:81
TString felecArmName
Definition THcCoinTime.h:52
Double_t fROC2_ePosCoinTime
Double_t hadArm_BetaCalc_Positron
Double_t had_xpfp
Double_t elec_coinCorr
Double_t had_coinCorr_Kaon
Double_t fSHMS_ePiCoinTime
Double_t had_xfp
Double_t protonMass
Definition THcCoinTime.h:69
TString fHodName
Definition THcCoinTime.h:49
Double_t lightSpeed
Definition THcCoinTime.h:64
Double_t had_coinCorr_Pion
Double_t fHMS_ePiCoinTime
virtual ~THcCoinTime()
virtual Int_t DefineVariables(EMode mode=kDefine)
Double_t fSHMS_RAW_CoinTime_NoTrack
Definition THcCoinTime.h:88
Double_t fROC2_epCoinTime
Definition THcCoinTime.h:92
Double_t elec_hodFPtime
Double_t DeltaSHMSpathLength
Definition THcCoinTime.h:78
Double_t pHMS_TdcTime_ROC2
Double_t fROC1_epCoinTime
Definition THcCoinTime.h:91
Double_t elec_P
THaTrack * theHMSTrack
Definition THcCoinTime.h:59
Double_t fROC1_ePiCoinTime
Double_t fSHMS_eKCoinTime
Definition THcCoinTime.h:98
Double_t kaonMass
Definition THcCoinTime.h:70
Double_t fROC2_eKCoinTime
Definition THcCoinTime.h:97
Double_t had_ypfp
Double_t elec_dP
Double_t hadArm_BetaCalc_proton
Double_t fROC1_eKCoinTime
Definition THcCoinTime.h:96
Double_t hadArm_BetaCalc_Pion
Double_t fSHMS_RAW_CoinTime
Definition THcCoinTime.h:83
Double_t fHMS_eKCoinTime
Definition THcCoinTime.h:99
Double_t fHMS_RAW_CoinTime_NoTrack
Definition THcCoinTime.h:89
Double_t HMScentralPathLen
Definition THcCoinTime.h:76
void Reset(Option_t *opt="")
Double_t fROC2_ePiCoinTime
THcHallCSpectrometer * felecSpectro
Definition THcCoinTime.h:55
Double_t fSHMS_ePosCoinTime
Double_t elec_xptar
Double_t pionMass
Definition THcCoinTime.h:71
void Clear(Option_t *opt="")
Double_t positronMass
Definition THcCoinTime.h:66
Double_t elecMass
Definition THcCoinTime.h:65
Double_t fSHMS_epCoinTime
Definition THcCoinTime.h:93
THaTrack * theSHMSTrack
Definition THcCoinTime.h:58
Double_t had_coinCorr_proton
Double_t pSHMS_TdcTime_ROC2
TString fhadArmName
Definition THcCoinTime.h:51
virtual Int_t Process(const THaEvData &)
Double_t fHMS_RAW_CoinTime
Definition THcCoinTime.h:84
Double_t fROC2_RAW_CoinTime
Definition THcCoinTime.h:82
Double_t hadArm_BetaCalc_Kaon
THcHallCSpectrometer * fhadSpectro
Definition THcCoinTime.h:54
Double_t eHad_CT_Offset
Definition THcCoinTime.h:73
Double_t fHMS_ePosCoinTime
Double_t pSHMS_TdcTime_ROC1
Double_t elecArm_BetaCalc
Double_t had_coinCorr_Positron
Double_t fROC2_RAW_CoinTime_NoTrack
Definition THcCoinTime.h:87
THcTrigDet * fCoinDet
Definition THcCoinTime.h:56
Double_t had_FPtime
virtual Int_t ReadDatabase(const TDatime &date)
Double_t fHMS_epCoinTime
Definition THcCoinTime.h:94
Double_t fROC1_ePosCoinTime
Double_t pHMS_TdcTime_ROC1
Double_t had_P
THcHodoscope * fHod
Definition THcCoinTime.h:61
Double_t elec_FPtime
Double_t SHMScentralPathLen
Definition THcCoinTime.h:75
Double_t DeltaHMSpathLength
Definition THcCoinTime.h:79
TString fCoinDetName
Definition THcCoinTime.h:50
Double_t fROC1_RAW_CoinTime_NoTrack
Definition THcCoinTime.h:86
A standard Hall C spectrometer apparatus.
Generic hodoscope consisting of multiple planes with multiple paddles with phototubes on both ends.
A mock detector to hold trigger related data.
Definition THcTrigDet.h:16