GenieParticle.h
Go to the documentation of this file.
1 //
2 // GenieParticle.h
3 //
4 // Created by E. Brianne
5 //
6 
7 #ifndef GAR_SIMULATIONDATAPRODUCTS_GenieParticle_h
8 #define GAR_SIMULATIONDATAPRODUCTS_GenieParticle_h
9 
10 #include <string>
11 
12 namespace gar {
13  namespace sdp {
14 
16  public:
17 
18  GenieParticle();
19 
20  #ifndef __GCCXML__
21 
22  GenieParticle(unsigned int interaction_index, unsigned int index, int pdg, int status, std::string name, int firstmother, int lastmother, int firstdaughter, int lastdaughter, float px, float py, float pz, float e, float mass, int rescatter)
23  : fInteractionIndex(interaction_index),
24  fIndex(index),
25  fPdg(pdg),
26  fStatus(status),
27  fName(name),
28  fFirstMother(firstmother),
29  fLastMother(lastmother),
30  fFirstDaughter(firstdaughter),
31  fLastDaughter(lastdaughter),
32  fPx(px),
33  fPy(py),
34  fPz(pz),
35  fE(e),
36  fMass(mass),
37  fRescatterCode(rescatter)
38  {}
39 
40  unsigned int InteractionIndex() const { return fInteractionIndex; }
41  unsigned int Index() const { return fIndex; }
42  int Pdg() const { return fPdg; }
43  int Status() const { return fStatus; }
44  std::string Name() const { return fName; }
45  int FirstMother() const { return fFirstMother; }
46  int LastMother() const { return fLastMother; }
47  int FirstDaughter() const { return fFirstDaughter; }
48  int LastDaughter() const { return fLastDaughter; }
49  float Px() const { return fPx; }
50  float Py() const { return fPy; }
51  float Pz() const { return fPz; }
52  float E() const { return fE; }
53  float Mass() const { return fMass; }
54  int RescatterCode() const { return fRescatterCode; }
55 
56  #endif
57 
58  private:
59  unsigned int fInteractionIndex;
60  unsigned int fIndex;
61  int fPdg;
62  int fStatus;
68  float fPx;
69  float fPy;
70  float fPz;
71  float fE;
72  float fMass;
74  };
75 
76 
77  } // sdp
78 } // gar
79 
80 #endif /* GAR_SIMULATIONDATAPRODUCTS_GenieParticle_h */
static QCString name
Definition: declinfo.cpp:673
unsigned int Index() const
Definition: GenieParticle.h:41
int FirstDaughter() const
Definition: GenieParticle.h:47
std::string Name() const
Definition: GenieParticle.h:44
std::string string
Definition: nybbler.cc:12
int RescatterCode() const
Definition: GenieParticle.h:54
unsigned int fInteractionIndex
Definition: GenieParticle.h:59
int FirstMother() const
Definition: GenieParticle.h:45
const double e
GenieParticle(unsigned int interaction_index, unsigned int index, int pdg, int status, std::string name, int firstmother, int lastmother, int firstdaughter, int lastdaughter, float px, float py, float pz, float e, float mass, int rescatter)
Definition: GenieParticle.h:22
General GArSoft Utilities.
int LastDaughter() const
Definition: GenieParticle.h:48
unsigned int InteractionIndex() const
Definition: GenieParticle.h:40