Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaPhotoReaction.h
Go to the documentation of this file.
1#ifndef Podd_THaPhotoReaction_h_
2#define Podd_THaPhotoReaction_h_
3
5//
6// THaPhotoReaction
7//
9
10#include "THaPhysicsModule.h"
11#include "TLorentzVector.h"
12#include "TString.h"
13
15class THaBeamModule;
16
18
19public:
20 THaPhotoReaction( const char* name, const char* description,
21 const char* spectro = "");
22 // Double_t target_mass = 0.0 /* GeV/c2 */ );
23 THaPhotoReaction( const char* name, const char* description,
24 const char* spectro, const char* beam );
25 // Double_t target_mass = 0.0 /* GeV/c2 */ );
26 virtual ~THaPhotoReaction();
27
28 virtual void Clear( Option_t* opt="" );
29
30
31 virtual EStatus Init( const TDatime& run_time );
32 virtual Int_t Process( const THaEvData& );
33 // void SetTargetMass( Double_t m );
34 void SetSpectrometer( const char* name );
35 void SetBeam( const char* name );
36
37protected:
38
39 TLorentzVector fP1; // Detected proton 4-momentum
40 Double_t fEGamma; // Energy of incident REAL photon (GeV)
41 Double_t fScatAngle; // Proton scattering angle (rad)
42 Double_t fScatAngleCM; // Proton CM scattering angle (rad)
43
44 Double_t fMA; // Target mass (GeV/c^2)
45
46 virtual Int_t DefineVariables( EMode mode = kDefine );
47 // virtual Int_t ReadRunDatabase( const TDatime& date );
48
49 TString fSpectroName; // Name of module providing tracks
50 TString fBeamName; // Name of module providing beam info
51 THaTrackingModule* fSpectro; // Pointer to tracking module
52 THaBeamModule* fBeam; // Pointer to beam module
53
54 ClassDef(THaPhotoReaction,0) //deuterium photodisintegration kinematics
55};
56
57#endif
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
char name[80]
virtual Int_t Process(const THaEvData &)
TLorentzVector fP1
virtual Int_t DefineVariables(EMode mode=kDefine)
virtual void Clear(Option_t *opt="")
THaBeamModule * fBeam
THaTrackingModule * fSpectro
void SetBeam(const char *name)
void SetSpectrometer(const char *name)