Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
garana::FlatGenTree Class Reference

#include <FlatGenTree.h>

Inheritance diagram for garana::FlatGenTree:
garana::GenTree garana::TreeReader garana::MillGenTree

Public Member Functions

 FlatGenTree ()
 
 FlatGenTree (TTree *tree)
 
 FlatGenTree (TTree *tree, char opt)
 
const UInt_t NGen () const override
 
const UInt_t NFSParticles (const UInt_t &igen) const override
 
const Bool_t IsGenie (const UInt_t &igen) const override
 
const int NuRegion (const UInt_t &igen) const override
 region code where the vertex is located More...
 
const Bool_t IsCC (const UInt_t &igen) const override
 whether interaction is CC or not More...
 
const Int_t NuPDG (const UInt_t &igen) const override
 neutrino PDG code More...
 
const TLorentzVector * NuP (const UInt_t &igen) override
 initial neutrino 4-momentum More...
 
const TLorentzVector * NuVertex (const UInt_t &igen) override
 4-position of neutrino vertex More...
 
const int ScatterCode (const UInt_t &igen) const override
 GENIE neutrino scattering code. More...
 
const int InteractCode (const UInt_t &igen) const override
 GENIE interaction code. More...
 
const Int_t TgtPDG (const UInt_t &igen) const override
 PDG of Target Nucleus, nucleon only if free. More...
 
const TLorentzVector * TgtP4 (const UInt_t &igen) const override
 target 4-momentum More...
 
const int TgtZ (const UInt_t &igen) const override
 target Z More...
 
const int TgtA (const UInt_t &igen) const override
 target A More...
 
const int HitNucPDG (const UInt_t &igen) const override
 hit nucleon PDG code More...
 
const TLorentzVector * HitNucP4 (const UInt_t &igen) const override
 hit nucleon (initial) 4-momentum More...
 
const double Q2 (const UInt_t &igen) const override
 
const double q2 (const UInt_t &igen) const override
 
const double W (const UInt_t &igen) const override
 
const double T (const UInt_t &igen) const override
 
const double X (const UInt_t &igen) const override
 
const double Y (const UInt_t &igen) const override
 
const TLorentzVector * FSLeptonP4 (const UInt_t &igen) const override
 final state primary lepton 4-momentum (LAB frame) More...
 
const TLorentzVector * FSHadSystP4 (const UInt_t &igen) const override
 final state hadronic system 4-momentum(LAB frame) More...
 
const int NumNuProton (const UInt_t &igen) const override
 number of protons after reaction, before FSI More...
 
const int NumNuNeutron (const UInt_t &igen) const override
 number of neutrons after reaction, before FSI More...
 
const int NumNuPi0 (const UInt_t &igen) const override
 number of pi0 after reaction, before FSI More...
 
const int NumNuPiPlus (const UInt_t &igen) const override
 number of pi pluses after reaction, before FSI More...
 
const int NumNuPiMinus (const UInt_t &igen) const override
 number of pi minuses after reaction, before FSI More...
 
const Float_t FSTotEnergy (const UInt_t &igen) const override
 
const Float_t FSEnergy (const UInt_t &igen, const UInt_t &ifsp) const override
 
const Float_t FSPDG (const UInt_t &igen, const UInt_t &ifsp) const override
 
const Int_t FSTrackId (const UInt_t &igen, const UInt_t &ifsp) const override
 
void GetEntry (const UInt_t &ientry) override
 
- Public Member Functions inherited from garana::GenTree
virtual ~GenTree ()
 
const std::vector< Int_t > * GetGIndex () const
 whether or not subentry is GENIE interaction, index of GENIE interaction More...
 
bool NuInAV (const UInt_t &igen) const
 
bool NuInIV (const UInt_t &igen) const
 
bool NuInCalo (const UInt_t &igen) const
 
- Public Member Functions inherited from garana::TreeReader
virtual ~TreeReader ()
 
void SetupRead (TTree *tree)
 
TTree * GetInputTree ()
 
size_t NEntries () const
 
Int_t Event () const
 
const TObjArray * GetBranchList () const
 
void Fill ()
 
void Write ()
 
void CheckOpt (char opt)
 
bool BlockWrite () const
 

Protected Types

typedef UInt_t fsLimit
 
typedef fsLimit fsBegin
 
typedef fsLimit fsEnd
 

Protected Member Functions

bool SetBranchAddresses () override
 
void FindFSLimits ()
 
std::pair< UInt_t, UInt_t > FSParticlesFromGTruth (size_t igen) const
 
void SetVecs ()
 
void ClearVecs ()
 

Protected Attributes

vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
 
TLorentzVector fNuP
 
TLorentzVector fNuVertex
 
Int_t fNGen = -1
 
const vector< Int_t > * fGIndex = nullptr
 
vector< UInt_t > fNFSObj
 number of FSParticles for igen^th GTruth len=NGen More...
 
vector< UInt_t > fFSIndexObj
 
vector< UInt_t > fFSPdgObj
 particle PDG code More...
 
vector< Float_t > fFSPosXObj
 x-coordinate [cm] More...
 
vector< Float_t > fFSPosYObj
 y-coordinate [cm] More...
 
vector< Float_t > fFSPosZObj
 z-coordinate [cm] More...
 
vector< Float_t > fFSTObj
 time [ns] More...
 
vector< Float_t > fFSMomXObj
 momentum, x-component [GeV/c] More...
 
vector< Float_t > fFSMomYObj
 momentum, y-component [GeV/c] More...
 
vector< Float_t > fFSMomZObj
 momentum, z-component [GeV/c] More...
 
vector< Float_t > fFSEObj
 total energy [GeV] More...
 
vector< double > fNuXObj
 GTruth (one or more per genTree entry) //. More...
 
vector< double > fNuYObj
 
vector< double > fNuZObj
 
vector< double > fNuTObj
 
vector< double > fWeightObj
 
vector< double > fProbabilityObj
 
vector< double > fXsecObj
 
vector< double > fDiffXsecObj
 
vector< int > fGPhaseSpaceObj
 
vector< int > fProbePDGObj
 
vector< double > fProbePxObj
 
vector< double > fProbePyObj
 
vector< double > fProbePzObj
 
vector< double > fProbeEObj
 
vector< double > fTgtPxObj
 
vector< double > fTgtPyObj
 
vector< double > fTgtPzObj
 
vector< double > fTgtEObj
 
vector< int > fTgtZObj
 
vector< int > fTgtAObj
 
vector< int > fTgtPDGObj
 
vector< int > fHitNucPDGObj
 
vector< int > fHitQrkPDGObj
 
vector< boolfIsSeaQuarkObj
 
vector< double > fHitNucPxObj
 
vector< double > fHitNucPyObj
 
vector< double > fHitNucPzObj
 
vector< double > fHitNucEObj
 
vector< double > fHitNucPosObj
 
vector< int > fGscatterObj
 
vector< int > fGintObj
 
vector< double > fGQ2Obj
 
vector< double > fGq2Obj
 
vector< double > fGWObj
 
vector< double > fGTObj
 
vector< double > fGXObj
 
vector< double > fGYObj
 
vector< double > fFSleptonPxObj
 
vector< double > fFSleptonPyObj
 
vector< double > fFSleptonPzObj
 
vector< double > fFSleptonEObj
 
vector< double > fFShadSystPxObj
 
vector< double > fFShadSystPyObj
 
vector< double > fFShadSystPzObj
 
vector< double > fFShadSystEObj
 
vector< boolfIsCharmObj
 
vector< int > fCharmHadronPDGObj
 
vector< boolfIsStrangeObj
 
vector< int > fStrangeHadronPDGObj
 
vector< int > fNumProtonObj
 
vector< int > fNumNeutronObj
 
vector< int > fNumPi0Obj
 
vector< int > fNumPiPlusObj
 
vector< int > fNumPiMinusObj
 
vector< int > fResNumObj
 
vector< int > fDecayModeObj
 
vector< UInt_t > * fNFS = nullptr
 number of FSParticles for igen^th GTruth len=NGen More...
 
vector< UInt_t > * fFSIndex = nullptr
 
vector< UInt_t > * fFSTrackId = nullptr
 particle generator track ID More...
 
vector< UInt_t > * fFSPdg = nullptr
 particle PDG code More...
 
vector< Float_t > * fFSPosX = nullptr
 x-coordinate [cm] More...
 
vector< Float_t > * fFSPosY = nullptr
 y-coordinate [cm] More...
 
vector< Float_t > * fFSPosZ = nullptr
 z-coordinate [cm] More...
 
vector< Float_t > * fFST = nullptr
 time [ns] More...
 
vector< Float_t > * fFSMomX = nullptr
 momentum, x-component [GeV/c] More...
 
vector< Float_t > * fFSMomY = nullptr
 momentum, y-component [GeV/c] More...
 
vector< Float_t > * fFSMomZ = nullptr
 momentum, z-component [GeV/c] More...
 
vector< Float_t > * fFSE = nullptr
 total energy [GeV] More...
 
vector< double > * fNuX = nullptr
 GTruth (one or more per genTree entry) //. More...
 
vector< double > * fNuY = nullptr
 
vector< double > * fNuZ = nullptr
 
vector< double > * fNuT = nullptr
 
vector< int > * fNuRegion = nullptr
 
vector< double > * fWeight = nullptr
 
vector< double > * fProbability = nullptr
 
vector< double > * fXsec = nullptr
 
vector< double > * fDiffXsec = nullptr
 
vector< int > * fGPhaseSpace = nullptr
 
vector< int > * fProbePDG = nullptr
 
vector< double > * fProbePx = nullptr
 
vector< double > * fProbePy = nullptr
 
vector< double > * fProbePz = nullptr
 
vector< double > * fProbeE = nullptr
 
vector< double > * fTgtPx = nullptr
 
vector< double > * fTgtPy = nullptr
 
vector< double > * fTgtPz = nullptr
 
vector< double > * fTgtE = nullptr
 
vector< int > * fTgtZ = nullptr
 
vector< int > * fTgtA = nullptr
 
vector< int > * fTgtPDG = nullptr
 
vector< int > * fHitNucPDG = nullptr
 
vector< int > * fHitQrkPDG = nullptr
 
vector< bool > * fIsSeaQuark = nullptr
 
vector< double > * fHitNucPx = nullptr
 
vector< double > * fHitNucPy = nullptr
 
vector< double > * fHitNucPz = nullptr
 
vector< double > * fHitNucE = nullptr
 
vector< double > * fHitNucPos = nullptr
 
vector< int > * fGscatter = nullptr
 
vector< int > * fGint = nullptr
 
vector< double > * fGQ2 = nullptr
 
vector< double > * fGq2 = nullptr
 
vector< double > * fGW = nullptr
 
vector< double > * fGT = nullptr
 
vector< double > * fGX = nullptr
 
vector< double > * fGY = nullptr
 
vector< double > * fFSleptonPx = nullptr
 
vector< double > * fFSleptonPy = nullptr
 
vector< double > * fFSleptonPz = nullptr
 
vector< double > * fFSleptonE = nullptr
 
vector< double > * fFShadSystPx = nullptr
 
vector< double > * fFShadSystPy = nullptr
 
vector< double > * fFShadSystPz = nullptr
 
vector< double > * fFShadSystE = nullptr
 
vector< bool > * fIsCharm = nullptr
 
vector< int > * fCharmHadronPDG = nullptr
 
vector< bool > * fIsStrange = nullptr
 
vector< int > * fStrangeHadronPDG = nullptr
 
vector< int > * fNumProton = nullptr
 
vector< int > * fNumNeutron = nullptr
 
vector< int > * fNumPi0 = nullptr
 
vector< int > * fNumPiPlus = nullptr
 
vector< int > * fNumPiMinus = nullptr
 
vector< int > * fResNum = nullptr
 
vector< int > * fDecayMode = nullptr
 
TBranch * b_NGen = nullptr
 
TBranch * b_GIndex = nullptr
 
TBranch * b_NFS = nullptr
 
TBranch * b_FSIndex = nullptr
 
TBranch * b_FSPdg = nullptr
 
TBranch * b_FSPosX = nullptr
 
TBranch * b_FSPosY = nullptr
 
TBranch * b_FSPosZ = nullptr
 
TBranch * b_FST = nullptr
 
TBranch * b_FSMomX = nullptr
 
TBranch * b_FSMomY = nullptr
 
TBranch * b_FSMomZ = nullptr
 
TBranch * b_FSE = nullptr
 
TBranch * b_NuX = nullptr
 
TBranch * b_NuY = nullptr
 
TBranch * b_NuZ = nullptr
 
TBranch * b_NuT = nullptr
 
TBranch * b_NuRegion = nullptr
 
TBranch * b_Weight = nullptr
 
TBranch * b_Probability = nullptr
 
TBranch * b_Xsec = nullptr
 
TBranch * b_DiffXsec = nullptr
 
TBranch * b_GPhaseSpace = nullptr
 
TBranch * b_ProbePDG = nullptr
 
TBranch * b_ProbePx = nullptr
 
TBranch * b_ProbePy = nullptr
 
TBranch * b_ProbePz = nullptr
 
TBranch * b_ProbeE = nullptr
 
TBranch * b_TgtPx = nullptr
 
TBranch * b_TgtPy = nullptr
 
TBranch * b_TgtPz = nullptr
 
TBranch * b_TgtE = nullptr
 
TBranch * b_TgtZ = nullptr
 
TBranch * b_TgtA = nullptr
 
TBranch * b_TgtPDG = nullptr
 
TBranch * b_HitNucPDG = nullptr
 
TBranch * b_HitQrkPDG = nullptr
 
TBranch * b_IsSeaQuark = nullptr
 
TBranch * b_HitNucPx = nullptr
 
TBranch * b_HitNucPy = nullptr
 
TBranch * b_HitNucPz = nullptr
 
TBranch * b_HitNucE = nullptr
 
TBranch * b_HitNucPos = nullptr
 
TBranch * b_Gscatter = nullptr
 
TBranch * b_Gint = nullptr
 
TBranch * b_GQ2 = nullptr
 
TBranch * b_Gq2 = nullptr
 
TBranch * b_GW = nullptr
 
TBranch * b_GT = nullptr
 
TBranch * b_GX = nullptr
 
TBranch * b_GY = nullptr
 
TBranch * b_FSleptonPx = nullptr
 
TBranch * b_FSleptonPy = nullptr
 
TBranch * b_FSleptonPz = nullptr
 
TBranch * b_FSleptonE = nullptr
 
TBranch * b_FShadSystPx = nullptr
 
TBranch * b_FShadSystPy = nullptr
 
TBranch * b_FShadSystPz = nullptr
 
TBranch * b_FShadSystE = nullptr
 
TBranch * b_IsCharm = nullptr
 
TBranch * b_CharmHadronPDG = nullptr
 
TBranch * b_IsStrange = nullptr
 
TBranch * b_StrangeHadronPDG = nullptr
 
TBranch * b_NumProton = nullptr
 
TBranch * b_NumNeutron = nullptr
 
TBranch * b_NumPi0 = nullptr
 
TBranch * b_NumPiPlus = nullptr
 
TBranch * b_NumPiMinus = nullptr
 
TBranch * b_ResNum = nullptr
 
TBranch * b_DecayMode = nullptr
 
- Protected Attributes inherited from garana::GenTree
const std::vector< Int_t > * fGIndex = nullptr
 
TBranch * b_GIndex = nullptr
 
- Protected Attributes inherited from garana::TreeReader
const std::string treename
 
char fOpt = 'r'
 
TTree * fTreeIn = nullptr
 pointer to the analyzed TTree or TChain More...
 
UInt_t fCurrentEntry = UINT_MAX
 
TBranch * b_Event = nullptr
 
Int_t fEvent = -1
 event number for tree entry More...
 

Detailed Description

Definition at line 20 of file FlatGenTree.h.

Member Typedef Documentation

typedef fsLimit garana::FlatGenTree::fsBegin
protected

Definition at line 81 of file FlatGenTree.h.

typedef fsLimit garana::FlatGenTree::fsEnd
protected

Definition at line 82 of file FlatGenTree.h.

typedef UInt_t garana::FlatGenTree::fsLimit
protected

Definition at line 80 of file FlatGenTree.h.

Constructor & Destructor Documentation

garana::FlatGenTree::FlatGenTree ( )
inline

Definition at line 24 of file FlatGenTree.h.

24 {}
FlatGenTree::FlatGenTree ( TTree *  tree)

Definition at line 12 of file FlatGenTree.cxx.

13 {
14  SetupRead(tree);
15  fNuP.SetPxPyPzE(0.,0.,0.,0.);
16  fNuVertex.SetXYZT(0.,0.,0.,0.);
17 }
TLorentzVector fNuVertex
Definition: FlatGenTree.h:86
void SetupRead(TTree *tree)
Definition: TreeReader.cxx:6
TLorentzVector fNuP
Definition: FlatGenTree.h:85
FlatGenTree::FlatGenTree ( TTree *  tree,
char  opt 
)

Definition at line 19 of file FlatGenTree.cxx.

20 {
21  CheckOpt(opt);//sets TreeReader::fOpt
22 
23  if(fOpt=='r'){
24  std::cout << "constructed FlatGenTree object in read-only mode" << std::endl;
25  SetupRead(tree);
26  fNuP.SetPxPyPzE(0.,0.,0.,0.);
27  fNuVertex.SetXYZT(0.,0.,0.,0.);
28  FindFSLimits();
29  }
30  else {
31  std::cout << "constructed FlatGenTree object in write mode" << std::endl;
32  fTreeIn = tree;
33  SetVecs();
35  }
36 
37 }
opt
Definition: train.py:196
TTree * fTreeIn
pointer to the analyzed TTree or TChain
Definition: TreeReader.h:51
TLorentzVector fNuVertex
Definition: FlatGenTree.h:86
void CheckOpt(char opt)
Definition: TreeReader.cxx:67
void SetupRead(TTree *tree)
Definition: TreeReader.cxx:6
bool SetBranchAddresses() override
Definition: FlatGenTree.cxx:45
TLorentzVector fNuP
Definition: FlatGenTree.h:85
QTextStream & endl(QTextStream &s)

Member Function Documentation

void FlatGenTree::ClearVecs ( )
protected

Definition at line 528 of file FlatGenTree.cxx.

528  {
529 
530  fNFS->clear();
531  fFSIndex->clear();
532  fFSPdg->clear();
533  fFSPosX->clear();
534  fFSPosY->clear();
535  fFSPosZ->clear();
536  fFST->clear();
537  fFSMomX->clear();
538  fFSMomY->clear();
539  fFSMomZ->clear();
540  fFSE->clear();
541 
542  fNuX->clear();
543  fNuY->clear();
544  fNuZ->clear();
545  fNuT->clear();
546 
547  fWeight->clear();
548  fProbability->clear();
549  fXsec->clear();
550  fDiffXsec->clear();
551  fGPhaseSpace->clear();
552  fProbePDG->clear();
553 
554  fProbePx->clear();
555  fProbePy->clear();
556  fProbePz->clear();
557  fProbeE->clear();
558 
559  fTgtPx->clear();
560  fTgtPy->clear();
561  fTgtPz->clear();
562  fTgtE->clear();
563 
564  fTgtZ->clear();
565  fTgtA->clear();
566  fTgtPDG->clear();
567  fHitNucPDG->clear();
568  fHitQrkPDG->clear();
569  fIsSeaQuark->clear();
570 
571  fHitNucPx->clear();
572  fHitNucPy->clear();
573  fHitNucPz->clear();
574  fHitNucE->clear();
575  fHitNucPos->clear();
576 
577  fGscatter->clear();
578  fGint->clear();
579  fGQ2->clear();
580  fGq2->clear();
581  fGW->clear();
582  fGT->clear();
583  fGX->clear();
584  fGY->clear();
585 
586  fFSleptonPx->clear();
587  fFSleptonPy->clear();
588  fFSleptonPz->clear();
589  fFSleptonE ->clear();
590 
591  fFShadSystPx->clear();
592  fFShadSystPy->clear();
593  fFShadSystPz->clear();
594  fFShadSystE->clear();
595 
596  fIsCharm->clear();
597  fCharmHadronPDG->clear();
598  fIsStrange->clear();
599  fStrangeHadronPDG->clear();
600  fNumProton->clear();
601  fNumNeutron->clear();
602  fNumPi0->clear();
603  fNumPiPlus->clear();
604  fNumPiMinus->clear();
605  fResNum->clear();
606  fDecayMode->clear();
607 
608  }
vector< double > * fFShadSystPz
Definition: FlatGenTree.h:240
vector< double > * fHitNucPy
Definition: FlatGenTree.h:219
vector< double > * fTgtE
Definition: FlatGenTree.h:209
vector< int > * fNumPiPlus
Definition: FlatGenTree.h:250
vector< double > * fGq2
Definition: FlatGenTree.h:227
vector< double > * fFSleptonPz
Definition: FlatGenTree.h:235
vector< double > * fGY
Definition: FlatGenTree.h:231
vector< double > * fFSleptonPx
Definition: FlatGenTree.h:233
vector< Float_t > * fFSPosY
y-coordinate [cm]
Definition: FlatGenTree.h:179
vector< double > * fTgtPx
Definition: FlatGenTree.h:206
vector< double > * fGQ2
Definition: FlatGenTree.h:226
vector< int > * fTgtZ
Definition: FlatGenTree.h:211
vector< double > * fProbability
Definition: FlatGenTree.h:195
vector< double > * fHitNucPx
Definition: FlatGenTree.h:218
vector< bool > * fIsStrange
Definition: FlatGenTree.h:245
vector< double > * fFSleptonE
Definition: FlatGenTree.h:236
vector< Float_t > * fFST
time [ns]
Definition: FlatGenTree.h:181
vector< double > * fFShadSystE
Definition: FlatGenTree.h:241
vector< double > * fGT
Definition: FlatGenTree.h:229
vector< double > * fProbePz
Definition: FlatGenTree.h:203
vector< double > * fTgtPy
Definition: FlatGenTree.h:207
vector< Float_t > * fFSMomZ
momentum, z-component [GeV/c]
Definition: FlatGenTree.h:184
vector< double > * fDiffXsec
Definition: FlatGenTree.h:197
vector< double > * fGW
Definition: FlatGenTree.h:228
vector< int > * fResNum
Definition: FlatGenTree.h:252
vector< int > * fDecayMode
Definition: FlatGenTree.h:253
vector< int > * fGscatter
Definition: FlatGenTree.h:224
vector< Float_t > * fFSMomY
momentum, y-component [GeV/c]
Definition: FlatGenTree.h:183
vector< int > * fGint
Definition: FlatGenTree.h:225
vector< int > * fGPhaseSpace
Definition: FlatGenTree.h:198
vector< int > * fNumPi0
Definition: FlatGenTree.h:249
vector< UInt_t > * fNFS
number of FSParticles for igen^th GTruth len=NGen
Definition: FlatGenTree.h:174
vector< bool > * fIsCharm
Definition: FlatGenTree.h:243
vector< Float_t > * fFSMomX
momentum, x-component [GeV/c]
Definition: FlatGenTree.h:182
vector< double > * fFSleptonPy
Definition: FlatGenTree.h:234
vector< double > * fNuZ
Definition: FlatGenTree.h:190
vector< double > * fNuX
GTruth (one or more per genTree entry) //.
Definition: FlatGenTree.h:188
vector< int > * fHitQrkPDG
Definition: FlatGenTree.h:215
vector< int > * fTgtPDG
Definition: FlatGenTree.h:213
vector< UInt_t > * fFSIndex
Definition: FlatGenTree.h:175
vector< int > * fHitNucPDG
Definition: FlatGenTree.h:214
vector< Float_t > * fFSPosX
x-coordinate [cm]
Definition: FlatGenTree.h:178
vector< double > * fTgtPz
Definition: FlatGenTree.h:208
vector< int > * fStrangeHadronPDG
Definition: FlatGenTree.h:246
vector< double > * fFShadSystPx
Definition: FlatGenTree.h:238
vector< int > * fNumProton
Definition: FlatGenTree.h:247
vector< int > * fNumPiMinus
Definition: FlatGenTree.h:251
vector< bool > * fIsSeaQuark
Definition: FlatGenTree.h:216
vector< double > * fProbePx
Definition: FlatGenTree.h:201
vector< double > * fNuY
Definition: FlatGenTree.h:189
vector< int > * fProbePDG
Definition: FlatGenTree.h:199
vector< double > * fXsec
Definition: FlatGenTree.h:196
vector< UInt_t > * fFSPdg
particle PDG code
Definition: FlatGenTree.h:177
vector< int > * fNumNeutron
Definition: FlatGenTree.h:248
vector< double > * fGX
Definition: FlatGenTree.h:230
vector< double > * fProbePy
Definition: FlatGenTree.h:202
vector< Float_t > * fFSPosZ
z-coordinate [cm]
Definition: FlatGenTree.h:180
vector< Float_t > * fFSE
total energy [GeV]
Definition: FlatGenTree.h:185
vector< double > * fNuT
Definition: FlatGenTree.h:191
vector< double > * fHitNucPos
Definition: FlatGenTree.h:222
vector< double > * fFShadSystPy
Definition: FlatGenTree.h:239
vector< double > * fWeight
Definition: FlatGenTree.h:194
vector< int > * fTgtA
Definition: FlatGenTree.h:212
vector< double > * fHitNucE
Definition: FlatGenTree.h:221
vector< double > * fHitNucPz
Definition: FlatGenTree.h:220
vector< double > * fProbeE
Definition: FlatGenTree.h:204
vector< int > * fCharmHadronPDG
Definition: FlatGenTree.h:244
void FlatGenTree::FindFSLimits ( )
protected

Definition at line 406 of file FlatGenTree.cxx.

406  {
407 
408  if(fOpt!='r')
409  return;
410  std::cout << "FindFSLimits called" << std::endl;
411 
412  if(fGenToFSLimits.size()!=0){
413  std::cerr << "FlatGenTree::FindFSLimits: fGenToFSLimits has already been filled"
414  << std::endl;
415  return;
416  }
417 
418  //it should be the case that FSParticle vecs are filled consecutively for each igen
419  fsBegin beg = 0;
420  fsEnd end =0;
421  if(fNGen>0){
422  std::cout << "In FindFSLimits, about to loop over " << fNGen << " igen" << std::endl;
423  }
424  else {
425  std::cerr << "FlatGenTree::FindFSLimits: bad NGen ("
426  << fNGen << ")" << std::endl;
427  return;
428  }
429 
430  for(UInt_t igen=1; igen<(UInt_t)fNGen+1; igen++){
431 
432  end = fNFS->at(igen-1) - 1 + beg;
433  std::cout << "igen = " << igen << ", beg = " << beg
434  << ", end = " << end << ", NFS = "
435  << fNFS->back() << std::endl;;
436  std::pair<fsBegin,fsEnd> limits = {beg,end};
437  fGenToFSLimits.push_back(limits);
438 
439  if(igen<(UInt_t)fNGen)
440  beg = fNFS->at(igen);
441  }
442 
443  std::cout << "done with FSLimits." << std::endl;
444  }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
vector< UInt_t > * fNFS
number of FSParticles for igen^th GTruth len=NGen
Definition: FlatGenTree.h:174
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
QTextStream & endl(QTextStream &s)
const Float_t FlatGenTree::FSEnergy ( const UInt_t &  igen,
const UInt_t &  ifsp 
) const
overridevirtual

Implements garana::GenTree.

Definition at line 385 of file FlatGenTree.cxx.

385  {
386  return fFSE->at(fGenToFSLimits[igen].first+ifsp);
387 }
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
vector< Float_t > * fFSE
total energy [GeV]
Definition: FlatGenTree.h:185
const TLorentzVector * FlatGenTree::FSHadSystP4 ( const UInt_t &  igen) const
overridevirtual

final state hadronic system 4-momentum(LAB frame)

particle multiplicities (before FSI)

Implements garana::GenTree.

Definition at line 350 of file FlatGenTree.cxx.

350  {
351  const TLorentzVector* v = new TLorentzVector(fFShadSystPx->at(igen),fFShadSystPy->at(igen),
352  fFShadSystPz->at(igen), fFShadSystE->at(igen));
353  return v;
354 }
vector< double > * fFShadSystPz
Definition: FlatGenTree.h:240
vector< double > * fFShadSystE
Definition: FlatGenTree.h:241
vector< double > * fFShadSystPx
Definition: FlatGenTree.h:238
vector< double > * fFShadSystPy
Definition: FlatGenTree.h:239
const TLorentzVector * FlatGenTree::FSLeptonP4 ( const UInt_t &  igen) const
overridevirtual

final state primary lepton 4-momentum (LAB frame)

Implements garana::GenTree.

Definition at line 344 of file FlatGenTree.cxx.

344  {
345  const TLorentzVector* v = new TLorentzVector(fFSleptonPx->at(igen),fFSleptonPy->at(igen),
346  fFSleptonPz->at(igen), fFSleptonE->at(igen));
347  return v;
348 }
vector< double > * fFSleptonPz
Definition: FlatGenTree.h:235
vector< double > * fFSleptonPx
Definition: FlatGenTree.h:233
vector< double > * fFSleptonE
Definition: FlatGenTree.h:236
vector< double > * fFSleptonPy
Definition: FlatGenTree.h:234
std::pair< UInt_t, UInt_t > FlatGenTree::FSParticlesFromGTruth ( size_t  igen) const
protected

Definition at line 397 of file FlatGenTree.cxx.

397  {
398 
399  if(fGenToFSLimits.size()==0)
400  return {UINT_MAX,UINT_MAX};
401 
402  return fGenToFSLimits[igen];
403 
404  }
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
const Float_t FlatGenTree::FSPDG ( const UInt_t &  igen,
const UInt_t &  ifsp 
) const
overridevirtual

Implements garana::GenTree.

Definition at line 389 of file FlatGenTree.cxx.

389  {
390  return fFSPdg->at(fGenToFSLimits[igen].first+ifsp);
391 }
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
vector< UInt_t > * fFSPdg
particle PDG code
Definition: FlatGenTree.h:177
const Float_t FlatGenTree::FSTotEnergy ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 376 of file FlatGenTree.cxx.

376  {
377 
378  Float_t e = 0.;
379  for(UInt_t i = fGenToFSLimits[igen].first; i < fGenToFSLimits[igen].second + 1; i++){
380  e += fFSE->at(i);
381  }
382  return e;
383 }
const double e
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
vector< Float_t > * fFSE
total energy [GeV]
Definition: FlatGenTree.h:185
const Int_t FlatGenTree::FSTrackId ( const UInt_t &  igen,
const UInt_t &  ifsp 
) const
overridevirtual

GENIE specific neutrino info

Implements garana::GenTree.

Definition at line 393 of file FlatGenTree.cxx.

393  {
394  return fFSTrackId->at(fGenToFSLimits[igen].first+ifsp);
395 }
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
vector< UInt_t > * fFSTrackId
particle generator track ID
Definition: FlatGenTree.h:176
void FlatGenTree::GetEntry ( const UInt_t &  ientry)
overridevirtual

Reimplemented from garana::TreeReader.

Definition at line 39 of file FlatGenTree.cxx.

39  {
40  this->fGenToFSLimits.clear();
41  fTreeIn->GetEntry(entry);
42  this->FindFSLimits();
43 }
QList< Entry > entry
TTree * fTreeIn
pointer to the analyzed TTree or TChain
Definition: TreeReader.h:51
vector< std::pair< fsBegin, fsEnd > > fGenToFSLimits
Definition: FlatGenTree.h:83
const TLorentzVector * FlatGenTree::HitNucP4 ( const UInt_t &  igen) const
overridevirtual

hit nucleon (initial) 4-momentum

kinematics

Implements garana::GenTree.

Definition at line 314 of file FlatGenTree.cxx.

314  {
315  const TLorentzVector* v = new TLorentzVector(fHitNucPx->at(igen),fHitNucPy->at(igen),
316  fHitNucPz->at(igen), fHitNucE->at(igen));
317  return v;
318 }
vector< double > * fHitNucPy
Definition: FlatGenTree.h:219
vector< double > * fHitNucPx
Definition: FlatGenTree.h:218
vector< double > * fHitNucE
Definition: FlatGenTree.h:221
vector< double > * fHitNucPz
Definition: FlatGenTree.h:220
const int FlatGenTree::HitNucPDG ( const UInt_t &  igen) const
overridevirtual

hit nucleon PDG code

Implements garana::GenTree.

Definition at line 310 of file FlatGenTree.cxx.

310  {
311  return fHitNucPDG->at(igen);
312 }
vector< int > * fHitNucPDG
Definition: FlatGenTree.h:214
const int FlatGenTree::InteractCode ( const UInt_t &  igen) const
overridevirtual

GENIE interaction code.

target info

Implements garana::GenTree.

Definition at line 288 of file FlatGenTree.cxx.

288  {
289  return fGint->at(igen);
290 }
vector< int > * fGint
Definition: FlatGenTree.h:225
const Bool_t FlatGenTree::IsCC ( const UInt_t &  igen) const
overridevirtual

whether interaction is CC or not

Implements garana::GenTree.

Definition at line 247 of file FlatGenTree.cxx.

247  {
248 
249  if(IsGenie(igen))
250  return fGint->at(igen) == 2;
251 
252  return kFALSE;
253 }
const Bool_t IsGenie(const UInt_t &igen) const override
vector< int > * fGint
Definition: FlatGenTree.h:225
const Bool_t FlatGenTree::IsGenie ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 239 of file FlatGenTree.cxx.

239  {
240 
241  if (fGIndex->at(igen) >-1)
242  return kTRUE;
243  else
244  return kFALSE;
245 }
const vector< Int_t > * fGIndex
Definition: FlatGenTree.h:90
const UInt_t FlatGenTree::NFSParticles ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 235 of file FlatGenTree.cxx.

235  {
236  return fNFS->at(igen);
237 }
vector< UInt_t > * fNFS
number of FSParticles for igen^th GTruth len=NGen
Definition: FlatGenTree.h:174
const UInt_t FlatGenTree::NGen ( ) const
overridevirtual

Implements garana::GenTree.

Definition at line 231 of file FlatGenTree.cxx.

231  {
232  return fNGen;
233 }
const int FlatGenTree::NumNuNeutron ( const UInt_t &  igen) const
overridevirtual

number of neutrons after reaction, before FSI

Implements garana::GenTree.

Definition at line 360 of file FlatGenTree.cxx.

360  {
361  return fNumNeutron->at(igen);
362 }
vector< int > * fNumNeutron
Definition: FlatGenTree.h:248
const int FlatGenTree::NumNuPi0 ( const UInt_t &  igen) const
overridevirtual

number of pi0 after reaction, before FSI

Implements garana::GenTree.

Definition at line 364 of file FlatGenTree.cxx.

364  {
365  return fNumPi0->at(igen);
366 }
vector< int > * fNumPi0
Definition: FlatGenTree.h:249
const int FlatGenTree::NumNuPiMinus ( const UInt_t &  igen) const
overridevirtual

number of pi minuses after reaction, before FSI

Implements garana::GenTree.

Definition at line 372 of file FlatGenTree.cxx.

372  {
373  return fNumPiMinus->at(igen);
374 }
vector< int > * fNumPiMinus
Definition: FlatGenTree.h:251
const int FlatGenTree::NumNuPiPlus ( const UInt_t &  igen) const
overridevirtual

number of pi pluses after reaction, before FSI

Implements garana::GenTree.

Definition at line 368 of file FlatGenTree.cxx.

368  {
369  return fNumPiPlus->at(igen);
370 }
vector< int > * fNumPiPlus
Definition: FlatGenTree.h:250
const int FlatGenTree::NumNuProton ( const UInt_t &  igen) const
overridevirtual

number of protons after reaction, before FSI

Implements garana::GenTree.

Definition at line 356 of file FlatGenTree.cxx.

356  {
357  return fNumProton->at(igen);
358 }
vector< int > * fNumProton
Definition: FlatGenTree.h:247
const TLorentzVector * FlatGenTree::NuP ( const UInt_t &  igen)
overridevirtual

initial neutrino 4-momentum

Implements garana::GenTree.

Definition at line 263 of file FlatGenTree.cxx.

263  {
264 
265  if(!IsGenie(igen))
266  return nullptr;
267 
268  fNuP.SetPxPyPzE(fProbePx->at(igen), fProbePy->at(igen),
269  fProbePz->at(igen), fProbeE->at(igen));
270  return &fNuP;
271 }
vector< double > * fProbePz
Definition: FlatGenTree.h:203
const Bool_t IsGenie(const UInt_t &igen) const override
vector< double > * fProbePx
Definition: FlatGenTree.h:201
TLorentzVector fNuP
Definition: FlatGenTree.h:85
vector< double > * fProbePy
Definition: FlatGenTree.h:202
vector< double > * fProbeE
Definition: FlatGenTree.h:204
const Int_t FlatGenTree::NuPDG ( const UInt_t &  igen) const
overridevirtual

neutrino PDG code

Implements garana::GenTree.

Definition at line 259 of file FlatGenTree.cxx.

259  {
260  return fProbePDG->at(igen);
261 }
vector< int > * fProbePDG
Definition: FlatGenTree.h:199
const int FlatGenTree::NuRegion ( const UInt_t &  igen) const
overridevirtual

region code where the vertex is located

Implements garana::GenTree.

Definition at line 255 of file FlatGenTree.cxx.

255  {
256  return fNuRegion->at(igen);
257 }
vector< int > * fNuRegion
Definition: FlatGenTree.h:192
const TLorentzVector * FlatGenTree::NuVertex ( const UInt_t &  igen)
overridevirtual

4-position of neutrino vertex

Implements garana::GenTree.

Definition at line 273 of file FlatGenTree.cxx.

273  {
274 
275  if(!IsGenie(igen))
276  return nullptr;
277 
278  fNuVertex.SetXYZT(fNuX->at(igen), fNuY->at(igen),
279  fNuZ->at(igen), fNuT->at(igen));
280 
281  return &fNuVertex;
282 }
TLorentzVector fNuVertex
Definition: FlatGenTree.h:86
const Bool_t IsGenie(const UInt_t &igen) const override
vector< double > * fNuZ
Definition: FlatGenTree.h:190
vector< double > * fNuX
GTruth (one or more per genTree entry) //.
Definition: FlatGenTree.h:188
vector< double > * fNuY
Definition: FlatGenTree.h:189
vector< double > * fNuT
Definition: FlatGenTree.h:191
const double FlatGenTree::Q2 ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 320 of file FlatGenTree.cxx.

320  {
321  return fGQ2->at(igen);
322 }
vector< double > * fGQ2
Definition: FlatGenTree.h:226
const double FlatGenTree::q2 ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 324 of file FlatGenTree.cxx.

324  {
325  return fGq2->at(igen);
326 }
vector< double > * fGq2
Definition: FlatGenTree.h:227
const int FlatGenTree::ScatterCode ( const UInt_t &  igen) const
overridevirtual

GENIE neutrino scattering code.

Implements garana::GenTree.

Definition at line 284 of file FlatGenTree.cxx.

284  {
285  return fGscatter->at(igen);
286 }
vector< int > * fGscatter
Definition: FlatGenTree.h:224
bool FlatGenTree::SetBranchAddresses ( )
overrideprotectedvirtual

Implements garana::TreeReader.

Definition at line 45 of file FlatGenTree.cxx.

45  {
46 
47 std::cout << "FlatGenTree SetBranchAddresses()" << std::endl;
48 
49  if(fOpt=='r'){
50  fTreeIn->SetBranchAddress("Event", &fEvent, &b_Event );
51  fTreeIn->SetBranchAddress("NGen", &fNGen, &b_NGen );
52  fTreeIn->SetBranchAddress("GIndex", &fGIndex, &b_GIndex );
53  //fTreeIn->SetBranchAddress("FSIndex", &fFSIndex, &b_FSIndex );
54 
55 
56  //FSParticles
57  fTreeIn->SetBranchAddress("NFSParticle", &fNFS, &b_NFS );
58  fTreeIn->SetBranchAddress("FSParticleIndex", &fFSIndex, &b_FSIndex );
59  fTreeIn->SetBranchAddress("FSParticlePDG", &fFSPdg, &b_FSPdg );
60  fTreeIn->SetBranchAddress("FSParticleX", &fFSPosX, &b_FSPosX );
61  fTreeIn->SetBranchAddress("FSParticleY", &fFSPosY, &b_FSPosY );
62  fTreeIn->SetBranchAddress("FSParticleZ", &fFSPosZ, &b_FSPosZ );
63  fTreeIn->SetBranchAddress("FSParticleT", &fFST, &b_FST );
64  fTreeIn->SetBranchAddress("FSParticlePx", &fFSMomX, &b_FSMomX );
65  fTreeIn->SetBranchAddress("FSParticlePy", &fFSMomY, &b_FSMomY );
66  fTreeIn->SetBranchAddress("FSParticlePz", &fFSMomZ, &b_FSMomZ );
67  fTreeIn->SetBranchAddress("FSParticleE", &fFSE , &b_FSE );
68 
69  //GTruth
70  fTreeIn->SetBranchAddress("GNuX", &fNuX, &b_NuX );
71  fTreeIn->SetBranchAddress("GNuY", &fNuY, &b_NuY );
72  fTreeIn->SetBranchAddress("GNuZ", &fNuZ, &b_NuZ );
73  fTreeIn->SetBranchAddress("GNuT", &fNuT, &b_NuT );
74  fTreeIn->SetBranchAddress("GNuRegion", &fNuRegion, &b_NuRegion );
75 
76  fTreeIn->SetBranchAddress("GWeight", &fWeight, &b_Weight );
77  fTreeIn->SetBranchAddress("GProbability", &fProbability, &b_Probability );
78  fTreeIn->SetBranchAddress("GXsec", &fXsec, &b_Xsec );
79  fTreeIn->SetBranchAddress("GDiffXsec", &fDiffXsec, &b_DiffXsec );
80  fTreeIn->SetBranchAddress("GGPhaseSpace", &fGPhaseSpace, &b_GPhaseSpace );
81  fTreeIn->SetBranchAddress("GProbePDG", &fProbePDG, &b_ProbePDG );
82 
83  fTreeIn->SetBranchAddress("GProbePx", &fProbePx, &b_ProbePx );
84  fTreeIn->SetBranchAddress("GProbePy", &fProbePy, &b_ProbePy );
85  fTreeIn->SetBranchAddress("GProbePz", &fProbePz, &b_ProbePz );
86  fTreeIn->SetBranchAddress("GProbeE ", &fProbeE , &b_ProbeE );
87 
88  fTreeIn->SetBranchAddress("GTgtPx", &fTgtPx, &b_TgtPx );
89  fTreeIn->SetBranchAddress("GTgtPy", &fTgtPy, &b_TgtPy );
90  fTreeIn->SetBranchAddress("GTgtPz", &fTgtPz, &b_TgtPz );
91  fTreeIn->SetBranchAddress("GTgtE ", &fTgtE , &b_TgtE );
92 
93  fTreeIn->SetBranchAddress("GTgtZ", &fTgtZ, &b_TgtZ );
94  fTreeIn->SetBranchAddress("GTgtA", &fTgtA, &b_TgtA );
95  fTreeIn->SetBranchAddress("GTgtPDG", &fTgtPDG, &b_TgtPDG );
96  fTreeIn->SetBranchAddress("GHitNucPDG ", &fHitNucPDG, &b_HitNucPDG );
97  fTreeIn->SetBranchAddress("GHitQrkPDG ", &fHitQrkPDG, &b_HitQrkPDG );
98  fTreeIn->SetBranchAddress("GIsSeaQuark", &fIsSeaQuark, &b_IsSeaQuark );
99 
100  fTreeIn->SetBranchAddress("GHitNucPx", &fHitNucPx, &b_HitNucPx );
101  fTreeIn->SetBranchAddress("GHitNucPy", &fHitNucPy, &b_HitNucPy );
102  fTreeIn->SetBranchAddress("GHitNucPz", &fHitNucPz, &b_HitNucPz );
103  fTreeIn->SetBranchAddress("GHitNucE", &fHitNucE, &b_HitNucE );
104  fTreeIn->SetBranchAddress("GHitNucPos", &fHitNucPos, &b_HitNucPos );
105 
106  fTreeIn->SetBranchAddress("GGscatter", &fGscatter, &b_Gscatter );
107  fTreeIn->SetBranchAddress("GGint", &fGint, &b_Gint );
108  fTreeIn->SetBranchAddress("GGQ2", &fGQ2, &b_GQ2 );
109  fTreeIn->SetBranchAddress("GGq2", &fGq2, &b_Gq2 );
110  fTreeIn->SetBranchAddress("GGW", &fGW, &b_GW );
111  fTreeIn->SetBranchAddress("GGT", &fGT, &b_GT );
112  fTreeIn->SetBranchAddress("GGX", &fGX, &b_GX );
113  fTreeIn->SetBranchAddress("GGY", &fGY, &b_GY );
114 
115  fTreeIn->SetBranchAddress("GFSleptonPx", &fFSleptonPx, &b_FSleptonPx );
116  fTreeIn->SetBranchAddress("GFSleptonPy", &fFSleptonPy, &b_FSleptonPy );
117  fTreeIn->SetBranchAddress("GFSleptonPz", &fFSleptonPz, &b_FSleptonPz );
118  fTreeIn->SetBranchAddress("GFSleptonE", &fFSleptonE , &b_FSleptonE );
119 
120  fTreeIn->SetBranchAddress("GFShadSystPx", &fFShadSystPx, &b_FShadSystPx );
121  fTreeIn->SetBranchAddress("GFShadSystPy", &fFShadSystPy, &b_FShadSystPy );
122  fTreeIn->SetBranchAddress("GFShadSystPz", &fFShadSystPz, &b_FShadSystPz );
123  fTreeIn->SetBranchAddress("GFShadSystE", &fFShadSystE , &b_FShadSystE );
124 
125  fTreeIn->SetBranchAddress("GIsCharm", &fIsCharm, &b_IsCharm );
126  fTreeIn->SetBranchAddress("GCharmHadronPDG", &fCharmHadronPDG, &b_CharmHadronPDG );
127  fTreeIn->SetBranchAddress("GIsStrange", &fIsStrange, &b_IsStrange );
128  fTreeIn->SetBranchAddress("GStrangeHadronPDG", &fStrangeHadronPDG, &b_StrangeHadronPDG);
129  fTreeIn->SetBranchAddress("GNumProton", &fNumProton, &b_NumProton );
130  fTreeIn->SetBranchAddress("GNumNeutron", &fNumNeutron, &b_NumNeutron );
131  fTreeIn->SetBranchAddress("GNumPi0", &fNumPi0, &b_NumPi0 );
132  fTreeIn->SetBranchAddress("GNumPiPlus", &fNumPiPlus, &b_NumPiPlus );
133  fTreeIn->SetBranchAddress("GNumPiMinus", &fNumPiMinus, &b_NumPiMinus );
134  fTreeIn->SetBranchAddress("GResNum", &fResNum, &b_ResNum );
135  fTreeIn->SetBranchAddress("GDecayMode", &fDecayMode, &b_DecayMode );
136  }
137 
138 
139  if(fOpt=='w'){
140 
141  fTreeIn->Branch("Event", &fEvent, "Event/I");
142  fTreeIn->Branch("NGen", &fNGen, "NGen/I");
143  fTreeIn->Branch("GIndex", &fGIndex );
144 
145  //FSParticlees
146  fTreeIn->Branch("NFSParticle", &fNFS );
147  fTreeIn->Branch("FSParticleIndex", &fFSIndex );
148  fTreeIn->Branch("FSParticlePDG", &fFSPdg );
149  fTreeIn->Branch("FSParticleX", &fFSPosX );
150  fTreeIn->Branch("FSParticleY", &fFSPosY );
151  fTreeIn->Branch("FSParticleZ", &fFSPosZ );
152  fTreeIn->Branch("FSParticleT", &fFST );
153  fTreeIn->Branch("FSParticlePx", &fFSMomX );
154  fTreeIn->Branch("FSParticlePy", &fFSMomY );
155  fTreeIn->Branch("FSParticlePz", &fFSMomZ );
156  fTreeIn->Branch("FSParticleE", &fFSE );
157 
158  //GTruth
159  fTreeIn->Branch("GNuX", &fNuXObj );
160  fTreeIn->Branch("GNuY", &fNuYObj );
161  fTreeIn->Branch("GNuZ", &fNuZObj );
162  fTreeIn->Branch("GNuT", &fNuTObj );
163  fTreeIn->Branch("GNuRegion", &fNuVertex ); //TODO check if need obj
164 
165  fTreeIn->Branch("GWeight", &fWeightObj );
166  fTreeIn->Branch("GProbability", &fProbabilityObj );
167  fTreeIn->Branch("GXsec", &fXsecObj );
168  fTreeIn->Branch("GDiffXsec", &fDiffXsecObj );
169  fTreeIn->Branch("GGPhaseSpace", &fGPhaseSpaceObj );
170  fTreeIn->Branch("GProbePDG", &fProbePDGObj );
171 
172  fTreeIn->Branch("GProbePx", &fProbePxObj );
173  fTreeIn->Branch("GProbePy", &fProbePyObj );
174  fTreeIn->Branch("GProbePz", &fProbePzObj );
175  fTreeIn->Branch("GProbeE ", &fProbeEObj );
176 
177  fTreeIn->Branch("GTgtPx", &fTgtPxObj );
178  fTreeIn->Branch("GTgtPy", &fTgtPyObj );
179  fTreeIn->Branch("GTgtPz", &fTgtPzObj );
180  fTreeIn->Branch("GTgtE ", &fTgtEObj );
181 
182  fTreeIn->Branch("GTgtZ", &fTgtZObj );
183  fTreeIn->Branch("GTgtA", &fTgtAObj );
184  fTreeIn->Branch("GTgtPDG", &fTgtPDGObj );
185  fTreeIn->Branch("GHitNucPDG ", &fHitNucPDGObj );
186  fTreeIn->Branch("GHitQrkPDG ", &fHitQrkPDGObj );
187  fTreeIn->Branch("GIsSeaQuark", &fIsSeaQuarkObj );
188 
189  fTreeIn->Branch("GHitNucPx", &fHitNucPxObj );
190  fTreeIn->Branch("GHitNucPy", &fHitNucPyObj );
191  fTreeIn->Branch("GHitNucPz", &fHitNucPzObj );
192  fTreeIn->Branch("GHitNucE", &fHitNucEObj );
193  fTreeIn->Branch("GHitNucPos", &fHitNucPosObj );
194 
195  fTreeIn->Branch("GGscatter", &fGscatterObj );
196  fTreeIn->Branch("GGint", &fGintObj );
197  fTreeIn->Branch("GGQ2", &fGQ2Obj );
198  fTreeIn->Branch("GGq2", &fGq2Obj );
199  fTreeIn->Branch("GGW", &fGWObj );
200  fTreeIn->Branch("GGT", &fGTObj );
201  fTreeIn->Branch("GGX", &fGXObj );
202  fTreeIn->Branch("GGY", &fGYObj );
203 
204  fTreeIn->Branch("GFSleptonPx", &fFSleptonPxObj );
205  fTreeIn->Branch("GFSleptonPy", &fFSleptonPyObj );
206  fTreeIn->Branch("GFSleptonPz", &fFSleptonPzObj );
207  fTreeIn->Branch("GFSleptonE", &fFSleptonEObj );
208 
209  fTreeIn->Branch("GFShadSystPx", &fFShadSystPxObj );
210  fTreeIn->Branch("GFShadSystPy", &fFShadSystPyObj );
211  fTreeIn->Branch("GFShadSystPz", &fFShadSystPzObj );
212  fTreeIn->Branch("GFShadSystE", &fFShadSystEObj );
213 
214  fTreeIn->Branch("GIsCharm", &fIsCharmObj );
215  fTreeIn->Branch("GCharmHadronPDG", &fCharmHadronPDGObj );
216  fTreeIn->Branch("GIsStrange", &fIsStrangeObj );
217  fTreeIn->Branch("GStrangeHadronPDG", &fStrangeHadronPDGObj);
218  fTreeIn->Branch("GNumProton", &fNumProtonObj );
219  fTreeIn->Branch("GNumNeutron", &fNumNeutronObj );
220  fTreeIn->Branch("GNumPi0", &fNumPi0Obj );
221  fTreeIn->Branch("GNumPiPlus", &fNumPiPlusObj );
222  fTreeIn->Branch("GNumPiMinus", &fNumPiMinusObj );
223  fTreeIn->Branch("GResNum", &fResNumObj );
224  fTreeIn->Branch("GDecayMode", &fDecayModeObj );
225  }
226 
227  return true;
228 }
vector< double > fFShadSystEObj
Definition: FlatGenTree.h:158
vector< double > fTgtEObj
Definition: FlatGenTree.h:126
vector< int > fTgtZObj
Definition: FlatGenTree.h:128
vector< double > * fFShadSystPz
Definition: FlatGenTree.h:240
vector< double > fTgtPyObj
Definition: FlatGenTree.h:124
vector< double > * fHitNucPy
Definition: FlatGenTree.h:219
vector< double > fFShadSystPyObj
Definition: FlatGenTree.h:156
vector< int > fResNumObj
Definition: FlatGenTree.h:169
vector< int > fNumPiMinusObj
Definition: FlatGenTree.h:168
vector< double > * fTgtE
Definition: FlatGenTree.h:209
vector< int > * fNumPiPlus
Definition: FlatGenTree.h:250
TBranch * b_NumProton
Definition: FlatGenTree.h:330
vector< double > fProbePzObj
Definition: FlatGenTree.h:120
TBranch * b_HitNucPy
Definition: FlatGenTree.h:302
TBranch * b_HitNucPos
Definition: FlatGenTree.h:305
vector< double > fFSleptonPxObj
Definition: FlatGenTree.h:150
vector< double > * fGq2
Definition: FlatGenTree.h:227
vector< double > fHitNucPyObj
Definition: FlatGenTree.h:136
TBranch * b_Gscatter
Definition: FlatGenTree.h:307
vector< double > fFShadSystPxObj
Definition: FlatGenTree.h:155
vector< double > fGWObj
Definition: FlatGenTree.h:145
vector< double > * fFSleptonPz
Definition: FlatGenTree.h:235
vector< double > * fGY
Definition: FlatGenTree.h:231
vector< double > fHitNucPosObj
Definition: FlatGenTree.h:139
TBranch * b_FSleptonPz
Definition: FlatGenTree.h:318
TBranch * b_FShadSystPx
Definition: FlatGenTree.h:321
const vector< Int_t > * fGIndex
Definition: FlatGenTree.h:90
vector< int > fHitNucPDGObj
Definition: FlatGenTree.h:131
vector< double > fWeightObj
Definition: FlatGenTree.h:111
vector< int > fGscatterObj
Definition: FlatGenTree.h:141
vector< int > fGintObj
Definition: FlatGenTree.h:142
vector< double > fFShadSystPzObj
Definition: FlatGenTree.h:157
vector< double > fHitNucEObj
Definition: FlatGenTree.h:138
vector< double > * fFSleptonPx
Definition: FlatGenTree.h:233
vector< Float_t > * fFSPosY
y-coordinate [cm]
Definition: FlatGenTree.h:179
vector< double > * fTgtPx
Definition: FlatGenTree.h:206
vector< double > * fGQ2
Definition: FlatGenTree.h:226
TBranch * b_HitNucPz
Definition: FlatGenTree.h:303
vector< int > * fTgtZ
Definition: FlatGenTree.h:211
vector< int > fNumNeutronObj
Definition: FlatGenTree.h:165
vector< int > fCharmHadronPDGObj
Definition: FlatGenTree.h:161
vector< double > * fProbability
Definition: FlatGenTree.h:195
vector< double > fNuYObj
Definition: FlatGenTree.h:107
vector< double > * fHitNucPx
Definition: FlatGenTree.h:218
vector< double > fGYObj
Definition: FlatGenTree.h:148
TTree * fTreeIn
pointer to the analyzed TTree or TChain
Definition: TreeReader.h:51
vector< double > fDiffXsecObj
Definition: FlatGenTree.h:114
TBranch * b_FSleptonPx
Definition: FlatGenTree.h:316
vector< int > fStrangeHadronPDGObj
Definition: FlatGenTree.h:163
vector< bool > * fIsStrange
Definition: FlatGenTree.h:245
TBranch * b_IsStrange
Definition: FlatGenTree.h:328
vector< double > fGq2Obj
Definition: FlatGenTree.h:144
vector< int > fHitQrkPDGObj
Definition: FlatGenTree.h:132
TLorentzVector fNuVertex
Definition: FlatGenTree.h:86
vector< double > fTgtPzObj
Definition: FlatGenTree.h:125
vector< double > * fFSleptonE
Definition: FlatGenTree.h:236
TBranch * b_FShadSystE
Definition: FlatGenTree.h:324
vector< Float_t > * fFST
time [ns]
Definition: FlatGenTree.h:181
vector< double > * fFShadSystE
Definition: FlatGenTree.h:241
TBranch * b_HitQrkPDG
Definition: FlatGenTree.h:298
vector< double > fProbabilityObj
Definition: FlatGenTree.h:112
vector< double > fTgtPxObj
Definition: FlatGenTree.h:123
vector< double > * fGT
Definition: FlatGenTree.h:229
vector< double > * fProbePz
Definition: FlatGenTree.h:203
vector< double > fHitNucPzObj
Definition: FlatGenTree.h:137
vector< double > fGTObj
Definition: FlatGenTree.h:146
vector< double > * fTgtPy
Definition: FlatGenTree.h:207
TBranch * b_NumNeutron
Definition: FlatGenTree.h:331
vector< Float_t > * fFSMomZ
momentum, z-component [GeV/c]
Definition: FlatGenTree.h:184
vector< double > * fDiffXsec
Definition: FlatGenTree.h:197
vector< double > * fGW
Definition: FlatGenTree.h:228
vector< int > * fResNum
Definition: FlatGenTree.h:252
vector< double > fFSleptonPzObj
Definition: FlatGenTree.h:152
vector< int > * fDecayMode
Definition: FlatGenTree.h:253
vector< double > fProbePyObj
Definition: FlatGenTree.h:119
vector< int > * fGscatter
Definition: FlatGenTree.h:224
vector< double > fHitNucPxObj
Definition: FlatGenTree.h:135
TBranch * b_NumPiPlus
Definition: FlatGenTree.h:333
vector< Float_t > * fFSMomY
momentum, y-component [GeV/c]
Definition: FlatGenTree.h:183
vector< int > * fGint
Definition: FlatGenTree.h:225
vector< int > * fGPhaseSpace
Definition: FlatGenTree.h:198
vector< int > fTgtAObj
Definition: FlatGenTree.h:129
vector< double > fNuXObj
GTruth (one or more per genTree entry) //.
Definition: FlatGenTree.h:106
vector< int > * fNumPi0
Definition: FlatGenTree.h:249
vector< int > fNumProtonObj
Definition: FlatGenTree.h:164
TBranch * b_GPhaseSpace
Definition: FlatGenTree.h:281
TBranch * b_FSleptonE
Definition: FlatGenTree.h:319
vector< UInt_t > * fNFS
number of FSParticles for igen^th GTruth len=NGen
Definition: FlatGenTree.h:174
vector< int > fTgtPDGObj
Definition: FlatGenTree.h:130
TBranch * b_DecayMode
Definition: FlatGenTree.h:336
vector< double > fXsecObj
Definition: FlatGenTree.h:113
vector< int > fGPhaseSpaceObj
Definition: FlatGenTree.h:115
vector< bool > * fIsCharm
Definition: FlatGenTree.h:243
vector< Float_t > * fFSMomX
momentum, x-component [GeV/c]
Definition: FlatGenTree.h:182
vector< double > * fFSleptonPy
Definition: FlatGenTree.h:234
vector< double > * fNuZ
Definition: FlatGenTree.h:190
vector< bool > fIsStrangeObj
Definition: FlatGenTree.h:162
vector< int > * fNuRegion
Definition: FlatGenTree.h:192
TBranch * b_StrangeHadronPDG
Definition: FlatGenTree.h:329
TBranch * b_FSleptonPy
Definition: FlatGenTree.h:317
vector< double > fGQ2Obj
Definition: FlatGenTree.h:143
vector< double > * fNuX
GTruth (one or more per genTree entry) //.
Definition: FlatGenTree.h:188
vector< int > * fHitQrkPDG
Definition: FlatGenTree.h:215
vector< double > fGXObj
Definition: FlatGenTree.h:147
TBranch * b_HitNucPx
Definition: FlatGenTree.h:301
vector< int > * fTgtPDG
Definition: FlatGenTree.h:213
vector< UInt_t > * fFSIndex
Definition: FlatGenTree.h:175
vector< int > * fHitNucPDG
Definition: FlatGenTree.h:214
vector< Float_t > * fFSPosX
x-coordinate [cm]
Definition: FlatGenTree.h:178
vector< bool > fIsSeaQuarkObj
Definition: FlatGenTree.h:133
vector< double > * fTgtPz
Definition: FlatGenTree.h:208
TBranch * b_DiffXsec
Definition: FlatGenTree.h:280
vector< int > * fStrangeHadronPDG
Definition: FlatGenTree.h:246
TBranch * b_Probability
Definition: FlatGenTree.h:278
TBranch * b_Event
Definition: TreeReader.h:54
vector< double > fFSleptonPyObj
Definition: FlatGenTree.h:151
TBranch * b_NuRegion
Definition: FlatGenTree.h:275
vector< double > * fFShadSystPx
Definition: FlatGenTree.h:238
vector< int > * fNumProton
Definition: FlatGenTree.h:247
vector< int > * fNumPiMinus
Definition: FlatGenTree.h:251
vector< double > fNuTObj
Definition: FlatGenTree.h:109
vector< double > fProbePxObj
Definition: FlatGenTree.h:118
vector< bool > * fIsSeaQuark
Definition: FlatGenTree.h:216
vector< double > fProbeEObj
Definition: FlatGenTree.h:121
vector< double > * fProbePx
Definition: FlatGenTree.h:201
vector< int > fProbePDGObj
Definition: FlatGenTree.h:116
TBranch * b_HitNucPDG
Definition: FlatGenTree.h:297
vector< double > * fNuY
Definition: FlatGenTree.h:189
vector< int > * fProbePDG
Definition: FlatGenTree.h:199
TBranch * b_CharmHadronPDG
Definition: FlatGenTree.h:327
vector< bool > fIsCharmObj
Definition: FlatGenTree.h:160
TBranch * b_FShadSystPz
Definition: FlatGenTree.h:323
vector< double > * fXsec
Definition: FlatGenTree.h:196
vector< int > fDecayModeObj
Definition: FlatGenTree.h:170
vector< UInt_t > * fFSPdg
particle PDG code
Definition: FlatGenTree.h:177
vector< int > * fNumNeutron
Definition: FlatGenTree.h:248
vector< double > * fGX
Definition: FlatGenTree.h:230
vector< double > * fProbePy
Definition: FlatGenTree.h:202
vector< Float_t > * fFSPosZ
z-coordinate [cm]
Definition: FlatGenTree.h:180
vector< double > fNuZObj
Definition: FlatGenTree.h:108
Int_t fEvent
event number for tree entry
Definition: TreeReader.h:55
vector< Float_t > * fFSE
total energy [GeV]
Definition: FlatGenTree.h:185
vector< double > fFSleptonEObj
Definition: FlatGenTree.h:153
vector< double > * fNuT
Definition: FlatGenTree.h:191
vector< int > fNumPiPlusObj
Definition: FlatGenTree.h:167
vector< double > * fHitNucPos
Definition: FlatGenTree.h:222
vector< int > fNumPi0Obj
Definition: FlatGenTree.h:166
vector< double > * fFShadSystPy
Definition: FlatGenTree.h:239
vector< double > * fWeight
Definition: FlatGenTree.h:194
vector< int > * fTgtA
Definition: FlatGenTree.h:212
TBranch * b_ProbePDG
Definition: FlatGenTree.h:282
TBranch * b_FShadSystPy
Definition: FlatGenTree.h:322
vector< double > * fHitNucE
Definition: FlatGenTree.h:221
QTextStream & endl(QTextStream &s)
vector< double > * fHitNucPz
Definition: FlatGenTree.h:220
TBranch * b_NumPiMinus
Definition: FlatGenTree.h:334
TBranch * b_IsSeaQuark
Definition: FlatGenTree.h:299
vector< double > * fProbeE
Definition: FlatGenTree.h:204
vector< int > * fCharmHadronPDG
Definition: FlatGenTree.h:244
void FlatGenTree::SetVecs ( )
protected

Definition at line 446 of file FlatGenTree.cxx.

446  {
447 
448  fNFS = /*new vector<UInt_t>();*/ &(fNFSObj);
449  fFSIndex = /*new vector<UInt_t>();*/ &(fFSIndexObj);
450  fFSPdg = /*new vector<UInt_t>();*/ &(fFSPdgObj);
451  fFSPosX = /*new vector<Float_t>();*/ &(fFSPosXObj);
452  fFSPosY = /*new vector<Float_t>();*/ &(fFSPosYObj);
453  fFSPosZ = /*new vector<Float_t>();*/ &(fFSPosZObj);
454  fFST = /*new vector<Float_t>();*/ &(fFSTObj);
455  fFSMomX = /*new vector<Float_t>();*/ &(fFSMomXObj);
456  fFSMomY = /*new vector<Float_t>();*/ &(fFSMomYObj);
457  fFSMomZ = /*new vector<Float_t>();*/ &(fFSMomZObj);
458  fFSE = /*new vector<Float_t>();*/ &(fFSEObj);
459 
460  fNuX = /*new vector<double>();*/ &(fNuXObj);
461  fNuY = /*new vector<double>();*/ &(fNuYObj);
462  fNuZ = /*new vector<double>();*/ &(fNuZObj);
463  fNuT = /*new vector<double>();*/ &(fNuTObj);
464 
465  fWeight = /*new vector<double>();*/ &(fWeightObj);
466  fProbability = /*new vector<double>();*/ &(fProbabilityObj);
467  fXsec = /*new vector<double>();*/ &(fXsecObj);
468  fDiffXsec = /*new vector<double>();*/ &(fDiffXsecObj);
469  fGPhaseSpace = /*new vector<int>();*/ &(fGPhaseSpaceObj);
470  fProbePDG = /*new vector<int>();*/ &(fProbePDGObj);
471 
472  fProbePx = /*new vector<double>();*/ &(fProbePxObj);
473  fProbePy = /*new vector<double>();*/ &(fProbePyObj);
474  fProbePz = /*new vector<double>();*/ &(fProbePzObj);
475  fProbeE = /*new vector<double>();*/ &(fProbeEObj);
476 
477  fTgtPx = /*new vector<double>();*/ &(fTgtPxObj);
478  fTgtPy = /*new vector<double>();*/ &(fTgtPyObj);
479  fTgtPz = /*new vector<double>();*/ &(fTgtPzObj);
480  fTgtE = /*new vector<double>();*/ &(fTgtEObj);
481 
482  fTgtZ = /*new vector<int>();*/ &(fTgtZObj);
483  fTgtA = /*new vector<int>();*/ &(fTgtAObj);
484  fTgtPDG = /*new vector<int>();*/ &(fTgtPDGObj);
485  fHitNucPDG = /*new vector<int>();*/ &(fHitNucPDGObj);
486  fHitQrkPDG = /*new vector<int>();*/ &(fHitQrkPDGObj);
487  fIsSeaQuark = /*new vector<bool>();*/ &(fIsSeaQuarkObj);
488 
489  fHitNucPx = /*new vector<double>();*/ &(fHitNucPxObj);
490  fHitNucPy = /*new vector<double>();*/ &(fHitNucPyObj);
491  fHitNucPz = /*new vector<double>();*/ &(fHitNucPzObj);
492  fHitNucE = /*new vector<double>();*/ &(fHitNucEObj);
493  fHitNucPos = /*new vector<double>();*/ &(fHitNucPosObj);
494 
495  fGscatter = /*new vector<int>();*/ &(fGscatterObj);
496  fGint = /*new vector<int>();*/ &(fGintObj);
497  fGQ2 = /*new vector<double>();*/ &(fGQ2Obj);
498  fGq2 = /*new vector<double>();*/ &(fGq2Obj);
499  fGW = /*new vector<double>();*/ &(fGWObj);
500  fGT = /*new vector<double>();*/ &(fGTObj);
501  fGX = /*new vector<double>();*/ &(fGXObj);
502  fGY = /*new vector<double>();*/ &(fGYObj);
503 
504  fFSleptonPx = /*new vector<double>();*/ &(fFSleptonPxObj);
505  fFSleptonPy = /*new vector<double>();*/ &(fFSleptonPyObj);
506  fFSleptonPz = /*new vector<double>();*/ &(fFSleptonPzObj);
507  fFSleptonE = /*new vector<double>();*/ &(fFSleptonEObj);
508 
509  fFShadSystPx = /*new vector<double>();*/ &(fFShadSystPxObj);
510  fFShadSystPy = /*new vector<double>();*/ &(fFShadSystPyObj);
511  fFShadSystPz = /*new vector<double>();*/ &(fFShadSystPzObj);
512  fFShadSystE = /*new vector<double>();*/ &(fFShadSystEObj);
513 
514  fIsCharm = /*new vector<bool>();*/ &(fIsCharmObj);
515  fCharmHadronPDG = /*new vector<int>();*/ &(fCharmHadronPDGObj);
516  fIsStrange = /*new vector<bool>();*/ &(fIsStrangeObj);
517  fStrangeHadronPDG = /*new vector<int>();*/ &(fStrangeHadronPDGObj);
518  fNumProton = /*new vector<int>();*/ &(fNumProtonObj);
519  fNumNeutron = /*new vector<int>();*/ &(fNumNeutronObj);
520  fNumPi0 = /*new vector<int>();*/ &(fNumPi0Obj);
521  fNumPiPlus = /*new vector<int>();*/ &(fNumPiPlusObj);
522  fNumPiMinus = /*new vector<int>();*/ &(fNumPiMinusObj);
523  fResNum = /*new vector<int>();*/ &(fResNumObj);
524  fDecayMode = /*new vector<int>();*/ &(fDecayModeObj);
525 
526  }
vector< double > fFShadSystEObj
Definition: FlatGenTree.h:158
vector< double > fTgtEObj
Definition: FlatGenTree.h:126
vector< int > fTgtZObj
Definition: FlatGenTree.h:128
vector< double > * fFShadSystPz
Definition: FlatGenTree.h:240
vector< double > fTgtPyObj
Definition: FlatGenTree.h:124
vector< double > * fHitNucPy
Definition: FlatGenTree.h:219
vector< double > fFShadSystPyObj
Definition: FlatGenTree.h:156
vector< int > fResNumObj
Definition: FlatGenTree.h:169
vector< int > fNumPiMinusObj
Definition: FlatGenTree.h:168
vector< Float_t > fFSPosYObj
y-coordinate [cm]
Definition: FlatGenTree.h:97
vector< double > * fTgtE
Definition: FlatGenTree.h:209
vector< int > * fNumPiPlus
Definition: FlatGenTree.h:250
vector< Float_t > fFSPosXObj
x-coordinate [cm]
Definition: FlatGenTree.h:96
vector< double > fProbePzObj
Definition: FlatGenTree.h:120
vector< double > fFSleptonPxObj
Definition: FlatGenTree.h:150
vector< double > * fGq2
Definition: FlatGenTree.h:227
vector< double > fHitNucPyObj
Definition: FlatGenTree.h:136
vector< Float_t > fFSMomXObj
momentum, x-component [GeV/c]
Definition: FlatGenTree.h:100
vector< double > fFShadSystPxObj
Definition: FlatGenTree.h:155
vector< double > fGWObj
Definition: FlatGenTree.h:145
vector< double > * fFSleptonPz
Definition: FlatGenTree.h:235
vector< Float_t > fFSMomZObj
momentum, z-component [GeV/c]
Definition: FlatGenTree.h:102
vector< double > * fGY
Definition: FlatGenTree.h:231
vector< Float_t > fFSTObj
time [ns]
Definition: FlatGenTree.h:99
vector< double > fHitNucPosObj
Definition: FlatGenTree.h:139
vector< int > fHitNucPDGObj
Definition: FlatGenTree.h:131
vector< double > fWeightObj
Definition: FlatGenTree.h:111
vector< int > fGscatterObj
Definition: FlatGenTree.h:141
vector< int > fGintObj
Definition: FlatGenTree.h:142
vector< double > fFShadSystPzObj
Definition: FlatGenTree.h:157
vector< UInt_t > fFSIndexObj
Definition: FlatGenTree.h:94
vector< double > fHitNucEObj
Definition: FlatGenTree.h:138
vector< double > * fFSleptonPx
Definition: FlatGenTree.h:233
vector< Float_t > * fFSPosY
y-coordinate [cm]
Definition: FlatGenTree.h:179
vector< double > * fTgtPx
Definition: FlatGenTree.h:206
vector< double > * fGQ2
Definition: FlatGenTree.h:226
vector< int > * fTgtZ
Definition: FlatGenTree.h:211
vector< int > fNumNeutronObj
Definition: FlatGenTree.h:165
vector< int > fCharmHadronPDGObj
Definition: FlatGenTree.h:161
vector< double > * fProbability
Definition: FlatGenTree.h:195
vector< double > fNuYObj
Definition: FlatGenTree.h:107
vector< double > * fHitNucPx
Definition: FlatGenTree.h:218
vector< double > fGYObj
Definition: FlatGenTree.h:148
vector< double > fDiffXsecObj
Definition: FlatGenTree.h:114
vector< int > fStrangeHadronPDGObj
Definition: FlatGenTree.h:163
vector< bool > * fIsStrange
Definition: FlatGenTree.h:245
vector< double > fGq2Obj
Definition: FlatGenTree.h:144
vector< int > fHitQrkPDGObj
Definition: FlatGenTree.h:132
vector< double > fTgtPzObj
Definition: FlatGenTree.h:125
vector< double > * fFSleptonE
Definition: FlatGenTree.h:236
vector< Float_t > * fFST
time [ns]
Definition: FlatGenTree.h:181
vector< double > * fFShadSystE
Definition: FlatGenTree.h:241
vector< double > fProbabilityObj
Definition: FlatGenTree.h:112
vector< double > fTgtPxObj
Definition: FlatGenTree.h:123
vector< double > * fGT
Definition: FlatGenTree.h:229
vector< Float_t > fFSPosZObj
z-coordinate [cm]
Definition: FlatGenTree.h:98
vector< double > * fProbePz
Definition: FlatGenTree.h:203
vector< double > fHitNucPzObj
Definition: FlatGenTree.h:137
vector< double > fGTObj
Definition: FlatGenTree.h:146
vector< double > * fTgtPy
Definition: FlatGenTree.h:207
vector< Float_t > * fFSMomZ
momentum, z-component [GeV/c]
Definition: FlatGenTree.h:184
vector< double > * fDiffXsec
Definition: FlatGenTree.h:197
vector< double > * fGW
Definition: FlatGenTree.h:228
vector< int > * fResNum
Definition: FlatGenTree.h:252
vector< double > fFSleptonPzObj
Definition: FlatGenTree.h:152
vector< int > * fDecayMode
Definition: FlatGenTree.h:253
vector< double > fProbePyObj
Definition: FlatGenTree.h:119
vector< UInt_t > fFSPdgObj
particle PDG code
Definition: FlatGenTree.h:95
vector< int > * fGscatter
Definition: FlatGenTree.h:224
vector< double > fHitNucPxObj
Definition: FlatGenTree.h:135
vector< Float_t > * fFSMomY
momentum, y-component [GeV/c]
Definition: FlatGenTree.h:183
vector< int > * fGint
Definition: FlatGenTree.h:225
vector< int > * fGPhaseSpace
Definition: FlatGenTree.h:198
vector< int > fTgtAObj
Definition: FlatGenTree.h:129
vector< int > * fNumPi0
Definition: FlatGenTree.h:249
vector< double > fNuXObj
GTruth (one or more per genTree entry) //.
Definition: FlatGenTree.h:106
vector< int > fNumProtonObj
Definition: FlatGenTree.h:164
vector< UInt_t > * fNFS
number of FSParticles for igen^th GTruth len=NGen
Definition: FlatGenTree.h:174
vector< int > fTgtPDGObj
Definition: FlatGenTree.h:130
vector< double > fXsecObj
Definition: FlatGenTree.h:113
vector< int > fGPhaseSpaceObj
Definition: FlatGenTree.h:115
vector< bool > * fIsCharm
Definition: FlatGenTree.h:243
vector< Float_t > * fFSMomX
momentum, x-component [GeV/c]
Definition: FlatGenTree.h:182
vector< double > * fFSleptonPy
Definition: FlatGenTree.h:234
vector< Float_t > fFSEObj
total energy [GeV]
Definition: FlatGenTree.h:103
vector< double > * fNuZ
Definition: FlatGenTree.h:190
vector< bool > fIsStrangeObj
Definition: FlatGenTree.h:162
vector< double > fGQ2Obj
Definition: FlatGenTree.h:143
vector< double > * fNuX
GTruth (one or more per genTree entry) //.
Definition: FlatGenTree.h:188
vector< int > * fHitQrkPDG
Definition: FlatGenTree.h:215
vector< double > fGXObj
Definition: FlatGenTree.h:147
vector< Float_t > fFSMomYObj
momentum, y-component [GeV/c]
Definition: FlatGenTree.h:101
vector< int > * fTgtPDG
Definition: FlatGenTree.h:213
vector< UInt_t > * fFSIndex
Definition: FlatGenTree.h:175
vector< int > * fHitNucPDG
Definition: FlatGenTree.h:214
vector< Float_t > * fFSPosX
x-coordinate [cm]
Definition: FlatGenTree.h:178
vector< bool > fIsSeaQuarkObj
Definition: FlatGenTree.h:133
vector< double > * fTgtPz
Definition: FlatGenTree.h:208
vector< int > * fStrangeHadronPDG
Definition: FlatGenTree.h:246
vector< double > fFSleptonPyObj
Definition: FlatGenTree.h:151
vector< double > * fFShadSystPx
Definition: FlatGenTree.h:238
vector< int > * fNumProton
Definition: FlatGenTree.h:247
vector< int > * fNumPiMinus
Definition: FlatGenTree.h:251
vector< double > fNuTObj
Definition: FlatGenTree.h:109
vector< double > fProbePxObj
Definition: FlatGenTree.h:118
vector< bool > * fIsSeaQuark
Definition: FlatGenTree.h:216
vector< double > fProbeEObj
Definition: FlatGenTree.h:121
vector< double > * fProbePx
Definition: FlatGenTree.h:201
vector< int > fProbePDGObj
Definition: FlatGenTree.h:116
vector< double > * fNuY
Definition: FlatGenTree.h:189
vector< int > * fProbePDG
Definition: FlatGenTree.h:199
vector< bool > fIsCharmObj
Definition: FlatGenTree.h:160
vector< double > * fXsec
Definition: FlatGenTree.h:196
vector< int > fDecayModeObj
Definition: FlatGenTree.h:170
vector< UInt_t > * fFSPdg
particle PDG code
Definition: FlatGenTree.h:177
vector< int > * fNumNeutron
Definition: FlatGenTree.h:248
vector< double > * fGX
Definition: FlatGenTree.h:230
vector< double > * fProbePy
Definition: FlatGenTree.h:202
vector< Float_t > * fFSPosZ
z-coordinate [cm]
Definition: FlatGenTree.h:180
vector< double > fNuZObj
Definition: FlatGenTree.h:108
vector< Float_t > * fFSE
total energy [GeV]
Definition: FlatGenTree.h:185
vector< double > fFSleptonEObj
Definition: FlatGenTree.h:153
vector< double > * fNuT
Definition: FlatGenTree.h:191
vector< int > fNumPiPlusObj
Definition: FlatGenTree.h:167
vector< double > * fHitNucPos
Definition: FlatGenTree.h:222
vector< int > fNumPi0Obj
Definition: FlatGenTree.h:166
vector< double > * fFShadSystPy
Definition: FlatGenTree.h:239
vector< double > * fWeight
Definition: FlatGenTree.h:194
vector< int > * fTgtA
Definition: FlatGenTree.h:212
vector< double > * fHitNucE
Definition: FlatGenTree.h:221
vector< double > * fHitNucPz
Definition: FlatGenTree.h:220
vector< double > * fProbeE
Definition: FlatGenTree.h:204
vector< int > * fCharmHadronPDG
Definition: FlatGenTree.h:244
vector< UInt_t > fNFSObj
number of FSParticles for igen^th GTruth len=NGen
Definition: FlatGenTree.h:93
const double FlatGenTree::T ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 332 of file FlatGenTree.cxx.

332  {
333  return fGT->at(igen);
334 }
vector< double > * fGT
Definition: FlatGenTree.h:229
const int FlatGenTree::TgtA ( const UInt_t &  igen) const
overridevirtual

target A

Implements garana::GenTree.

Definition at line 302 of file FlatGenTree.cxx.

302  {
303  return fTgtA->at(igen);
304 }
vector< int > * fTgtA
Definition: FlatGenTree.h:212
const TLorentzVector * FlatGenTree::TgtP4 ( const UInt_t &  igen) const
overridevirtual

target 4-momentum

Implements garana::GenTree.

Definition at line 292 of file FlatGenTree.cxx.

292  {
293  const TLorentzVector* v = new TLorentzVector(fTgtPx->at(igen),fTgtPy->at(igen),
294  fTgtPz->at(igen), fTgtE->at(igen));
295  return v;
296 }
vector< double > * fTgtE
Definition: FlatGenTree.h:209
vector< double > * fTgtPx
Definition: FlatGenTree.h:206
vector< double > * fTgtPy
Definition: FlatGenTree.h:207
vector< double > * fTgtPz
Definition: FlatGenTree.h:208
const int FlatGenTree::TgtPDG ( const UInt_t &  igen) const
overridevirtual

PDG of Target Nucleus, nucleon only if free.

Implements garana::GenTree.

Definition at line 306 of file FlatGenTree.cxx.

306  {
307  return fTgtPDG->at(igen);
308 }
vector< int > * fTgtPDG
Definition: FlatGenTree.h:213
const int FlatGenTree::TgtZ ( const UInt_t &  igen) const
overridevirtual

target Z

Implements garana::GenTree.

Definition at line 298 of file FlatGenTree.cxx.

298  {
299  return fTgtZ->at(igen);
300 }
vector< int > * fTgtZ
Definition: FlatGenTree.h:211
const double FlatGenTree::W ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 328 of file FlatGenTree.cxx.

328  {
329  return fGW->at(igen);
330 }
vector< double > * fGW
Definition: FlatGenTree.h:228
const double FlatGenTree::X ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 336 of file FlatGenTree.cxx.

336  {
337  return fGX->at(igen);
338 }
vector< double > * fGX
Definition: FlatGenTree.h:230
const double FlatGenTree::Y ( const UInt_t &  igen) const
overridevirtual

Implements garana::GenTree.

Definition at line 340 of file FlatGenTree.cxx.

340  {
341  return fGY->at(igen);
342 }
vector< double > * fGY
Definition: FlatGenTree.h:231

Member Data Documentation

TBranch* garana::FlatGenTree::b_CharmHadronPDG = nullptr
protected

Definition at line 327 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_DecayMode = nullptr
protected

Definition at line 336 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_DiffXsec = nullptr
protected

Definition at line 280 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSE = nullptr
protected

Definition at line 269 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FShadSystE = nullptr
protected

Definition at line 324 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FShadSystPx = nullptr
protected

Definition at line 321 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FShadSystPy = nullptr
protected

Definition at line 322 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FShadSystPz = nullptr
protected

Definition at line 323 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSIndex = nullptr
protected

Definition at line 260 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSleptonE = nullptr
protected

Definition at line 319 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSleptonPx = nullptr
protected

Definition at line 316 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSleptonPy = nullptr
protected

Definition at line 317 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSleptonPz = nullptr
protected

Definition at line 318 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSMomX = nullptr
protected

Definition at line 266 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSMomY = nullptr
protected

Definition at line 267 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSMomZ = nullptr
protected

Definition at line 268 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSPdg = nullptr
protected

Definition at line 261 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSPosX = nullptr
protected

Definition at line 262 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSPosY = nullptr
protected

Definition at line 263 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FSPosZ = nullptr
protected

Definition at line 264 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_FST = nullptr
protected

Definition at line 265 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GIndex = nullptr
protected

Definition at line 257 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_Gint = nullptr
protected

Definition at line 308 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GPhaseSpace = nullptr
protected

Definition at line 281 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GQ2 = nullptr
protected

Definition at line 309 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_Gq2 = nullptr
protected

Definition at line 310 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_Gscatter = nullptr
protected

Definition at line 307 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GT = nullptr
protected

Definition at line 312 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GW = nullptr
protected

Definition at line 311 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GX = nullptr
protected

Definition at line 313 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_GY = nullptr
protected

Definition at line 314 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitNucE = nullptr
protected

Definition at line 304 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitNucPDG = nullptr
protected

Definition at line 297 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitNucPos = nullptr
protected

Definition at line 305 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitNucPx = nullptr
protected

Definition at line 301 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitNucPy = nullptr
protected

Definition at line 302 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitNucPz = nullptr
protected

Definition at line 303 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_HitQrkPDG = nullptr
protected

Definition at line 298 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_IsCharm = nullptr
protected

Definition at line 326 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_IsSeaQuark = nullptr
protected

Definition at line 299 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_IsStrange = nullptr
protected

Definition at line 328 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NFS = nullptr
protected

Definition at line 259 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NGen = nullptr
protected

Definition at line 256 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NumNeutron = nullptr
protected

Definition at line 331 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NumPi0 = nullptr
protected

Definition at line 332 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NumPiMinus = nullptr
protected

Definition at line 334 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NumPiPlus = nullptr
protected

Definition at line 333 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NumProton = nullptr
protected

Definition at line 330 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NuRegion = nullptr
protected

Definition at line 275 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NuT = nullptr
protected

Definition at line 274 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NuX = nullptr
protected

Definition at line 271 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NuY = nullptr
protected

Definition at line 272 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_NuZ = nullptr
protected

Definition at line 273 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_Probability = nullptr
protected

Definition at line 278 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_ProbeE = nullptr
protected

Definition at line 287 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_ProbePDG = nullptr
protected

Definition at line 282 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_ProbePx = nullptr
protected

Definition at line 284 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_ProbePy = nullptr
protected

Definition at line 285 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_ProbePz = nullptr
protected

Definition at line 286 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_ResNum = nullptr
protected

Definition at line 335 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_StrangeHadronPDG = nullptr
protected

Definition at line 329 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtA = nullptr
protected

Definition at line 295 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtE = nullptr
protected

Definition at line 292 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtPDG = nullptr
protected

Definition at line 296 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtPx = nullptr
protected

Definition at line 289 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtPy = nullptr
protected

Definition at line 290 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtPz = nullptr
protected

Definition at line 291 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_TgtZ = nullptr
protected

Definition at line 294 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_Weight = nullptr
protected

Definition at line 277 of file FlatGenTree.h.

TBranch* garana::FlatGenTree::b_Xsec = nullptr
protected

Definition at line 279 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fCharmHadronPDG = nullptr
protected

Definition at line 244 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fCharmHadronPDGObj
protected

Definition at line 161 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fDecayMode = nullptr
protected

Definition at line 253 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fDecayModeObj
protected

Definition at line 170 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fDiffXsec = nullptr
protected

Definition at line 197 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fDiffXsecObj
protected

Definition at line 114 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSE = nullptr
protected

total energy [GeV]

Definition at line 185 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSEObj
protected

total energy [GeV]

Definition at line 103 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFShadSystE = nullptr
protected

Definition at line 241 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFShadSystEObj
protected

Definition at line 158 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFShadSystPx = nullptr
protected

Definition at line 238 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFShadSystPxObj
protected

Definition at line 155 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFShadSystPy = nullptr
protected

Definition at line 239 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFShadSystPyObj
protected

Definition at line 156 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFShadSystPz = nullptr
protected

Definition at line 240 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFShadSystPzObj
protected

Definition at line 157 of file FlatGenTree.h.

vector<UInt_t>* garana::FlatGenTree::fFSIndex = nullptr
protected

Definition at line 175 of file FlatGenTree.h.

vector<UInt_t> garana::FlatGenTree::fFSIndexObj
protected

Definition at line 94 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFSleptonE = nullptr
protected

Definition at line 236 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFSleptonEObj
protected

Definition at line 153 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFSleptonPx = nullptr
protected

Definition at line 233 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFSleptonPxObj
protected

Definition at line 150 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFSleptonPy = nullptr
protected

Definition at line 234 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFSleptonPyObj
protected

Definition at line 151 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fFSleptonPz = nullptr
protected

Definition at line 235 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fFSleptonPzObj
protected

Definition at line 152 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSMomX = nullptr
protected

momentum, x-component [GeV/c]

Definition at line 182 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSMomXObj
protected

momentum, x-component [GeV/c]

Definition at line 100 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSMomY = nullptr
protected

momentum, y-component [GeV/c]

Definition at line 183 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSMomYObj
protected

momentum, y-component [GeV/c]

Definition at line 101 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSMomZ = nullptr
protected

momentum, z-component [GeV/c]

Definition at line 184 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSMomZObj
protected

momentum, z-component [GeV/c]

Definition at line 102 of file FlatGenTree.h.

vector<UInt_t>* garana::FlatGenTree::fFSPdg = nullptr
protected

particle PDG code

Definition at line 177 of file FlatGenTree.h.

vector<UInt_t> garana::FlatGenTree::fFSPdgObj
protected

particle PDG code

Definition at line 95 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSPosX = nullptr
protected

x-coordinate [cm]

Definition at line 178 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSPosXObj
protected

x-coordinate [cm]

Definition at line 96 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSPosY = nullptr
protected

y-coordinate [cm]

Definition at line 179 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSPosYObj
protected

y-coordinate [cm]

Definition at line 97 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFSPosZ = nullptr
protected

z-coordinate [cm]

Definition at line 180 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSPosZObj
protected

z-coordinate [cm]

Definition at line 98 of file FlatGenTree.h.

vector<Float_t>* garana::FlatGenTree::fFST = nullptr
protected

time [ns]

Definition at line 181 of file FlatGenTree.h.

vector<Float_t> garana::FlatGenTree::fFSTObj
protected

time [ns]

Definition at line 99 of file FlatGenTree.h.

vector<UInt_t>* garana::FlatGenTree::fFSTrackId = nullptr
protected

particle generator track ID

Definition at line 176 of file FlatGenTree.h.

vector< std::pair< fsBegin, fsEnd > > garana::FlatGenTree::fGenToFSLimits
protected

Definition at line 83 of file FlatGenTree.h.

const vector<Int_t>* garana::FlatGenTree::fGIndex = nullptr
protected

Definition at line 90 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fGint = nullptr
protected

Definition at line 225 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fGintObj
protected

Definition at line 142 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fGPhaseSpace = nullptr
protected

Definition at line 198 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fGPhaseSpaceObj
protected

Definition at line 115 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fGQ2 = nullptr
protected

Definition at line 226 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fGq2 = nullptr
protected

Definition at line 227 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fGQ2Obj
protected

Definition at line 143 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fGq2Obj
protected

Definition at line 144 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fGscatter = nullptr
protected

Definition at line 224 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fGscatterObj
protected

Definition at line 141 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fGT = nullptr
protected

Definition at line 229 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fGTObj
protected

Definition at line 146 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fGW = nullptr
protected

Definition at line 228 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fGWObj
protected

Definition at line 145 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fGX = nullptr
protected

Definition at line 230 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fGXObj
protected

Definition at line 147 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fGY = nullptr
protected

Definition at line 231 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fGYObj
protected

Definition at line 148 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fHitNucE = nullptr
protected

Definition at line 221 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fHitNucEObj
protected

Definition at line 138 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fHitNucPDG = nullptr
protected

Definition at line 214 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fHitNucPDGObj
protected

Definition at line 131 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fHitNucPos = nullptr
protected

Definition at line 222 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fHitNucPosObj
protected

Definition at line 139 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fHitNucPx = nullptr
protected

Definition at line 218 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fHitNucPxObj
protected

Definition at line 135 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fHitNucPy = nullptr
protected

Definition at line 219 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fHitNucPyObj
protected

Definition at line 136 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fHitNucPz = nullptr
protected

Definition at line 220 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fHitNucPzObj
protected

Definition at line 137 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fHitQrkPDG = nullptr
protected

Definition at line 215 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fHitQrkPDGObj
protected

Definition at line 132 of file FlatGenTree.h.

vector<bool>* garana::FlatGenTree::fIsCharm = nullptr
protected

Definition at line 243 of file FlatGenTree.h.

vector<bool> garana::FlatGenTree::fIsCharmObj
protected

Definition at line 160 of file FlatGenTree.h.

vector<bool>* garana::FlatGenTree::fIsSeaQuark = nullptr
protected

Definition at line 216 of file FlatGenTree.h.

vector<bool> garana::FlatGenTree::fIsSeaQuarkObj
protected

Definition at line 133 of file FlatGenTree.h.

vector<bool>* garana::FlatGenTree::fIsStrange = nullptr
protected

Definition at line 245 of file FlatGenTree.h.

vector<bool> garana::FlatGenTree::fIsStrangeObj
protected

Definition at line 162 of file FlatGenTree.h.

vector<UInt_t>* garana::FlatGenTree::fNFS = nullptr
protected

number of FSParticles for igen^th GTruth len=NGen

Definition at line 174 of file FlatGenTree.h.

vector<UInt_t> garana::FlatGenTree::fNFSObj
protected

number of FSParticles for igen^th GTruth len=NGen

Definition at line 93 of file FlatGenTree.h.

Int_t garana::FlatGenTree::fNGen = -1
protected

Definition at line 89 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fNumNeutron = nullptr
protected

Definition at line 248 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fNumNeutronObj
protected

Definition at line 165 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fNumPi0 = nullptr
protected

Definition at line 249 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fNumPi0Obj
protected

Definition at line 166 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fNumPiMinus = nullptr
protected

Definition at line 251 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fNumPiMinusObj
protected

Definition at line 168 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fNumPiPlus = nullptr
protected

Definition at line 250 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fNumPiPlusObj
protected

Definition at line 167 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fNumProton = nullptr
protected

Definition at line 247 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fNumProtonObj
protected

Definition at line 164 of file FlatGenTree.h.

TLorentzVector garana::FlatGenTree::fNuP
protected

Definition at line 85 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fNuRegion = nullptr
protected

Definition at line 192 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fNuT = nullptr
protected

Definition at line 191 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fNuTObj
protected

Definition at line 109 of file FlatGenTree.h.

TLorentzVector garana::FlatGenTree::fNuVertex
protected

Definition at line 86 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fNuX = nullptr
protected

GTruth (one or more per genTree entry) //.

Definition at line 188 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fNuXObj
protected

GTruth (one or more per genTree entry) //.

Definition at line 106 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fNuY = nullptr
protected

Definition at line 189 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fNuYObj
protected

Definition at line 107 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fNuZ = nullptr
protected

Definition at line 190 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fNuZObj
protected

Definition at line 108 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fProbability = nullptr
protected

Definition at line 195 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fProbabilityObj
protected

Definition at line 112 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fProbeE = nullptr
protected

Definition at line 204 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fProbeEObj
protected

Definition at line 121 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fProbePDG = nullptr
protected

Definition at line 199 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fProbePDGObj
protected

Definition at line 116 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fProbePx = nullptr
protected

Definition at line 201 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fProbePxObj
protected

Definition at line 118 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fProbePy = nullptr
protected

Definition at line 202 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fProbePyObj
protected

Definition at line 119 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fProbePz = nullptr
protected

Definition at line 203 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fProbePzObj
protected

Definition at line 120 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fResNum = nullptr
protected

Definition at line 252 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fResNumObj
protected

Definition at line 169 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fStrangeHadronPDG = nullptr
protected

Definition at line 246 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fStrangeHadronPDGObj
protected

Definition at line 163 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fTgtA = nullptr
protected

Definition at line 212 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fTgtAObj
protected

Definition at line 129 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fTgtE = nullptr
protected

Definition at line 209 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fTgtEObj
protected

Definition at line 126 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fTgtPDG = nullptr
protected

Definition at line 213 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fTgtPDGObj
protected

Definition at line 130 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fTgtPx = nullptr
protected

Definition at line 206 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fTgtPxObj
protected

Definition at line 123 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fTgtPy = nullptr
protected

Definition at line 207 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fTgtPyObj
protected

Definition at line 124 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fTgtPz = nullptr
protected

Definition at line 208 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fTgtPzObj
protected

Definition at line 125 of file FlatGenTree.h.

vector<int>* garana::FlatGenTree::fTgtZ = nullptr
protected

Definition at line 211 of file FlatGenTree.h.

vector<int> garana::FlatGenTree::fTgtZObj
protected

Definition at line 128 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fWeight = nullptr
protected

Definition at line 194 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fWeightObj
protected

Definition at line 111 of file FlatGenTree.h.

vector<double>* garana::FlatGenTree::fXsec = nullptr
protected

Definition at line 196 of file FlatGenTree.h.

vector<double> garana::FlatGenTree::fXsecObj
protected

Definition at line 113 of file FlatGenTree.h.


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