Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
simb::GTruth Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/nusimdata/v1_16_04/source/nusimdata/SimulationBase/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
 
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 fResNum
 resonance number More...
 
int fDecayMode
 

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 
51  , fFSleptonP4(0, 0, 0, 0)
52  , fFShadSystP4(0, 0, 0, 0)
53 
54  , fIsCharm(false)
55  , fCharmHadronPdg(0)
56  , fIsStrange(false)
58  , fNumProton(-1)
59  , fNumNeutron(-1)
60  , fNumPi0(-1)
61  , fNumPiPlus(-1)
62  , fNumPiMinus(-1)
63  , fResNum(-1)
64  , fDecayMode(-1)
65  {
66 
67  }
double fgW
Definition: GTruth.h:63
int fGint
interaction code
Definition: GTruth.h:56
double fgq2
Definition: GTruth.h:62
double fgX
Definition: GTruth.h:65
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:76
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:78
int fNumPiMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:79
bool fIsStrange
strange production // added version 13
Definition: GTruth.h:73
TLorentzVector fProbeP4
Definition: GTruth.h:41
int fResNum
resonance number
Definition: GTruth.h:80
int fNumProton
number of protons after reaction, before FSI
Definition: GTruth.h:75
int fDecayMode
Definition: GTruth.h:81
double fprobability
interaction probability
Definition: GTruth.h:29
int fProbePDG
Definition: GTruth.h:39
TLorentzVector fFSleptonP4
generated final state primary lepton (LAB frame) // added version 13
Definition: GTruth.h:67
int fGscatter
neutrino scattering code
Definition: GTruth.h:55
int fNumPi0
number of pi0 after reaction, before FSI
Definition: GTruth.h:77
int fCharmHadronPdg
Definition: GTruth.h:72
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:71
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:61
TLorentzVector fFShadSystP4
generated final state hadronic system (LAB frame)
Definition: GTruth.h:68
TLorentzVector fTgtP4
Definition: GTruth.h:42
int fHitNucPDG
hit nucleon PDG code // added version 13
Definition: GTruth.h:48
double fgT
Definition: GTruth.h:64
bool fIsSeaQuark
Definition: GTruth.h:50
TLorentzVector fVertex
Definition: GTruth.h:26
double fgY
Definition: GTruth.h:66
double fDiffXsec
differential cross section of interaction
Definition: GTruth.h:31
static constexpr double kUndefinedValue
Definition: GTruth.h:87
int fStrangeHadronPdg
Definition: GTruth.h:74

Friends And Related Function Documentation

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

Definition at line 81 of file GTruth.cxx.

82  {
83  output
84  << "GTruth:" << std::endl
85  // 123456789012
86  << " Vertex " << gtruthaux::stringifyTLorentzVector(gtruth.fVertex) << std::endl
87  << " weight " << std::setw(11) << gtruth.fweight << " "
88  << " prob " << std::setw(11) << gtruth.fprobability << std::endl
89  << " Xsec " << std::setw(11) << gtruth.fXsec << " "
90  << " DiffXsec " << std::setw(11) << gtruth.fDiffXsec << " "
91  << " GPhaseSpace " << std::setw(9) << gtruth.fGPhaseSpace << std::endl
92 
93  << " probe " << std::setw(11) << gtruth.fProbePDG << std::endl
94  << " ProbeP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fProbeP4) << std::endl
95  << " TgtP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fTgtP4) << std::endl
96 
97  << " Z A PDG (nuc,qrk) " << std::setw(4) << gtruth.ftgtZ << " "
98  << std::setw(4) << gtruth.ftgtA << " "
99  << std::setw(11) << gtruth.ftgtPDG << " ("
100  << std::setw(11) << gtruth.fHitNucPDG << " "
101  << std::setw(11) << gtruth.fHitQrkPDG << ") "
102  << " IsSeaQuark " << std::setw(4) << ((gtruth.fIsSeaQuark)?"yes":"no") << std::endl
103  << " HitNucP4 " << gtruthaux::stringifyTLorentzVector(gtruth.fHitNucP4) << " "
104  << " HitNucPos " << std::setw(11) << gtruth.fHitNucPos << std::endl
105 
106  << " Gscatter " << std::setw(11) << gtruth.fGscatter << " "
107  << " Gint " << std::setw(11) << gtruth.fGint << std::endl
108 
109  << " Q2 q2 " << std::setw(11) << gtruth.fgQ2 << " "
110  << std::setw(11) << gtruth.fgq2 << std::endl
111  << " W T " << std::setw(11) << gtruth.fgW << " "
112  << std::setw(11) << gtruth.fgT << std::endl
113  << " X Y " << std::setw(11) << gtruth.fgX << " "
114  << std::setw(11) << gtruth.fgY << std::endl
115  << " FSlepton " << gtruthaux::stringifyTLorentzVector(gtruth.fFSleptonP4) << std::endl
116  << " FShadSyst " << gtruthaux::stringifyTLorentzVector(gtruth.fFShadSystP4) << std::endl
117 
118  << " IsCharm " << std::setw(4) << ((gtruth.fIsCharm)?"yes":"no") << " "
119  << " CharmPDG " << std::setw(6) << gtruth.fCharmHadronPdg << " "
120  << " IsStrange " << std::setw(4) << ((gtruth.fIsStrange)?"yes":"no") << " "
121  << " StrangePDG " << std::setw(6) << gtruth.fStrangeHadronPdg << std::endl
122  << " Np Nn " << std::setw(4) << gtruth.fNumProton << " "
123  << std::setw(4) << gtruth.fNumNeutron << " "
124  << " Npi(0,+,-) " << std::setw(4) << gtruth.fNumPi0 << " "
125  << std::setw(4) << gtruth.fNumPiPlus << " "
126  << std::setw(4) << gtruth.fNumPiMinus << std::endl
127  << " ResNum " << std::setw(4) << gtruth.fResNum << " "
128  << " DecayMode " << std::setw(4) << gtruth.fDecayMode << std::endl
129 
130  << std::endl ;
131 
132  return output;
133  }
double fgW
Definition: GTruth.h:63
int fGint
interaction code
Definition: GTruth.h:56
ofstream output
double fgq2
Definition: GTruth.h:62
double fgX
Definition: GTruth.h:65
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:76
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:78
int fNumPiMinus
number of pi minuses after reaction, before FSI
Definition: GTruth.h:79
bool fIsStrange
strange production // added version 13
Definition: GTruth.h:73
TLorentzVector fProbeP4
Definition: GTruth.h:41
int fResNum
resonance number
Definition: GTruth.h:80
int fNumProton
number of protons after reaction, before FSI
Definition: GTruth.h:75
int fDecayMode
Definition: GTruth.h:81
double fprobability
interaction probability
Definition: GTruth.h:29
int fProbePDG
Definition: GTruth.h:39
TLorentzVector fFSleptonP4
generated final state primary lepton (LAB frame) // added version 13
Definition: GTruth.h:67
std::string stringifyTLorentzVector(const TLorentzVector &tv4)
Definition: GTruth.cxx:70
int fGscatter
neutrino scattering code
Definition: GTruth.h:55
int fNumPi0
number of pi0 after reaction, before FSI
Definition: GTruth.h:77
int fCharmHadronPdg
Definition: GTruth.h:72
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:71
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:61
TLorentzVector fFShadSystP4
generated final state hadronic system (LAB frame)
Definition: GTruth.h:68
TLorentzVector fTgtP4
Definition: GTruth.h:42
int fHitNucPDG
hit nucleon PDG code // added version 13
Definition: GTruth.h:48
double fgT
Definition: GTruth.h:64
bool fIsSeaQuark
Definition: GTruth.h:50
TLorentzVector fVertex
Definition: GTruth.h:26
double fgY
Definition: GTruth.h:66
double fDiffXsec
differential cross section of interaction
Definition: GTruth.h:31
int fStrangeHadronPdg
Definition: GTruth.h:74

Member Data Documentation

int simb::GTruth::fCharmHadronPdg

Definition at line 72 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fDecayMode

Definition at line 81 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fDiffXsec

differential cross section of interaction

Definition at line 31 of file GTruth.h.

Referenced by simb::operator<<().

TLorentzVector simb::GTruth::fFShadSystP4

generated final state hadronic system (LAB frame)

Definition at line 68 of file GTruth.h.

Referenced by simb::operator<<().

TLorentzVector simb::GTruth::fFSleptonP4

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

Definition at line 67 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fGint

interaction code

Definition at line 56 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fGPhaseSpace

phase space system of DiffXSec

Definition at line 32 of file GTruth.h.

Referenced by simb::operator<<().

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 61 of file GTruth.h.

Referenced by simb::operator<<(), and rwgt::MakeGENIEReweightTable::produce().

double simb::GTruth::fgq2

Definition at line 62 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fGscatter

neutrino scattering code

Definition at line 55 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fgT

Definition at line 64 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fgW

Definition at line 63 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fgX

Definition at line 65 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fgY

Definition at line 66 of file GTruth.h.

Referenced by simb::operator<<().

TLorentzVector simb::GTruth::fHitNucP4

Definition at line 51 of file GTruth.h.

Referenced by 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 simb::operator<<().

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 71 of file GTruth.h.

Referenced by caf::CAFMaker::AddMCTruthToVec(), simb::operator<<(), and rwgt::MakeGENIEReweightTable::produce().

bool simb::GTruth::fIsSeaQuark

Definition at line 50 of file GTruth.h.

Referenced by caf::CAFMaker::AddMCTruthToVec(), and simb::operator<<().

bool simb::GTruth::fIsStrange

strange production // added version 13

Definition at line 73 of file GTruth.h.

Referenced by simb::operator<<(), and rwgt::MakeGENIEReweightTable::produce().

int simb::GTruth::fNumNeutron

number of neutrons after reaction, before FSI

Definition at line 76 of file GTruth.h.

Referenced by caf::CAFMaker::AddMCTruthToVec(), and simb::operator<<().

int simb::GTruth::fNumPi0
int simb::GTruth::fNumPiMinus
int simb::GTruth::fNumPiPlus
int simb::GTruth::fNumProton

number of protons after reaction, before FSI

Definition at line 75 of file GTruth.h.

Referenced by caf::CAFMaker::AddMCTruthToVec(), and simb::operator<<().

double simb::GTruth::fprobability

interaction probability

Definition at line 29 of file GTruth.h.

Referenced by simb::operator<<().

TLorentzVector simb::GTruth::fProbeP4

Definition at line 41 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fProbePDG

Definition at line 39 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::fResNum

resonance number

Definition at line 80 of file GTruth.h.

Referenced by caf::CAFMaker::AddMCTruthToVec(), and simb::operator<<().

int simb::GTruth::fStrangeHadronPdg

Definition at line 74 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::ftgtA

Definition at line 46 of file GTruth.h.

Referenced by simb::operator<<().

TLorentzVector simb::GTruth::fTgtP4

Definition at line 42 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::ftgtPDG

PDG of Target Nucleus, nucleon only if free.

Definition at line 47 of file GTruth.h.

Referenced by simb::operator<<().

int simb::GTruth::ftgtZ

Definition at line 45 of file GTruth.h.

Referenced by simb::operator<<().

TLorentzVector simb::GTruth::fVertex

Definition at line 26 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fweight

event interaction weight (genie internal)

Definition at line 28 of file GTruth.h.

Referenced by simb::operator<<().

double simb::GTruth::fXsec

cross section of interaction

Definition at line 30 of file GTruth.h.

Referenced by caf::CAFMaker::AddMCTruthToVec(), and simb::operator<<().

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

Definition at line 87 of file GTruth.h.


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