Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaBeamModule.cxx
Go to the documentation of this file.
1//*-- Author : Ole Hansen 27-Apr-04
2
4//
5// THaBeamModule
6//
7// Base class for a "beam" processing module. This is a
8// physics module that provides a generic information about
9// beam properties.
10//
12
13#include "THaBeamModule.h"
14#include "VarDef.h"
15
16using namespace std;
17
18//_____________________________________________________________________________
20
21//_____________________________________________________________________________
23
24//_____________________________________________________________________________
26{
27 // Get definition block of global variables for the fBeamIfo object
28
29 static const RVarDef vars[] = {
30 { "e", "Beam energy", "fBeamIfo.GetE()"},
31 { "p", "Lab momentum (GeV)", "fBeamIfo.GetP()"},
32 { "px", "Lab momentum x (GeV)", "fBeamIfo.GetPx()"},
33 { "py", "Lab momentum y (GeV)", "fBeamIfo.GetPy()"},
34 { "pz", "Lab momentum z (GeV)", "fBeamIfo.GetPz()"},
35 { "xpos", "x position (m)", "fBeamIfo.GetX()"},
36 { "ypos", "y position (m)", "fBeamIfo.GetY()"},
37 { "zpos", "z position (m)", "fBeamIfo.GetZ()"},
38 { "th", "Tangent theta angle", "fBeamIfo.GetTheta()"},
39 { "ph", "Tangent phi angle", "fBeamIfo.GetPhi()"},
40 { "pol", "Beam polarization", "fBeamIfo.fPol"},
41 { "ok", "Data valid status flag (1=ok)", "fBeamIfo.fOK"},
42 { nullptr }
43 };
44
45 return vars;
46}
47
48//_____________________________________________________________________________
static const RVarDef * GetRVarDef()
virtual ~THaBeamModule()
STL namespace.
ClassImp(TPyArg)