LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
GTruth.h
Go to the documentation of this file.
1 
10 
11 #ifndef SIMB_GTRUTH_H
12 #define SIMB_GTRUTH_H
13 
14 #include <iostream>
15 #include <TLorentzVector.h>
16 
17 namespace simb {
18 
19  class GTruth {
20 
21  public:
22  GTruth();
23 
24  // Interactions info
25  int fGint;
26  int fGscatter;
28 
29  // Event info
30  double fweight;
31  double fprobability;
32  double fXsec;
33  double fDiffXsec;
34 
35  // genie::XclsTag info
36  int fNumPiPlus;
38  int fNumPi0;
39  int fNumProton;
41  bool fIsCharm;
42  int fResNum;
43 
44  // Kinematics info
46  double fgQ2;
47  double fgq2;
48  double fgW;
49  double fgT;
50  double fgX;
51  double fgY;
52  TLorentzVector fFShadSystP4;
53 
54  // Target info
56  TLorentzVector fHitNucP4;
57  int ftgtZ;
58  int ftgtA;
59  int ftgtPDG;
60 
61  // Initial State info
62  int fProbePDG;
63  TLorentzVector fProbeP4;
64  TLorentzVector fVertex;
65 
66  // Flag for values that might not have been set
67  static constexpr double kUndefinedValue = -99999;
68 
69  public:
70  friend std::ostream& operator<< (std::ostream& output, const simb::GTruth &gtruth);
71 
72  };
73 
74 } // end simb namespace
75 
76 #endif // SIMB_GTRUTH_H
double fgW
Definition: GTruth.h:48
int fGint
interaction code
Definition: GTruth.h:25
double fgq2
Definition: GTruth.h:47
friend std::ostream & operator<<(std::ostream &output, const simb::GTruth &gtruth)
Definition: GTruth.cxx:66
double fgX
Definition: GTruth.h:50
int ftgtA
Definition: GTruth.h:58
int fGPhaseSpace
phase space system of DiffXSec
Definition: GTruth.h:27
int fNumNeutron
number of neutrons after reaction, before FSI
Definition: GTruth.h:40
int ftgtZ
Definition: GTruth.h:57
double fXsec
cross section of interaction
Definition: GTruth.h:32
int fNumPiPlus
number of pi pluses after reaction, before FSI
Definition: GTruth.h:36
int fNumPiMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:37
TLorentzVector fProbeP4
Definition: GTruth.h:63
int fResNum
resonance number
Definition: GTruth.h:42
int fNumProton
number of protons after reaction, before FSI
Definition: GTruth.h:39
double fprobability
interaction probability
Definition: GTruth.h:31
int fProbePDG
Definition: GTruth.h:62
int fGscatter
neutrino scattering code
Definition: GTruth.h:26
int fNumPi0
number of pi0 after reaction, before FSI
Definition: GTruth.h:38
bool fIsCharm
did the interaction produce a charmed hadron?
Definition: GTruth.h:41
double fweight
event interaction weight (genie internal)
Definition: GTruth.h:30
TLorentzVector fHitNucP4
Definition: GTruth.h:56
Framework includes.
int ftgtPDG
PDG of Target Nucleus, nucleon only if free.
Definition: GTruth.h:59
double fgQ2
< these are for the internal (on shell) genie kinematics
Definition: GTruth.h:46
TLorentzVector fFShadSystP4
Definition: GTruth.h:52
double fgT
Definition: GTruth.h:49
bool fIsSeaQuark
Definition: GTruth.h:55
TLorentzVector fVertex
Definition: GTruth.h:64
double fgY
Definition: GTruth.h:51
double fDiffXsec
differential cross section of interaction
Definition: GTruth.h:33
static constexpr double kUndefinedValue
Definition: GTruth.h:67