Neutral Particle Spectrometer analysis code
Loading...
Searching...
No Matches
THcNPSCoinTime.h
Go to the documentation of this file.
1#ifndef ROOT_THcNPSCoinTime
2#define ROOT_THcNPSCoinTime
3
5//
6// THcNPSCoinTime
7//
8// Calculate coincidence times for a pair of
9// NPS + HMS spectrometer.
10// timing offsets for different paddles are handled
11// in the detector class (e.g. THcNPSArray)
12//
14
15#include "TString.h"
16#include "THaPhysicsModule.h"
17#include "THcTrigDet.h"
19#include "THaTrack.h"
20#include "THcNPSApparatus.h"
21#include "THcNPSCalorimeter.h"
22
23#define LIGHTSPEED 29.9792 // cm/ns
24#define MASS_ELECTRON 0.000510998 // electron mass in GeV/c^2
25#define MASS_PROTON 0.93827208 // proton mass in GeV/c^2
26
28 public:
29 THcNPSCoinTime( const char* name, const char* description,
30 const char* elecArmName="", const char* hadArmName="",
31 const char* coinname="");
32
33 virtual ~THcNPSCoinTime();
34
35 virtual EStatus Init( const TDatime& run_time ) ;
36 virtual Int_t Process( const THaEvData& );
37
38 void Clear( Option_t* opt="" );
39 void Reset( Option_t* opt = "" );
40
41 protected:
42
43 virtual Int_t ReadDatabase( const TDatime& date );
45
53
55
56 // Read from Database
61
62 // Calculated using HMS track
64
69
72
77
78 // Trigger time pTrig1 T1 (NPS VTP||EDTM) and T3 (HMS 3/4)
82
85
87};
88
89#endif
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char mode
A dummy spectrometer apparatus for testing detectors.
Generic segmented shower detector.
Double_t fHMScentralPathLen
Double_t fDeltaHMSpathLength
THaTrack * theHMSTrack
void Clear(Option_t *opt="")
Double_t fROC1_RAW_CoinTime1
Double_t fNPScentralPathLen
THcHallCSpectrometer * fHMSSpect
Double_t pNPS_TdcTime_ROC1
Double_t fROC1_RAW_CoinTime2_NoTrack
THcNPSCalorimeter * fNPSCalo
THcTrigDet * fCoinDet
Double_t fHMS_epCoinTime
THcNPSApparatus * fNPSSpect
Double_t pELRE_TdcTime_ROC1
Double_t feHad_CT_Offset
Double_t fROC1_epCoinTime2
void Reset(Option_t *opt="")
virtual Int_t ReadDatabase(const TDatime &date)
Double_t had_coinCorr_proton
Double_t elec_coinCorr
Double_t fNPS_RAW_CoinTime
Double_t fHMS_RAW_CoinTime
Double_t fROC1_epCoinTime1
Double_t fROC1_RAW_CoinTime2
Double_t pHMS_TdcTime_ROC1
Double_t fNPS_epCoinTime
virtual Int_t Process(const THaEvData &)
virtual Int_t DefineVariables(EMode mode=kDefine)
virtual ~THcNPSCoinTime()
Double_t fROC1_RAW_CoinTime1_NoTrack