LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
simb::GTruth Class Reference

#include "GTruth.h"

Public Member Functions

 GTruth ()
 

Public Attributes

int fGint
 interaction code More...
 
int fGscatter
 neutrino scattering code More...
 
int fGPhaseSpace
 phase space system of DiffXSec More...
 
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 fNumPiPlus
 number of pi pluses after reaction, before FSI More...
 
int fNumPiMinus
 number of pi minuses after reaction, before FSI More...
 
int fNumPi0
 number of pi0 after reaction, before FSI More...
 
int fNumProton
 number of protons after reaction, before FSI More...
 
int fNumNeutron
 number of neutrons after reaction, before FSI More...
 
bool fIsCharm
 did the interaction produce a charmed hadron? More...
 
int fResNum
 resonance number More...
 
double fgQ2
 < these are for the internal (on shell) genie kinematics More...
 
double fgq2
 
double fgW
 
double fgT
 
double fgX
 
double fgY
 
TLorentzVector fFShadSystP4
 
bool fIsSeaQuark
 
TLorentzVector fHitNucP4
 
int ftgtZ
 
int ftgtA
 
int ftgtPDG
 PDG of Target Nucleus, nucleon only if free. More...
 
int fProbePDG
 
TLorentzVector fProbeP4
 
TLorentzVector fVertex
 

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.

References fFShadSystP4, fHitNucP4, fProbeP4, and fVertex.

22  : fGint(-1)
23  , fGscatter(-1)
24  , fGPhaseSpace(-1)
25  , fweight(0)
26  , fprobability(0)
27  , fXsec(0)
28  , fDiffXsec(0)
29  , fNumPiPlus(-1)
30  , fNumPiMinus(-1)
31  , fNumPi0(-1)
32  , fNumProton(-1)
33  , fNumNeutron(-1)
34  , fIsCharm(false)
35  , fResNum(-1)
42  , fIsSeaQuark(false)
43  , ftgtZ(0)
44  , ftgtA(0)
45  , ftgtPDG(0)
46  , fProbePDG(-1)
47  {
48  fFShadSystP4.SetXYZT(0, 0, 0, 0);
49  fHitNucP4.SetXYZT(0, 0, 0, 0);
50  fProbeP4.SetXYZT(0, 0, 0, 0);
51  fVertex.SetXYZT(0, 0, 0, 0);
52  }
double fgW
Definition: GTruth.h:48
int fGint
interaction code
Definition: GTruth.h:25
double fgq2
Definition: GTruth.h:47
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
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

Friends And Related Function Documentation

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

Definition at line 66 of file GTruth.cxx.

67  {
68  output
69  << "GTruth:" << std::endl
70  // 123456789012
71  << " Gint " << std::setw(11) << gtruth.fGint << " "
72  << " Gscatter " << std::setw(11) << gtruth.fGscatter << " "
73  << " GPhaseSpace " << std::setw(9) << gtruth.fGPhaseSpace << std::endl
74  << " weight " << std::setw(11) << gtruth.fweight << " "
75  << " prob " << std::setw(11) << gtruth.fprobability << std::endl
76  << " Xsec " << std::setw(11) << gtruth.fXsec << " "
77  << " DiffXsec " << std::setw(11) << gtruth.fDiffXsec << std::endl
78  << " Npi(+,-,0)" << std::setw(4) << gtruth.fNumPiPlus << " "
79  << std::setw(4) << gtruth.fNumPiMinus << " "
80  << std::setw(4) << gtruth.fNumPi0 << " "
81  << " Np Nn " << std::setw(4) << gtruth.fNumProton << " "
82  << std::setw(4) << gtruth.fNumNeutron << std::endl
83  << " IsCharm " << std::setw(4) << ((gtruth.fIsCharm)?"yes":"no") << " "
84  << " ResNum " << std::setw(4) << gtruth.fResNum << std::endl
85  << " Q2 q2 " << std::setw(11) << gtruth.fgQ2 << " "
86  << std::setw(11) << gtruth.fgq2 << std::endl
87  << " W T " << std::setw(11) << gtruth.fgW << " "
88  << std::setw(11) << gtruth.fgT << std::endl
89  << " X Y " << std::setw(11) << gtruth.fgX << " "
90  << std::setw(11) << gtruth.fgY << std::endl
91  << " IsSeaQuark " << std::setw(4) << ((gtruth.fIsSeaQuark)?"yes":"no") << std::endl
92  << " Z A PDG " << std::setw(4) << gtruth.ftgtZ << " "
93  << std::setw(4) << gtruth.ftgtA << " "
94  << std::setw(11) << gtruth.ftgtPDG << " "
95  << " probe " << std::setw(11) << gtruth.fProbePDG << std::endl
96  << " FShadSyst " << gtruthaux::stringifyTLorentzVector(gtruth.fFShadSystP4) << std::endl
97  << " HitNucP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fHitNucP4) << std::endl
98  << " ProbeP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fProbeP4) << std::endl
99  << " Vertex " << gtruthaux::stringifyTLorentzVector(gtruth.fVertex) << std::endl;
100 
101  return output;
102  }
double fgW
Definition: GTruth.h:48
int fGint
interaction code
Definition: GTruth.h:25
double fgq2
Definition: GTruth.h:47
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
std::string stringifyTLorentzVector(const TLorentzVector &tv4)
Definition: GTruth.cxx:55
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
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

Member Data Documentation

double simb::GTruth::fDiffXsec

differential cross section of interaction

Definition at line 33 of file GTruth.h.

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

int simb::GTruth::fGint
int simb::GTruth::fGPhaseSpace

phase space system of DiffXSec

Definition at line 27 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

Definition at line 46 of file GTruth.h.

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

int simb::GTruth::fGscatter
TLorentzVector simb::GTruth::fHitNucP4
bool simb::GTruth::fIsCharm

did the interaction produce a charmed hadron?

Definition at line 41 of file GTruth.h.

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

int simb::GTruth::fNumNeutron

number of neutrons after reaction, before FSI

Definition at line 40 of file GTruth.h.

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

int simb::GTruth::fNumPi0

number of pi0 after reaction, before FSI

Definition at line 38 of file GTruth.h.

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

int simb::GTruth::fNumPiMinus

number of pi minuses after reaction, before FSI

Definition at line 37 of file GTruth.h.

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

int simb::GTruth::fNumPiPlus

number of pi pluses after reaction, before FSI

Definition at line 36 of file GTruth.h.

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

int simb::GTruth::fNumProton

number of protons after reaction, before FSI

Definition at line 39 of file GTruth.h.

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

double simb::GTruth::fprobability
TLorentzVector simb::GTruth::fProbeP4
int simb::GTruth::fResNum
int simb::GTruth::ftgtA
int simb::GTruth::ftgtPDG

PDG of Target Nucleus, nucleon only if free.

Definition at line 59 of file GTruth.h.

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

int simb::GTruth::ftgtZ
double simb::GTruth::fweight

event interaction weight (genie internal)

Definition at line 30 of file GTruth.h.

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

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

Definition at line 67 of file GTruth.h.

Referenced by evgb::RetrieveGHEP().


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