LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
simb::GTruth Class Reference

#include "GTruth.h"

Public Member Functions

 GTruth ()
 

Public Attributes

TLorentzVector fVertex
 
double fweight
 event interaction weight (genie internal) More...
 
double fprobability
 interaction probability More...
 
double fXsec
 cross section of interaction More...
 
double fDiffXsec
 differential cross section of interaction More...
 
int fGPhaseSpace
 phase space system of DiffXSec More...
 
int fProbePDG
 
TLorentzVector fProbeP4
 
TLorentzVector fTgtP4
 
int ftgtZ
 
int ftgtA
 
int ftgtPDG
 PDG of Target Nucleus, nucleon only if free. More...
 
int fHitNucPDG
 hit nucleon PDG code // added version 13 More...
 
int fHitQrkPDG
 hit quark PDG code // added version 13 More...
 
bool fIsSeaQuark
 
TLorentzVector fHitNucP4
 
double fHitNucPos
 
int fGscatter
 neutrino scattering code More...
 
int fGint
 interaction code More...
 
double fgQ2
 
double fgq2
 
double fgW
 
double fgT
 
double fgX
 
double fgY
 a common running variable to be recorded More...
 
double fgWrun
 
TLorentzVector fFSleptonP4
 generated final state primary lepton (LAB frame) // added version 13 More...
 
TLorentzVector fFShadSystP4
 generated final state hadronic system (LAB frame) More...
 
bool fIsCharm
 did the interaction produce a charmed hadron? More...
 
int fCharmHadronPdg
 
bool fIsStrange
 strange production // added version 13 More...
 
int fStrangeHadronPdg
 
int fNumProton
 number of protons after reaction, before FSI More...
 
int fNumNeutron
 number of neutrons after reaction, before FSI More...
 
int fNumPi0
 number of pi0 after reaction, before FSI More...
 
int fNumPiPlus
 number of pi pluses after reaction, before FSI More...
 
int fNumPiMinus
 number of pi minuses after reaction, before FSI More...
 
int fNumSingleGammas
 number of gammas after reaction, before FSI More...
 
int fNumRho0
 number of pi0 after reaction, before FSI More...
 
int fNumRhoPlus
 number of pi pluses after reaction, before FSI More...
 
int fNumRhoMinus
 number of pi minuses after reaction, before FSI More...
 
int fResNum
 resonance number More...
 
int fDecayMode
 
int fFinalQuarkPdg
 
int fFinalLeptonPdg
 

Static Public Attributes

static constexpr double kUndefinedValue = -99999
 

Friends

std::ostream & operator<< (std::ostream &output, const simb::GTruth &gtruth)
 

Detailed Description

Definition at line 19 of file GTruth.h.

Constructor & Destructor Documentation

simb::GTruth::GTruth ( )

Definition at line 21 of file GTruth.cxx.

22  : fVertex(0, 0, 0, 0)
23  , fweight(0)
24  , fprobability(0)
25  , fXsec(0)
26  , fDiffXsec(0)
27  , fGPhaseSpace(-1)
28 
29  , fProbePDG(-1)
30  , fProbeP4(0, 0, 0, 0)
31  , fTgtP4(0, 0, 0, 0)
32 
33  , ftgtZ(0)
34  , ftgtA(0)
35  , ftgtPDG(0)
38  , fIsSeaQuark(false)
39  , fHitNucP4(0, 0, 0, 0)
40  , fHitNucPos(0)
41 
42  , fGscatter(-1)
43  , fGint(-1)
44 
52 
53  , fFSleptonP4(0, 0, 0, 0)
54  , fFShadSystP4(0, 0, 0, 0)
55 
56  , fIsCharm(false)
57  , fCharmHadronPdg(0)
58  , fIsStrange(false)
60  , fNumProton(-1)
61  , fNumNeutron(-1)
62  , fNumPi0(-1)
63  , fNumPiPlus(-1)
64  , fNumPiMinus(-1)
65  , fNumSingleGammas(-1)
66  , fNumRho0(-1)
67  , fNumRhoPlus(-1)
68  , fNumRhoMinus(-1)
69  , fResNum(-1)
70  , fDecayMode(-1)
71  , fFinalQuarkPdg(0)
72  , fFinalLeptonPdg(0)
73  {
74 
75  }
double fgW
Definition: GTruth.h:64
int fGint
interaction code
Definition: GTruth.h:56
double fgq2
Definition: GTruth.h:63
double fgX
Definition: GTruth.h:66
int ftgtA
Definition: GTruth.h:46
int fGPhaseSpace
phase space system of DiffXSec
Definition: GTruth.h:32
int fNumNeutron
number of neutrons after reaction, before FSI
Definition: GTruth.h:81
double fgWrun
Definition: GTruth.h:70
int fNumRhoPlus
number of pi pluses after reaction, before FSI
Definition: GTruth.h:87
int ftgtZ
Definition: GTruth.h:45
double fXsec
cross section of interaction
Definition: GTruth.h:30
int fNumPiPlus
number of pi pluses after reaction, before FSI
Definition: GTruth.h:83
int fNumSingleGammas
number of gammas after reaction, before FSI
Definition: GTruth.h:85
int fNumPiMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:84
bool fIsStrange
strange production // added version 13
Definition: GTruth.h:78
TLorentzVector fProbeP4
Definition: GTruth.h:41
int fResNum
resonance number
Definition: GTruth.h:89
int fNumProton
number of protons after reaction, before FSI
Definition: GTruth.h:80
int fDecayMode
Definition: GTruth.h:90
double fprobability
interaction probability
Definition: GTruth.h:29
int fFinalLeptonPdg
Definition: GTruth.h:93
int fProbePDG
Definition: GTruth.h:39
TLorentzVector fFSleptonP4
generated final state primary lepton (LAB frame) // added version 13
Definition: GTruth.h:72
int fGscatter
neutrino scattering code
Definition: GTruth.h:55
int fNumRhoMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:88
int fNumPi0
number of pi0 after reaction, before FSI
Definition: GTruth.h:82
int fCharmHadronPdg
Definition: GTruth.h:77
int fHitQrkPDG
hit quark PDG code // added version 13
Definition: GTruth.h:49
bool fIsCharm
did the interaction produce a charmed hadron?
Definition: GTruth.h:76
double fweight
event interaction weight (genie internal)
Definition: GTruth.h:28
TLorentzVector fHitNucP4
Definition: GTruth.h:51
double fHitNucPos
Definition: GTruth.h:52
int ftgtPDG
PDG of Target Nucleus, nucleon only if free.
Definition: GTruth.h:47
double fgQ2
Definition: GTruth.h:62
int fNumRho0
number of pi0 after reaction, before FSI
Definition: GTruth.h:86
TLorentzVector fFShadSystP4
generated final state hadronic system (LAB frame)
Definition: GTruth.h:73
TLorentzVector fTgtP4
Definition: GTruth.h:42
int fHitNucPDG
hit nucleon PDG code // added version 13
Definition: GTruth.h:48
int fFinalQuarkPdg
Definition: GTruth.h:92
double fgT
Definition: GTruth.h:65
bool fIsSeaQuark
Definition: GTruth.h:50
TLorentzVector fVertex
Definition: GTruth.h:26
double fgY
a common running variable to be recorded
Definition: GTruth.h:67
double fDiffXsec
differential cross section of interaction
Definition: GTruth.h:31
static constexpr double kUndefinedValue
Definition: GTruth.h:100
int fStrangeHadronPdg
Definition: GTruth.h:79

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const simb::GTruth gtruth 
)
friend

Definition at line 89 of file GTruth.cxx.

90  {
91  output
92  << "GTruth:" << std::endl
93  // 123456789012
94  << " Vertex " << gtruthaux::stringifyTLorentzVector(gtruth.fVertex) << std::endl
95  << " weight " << std::setw(11) << gtruth.fweight << " "
96  << " prob " << std::setw(11) << gtruth.fprobability << std::endl
97  << " Xsec " << std::setw(11) << gtruth.fXsec << " "
98  << " DiffXsec " << std::setw(11) << gtruth.fDiffXsec << " "
99  << " GPhaseSpace " << std::setw(9) << gtruth.fGPhaseSpace << std::endl
100 
101  << " probe " << std::setw(11) << gtruth.fProbePDG << std::endl
102  << " ProbeP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fProbeP4) << std::endl
103  << " TgtP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fTgtP4) << std::endl
104 
105  << " Z A PDG (nuc,qrk) " << std::setw(4) << gtruth.ftgtZ << " "
106  << std::setw(4) << gtruth.ftgtA << " "
107  << std::setw(11) << gtruth.ftgtPDG << " ("
108  << std::setw(11) << gtruth.fHitNucPDG << " "
109  << std::setw(11) << gtruth.fHitQrkPDG << ") "
110  << " IsSeaQuark " << std::setw(4) << ((gtruth.fIsSeaQuark)?"yes":"no") << std::endl
111  << " HitNucP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fHitNucP4) << " "
112  << " HitNucPos " << std::setw(11) << gtruth.fHitNucPos << std::endl
113 
114  << " Gscatter " << std::setw(11) << gtruth.fGscatter << " "
115  << " Gint " << std::setw(11) << gtruth.fGint << std::endl
116 
117  << " Q2 q2 " << std::setw(11) << gtruth.fgQ2 << " "
118  << std::setw(11) << gtruth.fgq2 << std::endl
119  << " W T " << std::setw(11) << gtruth.fgW << " "
120  << std::setw(11) << gtruth.fgT << std::endl
121  << " X Y " << std::setw(11) << gtruth.fgX << " "
122  << std::setw(11) << gtruth.fgY << std::endl
123  << " Wrun " << std::setw(11) << gtruth.fgWrun << std::endl
124  << " FSlepton " << gtruthaux::stringifyTLorentzVector(gtruth.fFSleptonP4) << std::endl
125  << " FShadSyst " << gtruthaux::stringifyTLorentzVector(gtruth.fFShadSystP4) << std::endl
126 
127  << " IsCharm " << std::setw(4) << ((gtruth.fIsCharm)?"yes":"no") << " "
128  << " CharmPDG " << std::setw(6) << gtruth.fCharmHadronPdg << " "
129  << " IsStrange " << std::setw(4) << ((gtruth.fIsStrange)?"yes":"no") << " "
130  << " StrangePDG " << std::setw(6) << gtruth.fStrangeHadronPdg << std::endl
131  << " Np Nn " << std::setw(4) << gtruth.fNumProton << " "
132  << std::setw(4) << gtruth.fNumNeutron << " "
133  << " Npi(0,+,-) " << std::setw(4) << gtruth.fNumPi0 << " "
134  << std::setw(4) << gtruth.fNumPiPlus << " "
135  << std::setw(4) << gtruth.fNumPiMinus << std::endl
136  << " NSingleGammas " << std::setw(4) << gtruth.fNumSingleGammas
137  << " NRho(0,+,-) " << std::setw(4) << gtruth.fNumRho0 << " "
138  << std::setw(4) << gtruth.fNumRhoPlus << " "
139  << std::setw(4) << gtruth.fNumRhoMinus << std::endl
140  << " ResNum " << std::setw(4) << gtruth.fResNum << " "
141  << " DecayMode " << std::setw(4) << gtruth.fDecayMode << std::endl
142  << " FinalQuarkPdg " << std::setw(4) << gtruth.fFinalQuarkPdg << " "
143  << " FinalLeptonPdg " << std::setw(4) << gtruth.fFinalLeptonPdg
144 
145  << std::endl ;
146 
147  return output;
148  }
double fgW
Definition: GTruth.h:64
int fGint
interaction code
Definition: GTruth.h:56
double fgq2
Definition: GTruth.h:63
double fgX
Definition: GTruth.h:66
int ftgtA
Definition: GTruth.h:46
int fGPhaseSpace
phase space system of DiffXSec
Definition: GTruth.h:32
int fNumNeutron
number of neutrons after reaction, before FSI
Definition: GTruth.h:81
double fgWrun
Definition: GTruth.h:70
int fNumRhoPlus
number of pi pluses after reaction, before FSI
Definition: GTruth.h:87
int ftgtZ
Definition: GTruth.h:45
double fXsec
cross section of interaction
Definition: GTruth.h:30
int fNumPiPlus
number of pi pluses after reaction, before FSI
Definition: GTruth.h:83
int fNumSingleGammas
number of gammas after reaction, before FSI
Definition: GTruth.h:85
int fNumPiMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:84
bool fIsStrange
strange production // added version 13
Definition: GTruth.h:78
TLorentzVector fProbeP4
Definition: GTruth.h:41
int fResNum
resonance number
Definition: GTruth.h:89
int fNumProton
number of protons after reaction, before FSI
Definition: GTruth.h:80
int fDecayMode
Definition: GTruth.h:90
double fprobability
interaction probability
Definition: GTruth.h:29
int fFinalLeptonPdg
Definition: GTruth.h:93
int fProbePDG
Definition: GTruth.h:39
TLorentzVector fFSleptonP4
generated final state primary lepton (LAB frame) // added version 13
Definition: GTruth.h:72
std::string stringifyTLorentzVector(const TLorentzVector &tv4)
Definition: GTruth.cxx:78
int fGscatter
neutrino scattering code
Definition: GTruth.h:55
int fNumRhoMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:88
int fNumPi0
number of pi0 after reaction, before FSI
Definition: GTruth.h:82
int fCharmHadronPdg
Definition: GTruth.h:77
int fHitQrkPDG
hit quark PDG code // added version 13
Definition: GTruth.h:49
bool fIsCharm
did the interaction produce a charmed hadron?
Definition: GTruth.h:76
double fweight
event interaction weight (genie internal)
Definition: GTruth.h:28
TLorentzVector fHitNucP4
Definition: GTruth.h:51
double fHitNucPos
Definition: GTruth.h:52
int ftgtPDG
PDG of Target Nucleus, nucleon only if free.
Definition: GTruth.h:47
double fgQ2
Definition: GTruth.h:62
int fNumRho0
number of pi0 after reaction, before FSI
Definition: GTruth.h:86
TLorentzVector fFShadSystP4
generated final state hadronic system (LAB frame)
Definition: GTruth.h:73
TLorentzVector fTgtP4
Definition: GTruth.h:42
int fHitNucPDG
hit nucleon PDG code // added version 13
Definition: GTruth.h:48
int fFinalQuarkPdg
Definition: GTruth.h:92
double fgT
Definition: GTruth.h:65
bool fIsSeaQuark
Definition: GTruth.h:50
TLorentzVector fVertex
Definition: GTruth.h:26
double fgY
a common running variable to be recorded
Definition: GTruth.h:67
double fDiffXsec
differential cross section of interaction
Definition: GTruth.h:31
int fStrangeHadronPdg
Definition: GTruth.h:79

Member Data Documentation

int simb::GTruth::fCharmHadronPdg

Definition at line 77 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fDecayMode

Definition at line 90 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fDiffXsec

differential cross section of interaction

Definition at line 31 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fFinalLeptonPdg

Definition at line 93 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fFinalQuarkPdg

Definition at line 92 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

TLorentzVector simb::GTruth::fFShadSystP4

generated final state hadronic system (LAB frame)

Definition at line 73 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

TLorentzVector simb::GTruth::fFSleptonP4

generated final state primary lepton (LAB frame) // added version 13

Definition at line 72 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fGint

interaction code

Definition at line 56 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fGPhaseSpace

phase space system of DiffXSec

Definition at line 32 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fgQ2

< these are for the internal (on shell) genie kinematics this list might be an incomplete transcription of map<KineVar_t,double>

Definition at line 62 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fgq2
int simb::GTruth::fGscatter

neutrino scattering code

Definition at line 55 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fgT
double simb::GTruth::fgW
double simb::GTruth::fgWrun

Definition at line 70 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fgX
double simb::GTruth::fgY

a common running variable to be recorded

Definition at line 67 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

TLorentzVector simb::GTruth::fHitNucP4

Definition at line 51 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), and simb::operator<<().

int simb::GTruth::fHitNucPDG

hit nucleon PDG code // added version 13

Definition at line 48 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fHitNucPos

Definition at line 52 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fHitQrkPDG

hit quark PDG code // added version 13

Definition at line 49 of file GTruth.h.

Referenced by simb::operator<<().

bool simb::GTruth::fIsCharm

did the interaction produce a charmed hadron?

Definition at line 76 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

bool simb::GTruth::fIsSeaQuark
bool simb::GTruth::fIsStrange

strange production // added version 13

Definition at line 78 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumNeutron

number of neutrons after reaction, before FSI

Definition at line 81 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumPi0

number of pi0 after reaction, before FSI

Definition at line 82 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumPiMinus

number of pi minuses after reaction, before FSI

Definition at line 84 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumPiPlus

number of pi pluses after reaction, before FSI

Definition at line 83 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumProton

number of protons after reaction, before FSI

Definition at line 80 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumRho0

number of pi0 after reaction, before FSI

Definition at line 86 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumRhoMinus

number of pi minuses after reaction, before FSI

Definition at line 88 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumRhoPlus

number of pi pluses after reaction, before FSI

Definition at line 87 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fNumSingleGammas

number of gammas after reaction, before FSI

Definition at line 85 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fprobability

interaction probability

Definition at line 29 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

TLorentzVector simb::GTruth::fProbeP4

Definition at line 41 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), and simb::operator<<().

int simb::GTruth::fProbePDG
int simb::GTruth::fResNum

resonance number

Definition at line 89 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::fStrangeHadronPdg

Definition at line 79 of file GTruth.h.

Referenced by evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::ftgtA
TLorentzVector simb::GTruth::fTgtP4

Definition at line 42 of file GTruth.h.

Referenced by evgb::FillGTruth(), and simb::operator<<().

int simb::GTruth::ftgtPDG

PDG of Target Nucleus, nucleon only if free.

Definition at line 47 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

int simb::GTruth::ftgtZ
TLorentzVector simb::GTruth::fVertex
double simb::GTruth::fweight

event interaction weight (genie internal)

Definition at line 28 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

double simb::GTruth::fXsec

cross section of interaction

Definition at line 30 of file GTruth.h.

Referenced by sim::dump::DumpGTruth(), evgb::FillGTruth(), simb::operator<<(), and evgb::RetrieveGHEP().

constexpr double simb::GTruth::kUndefinedValue = -99999
static

Definition at line 100 of file GTruth.h.


The documentation for this class was generated from the following files: