Public Member Functions | Protected Attributes | List of all members
garana::GenTree Class Referenceabstract

#include <GenTree.h>

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

Public Member Functions

virtual ~GenTree ()
 
virtual const UInt_t NGen () const =0
 
virtual const UInt_t NFSParticles (const UInt_t &igen) const =0
 
virtual const Bool_t IsGenie (const UInt_t &igen) const =0
 
virtual const Float_t FSTotEnergy (const UInt_t &igen) const =0
 
virtual const Float_t FSEnergy (const UInt_t &igen, const UInt_t &ifsp) const =0
 
virtual const Float_t FSPDG (const UInt_t &igen, const UInt_t &ifsp) const =0
 
virtual const Int_t FSTrackId (const UInt_t &igen, const UInt_t &ifsp) const =0
 
virtual const int NuRegion (const UInt_t &igen) const =0
 region code where the vertex is located More...
 
virtual const Int_t NuPDG (const UInt_t &igen) const =0
 neutrino PDG code More...
 
virtual const TLorentzVector * NuP (const UInt_t &igen)=0
 initial neutrino 4-momentum More...
 
virtual const TLorentzVector * NuVertex (const UInt_t &igen)=0
 4-position of neutrino vertex More...
 
virtual const Bool_t IsCC (const UInt_t &igen) const =0
 whether interaction is CC or not More...
 
virtual const int ScatterCode (const UInt_t &igen) const =0
 GENIE neutrino scattering code. More...
 
virtual const int InteractCode (const UInt_t &igen) const =0
 GENIE interaction code. More...
 
virtual const Int_t TgtPDG (const UInt_t &igen) const =0
 PDG of Target Nucleus, nucleon only if free. More...
 
virtual const TLorentzVector * TgtP4 (const UInt_t &igen) const =0
 target 4-momentum More...
 
virtual const int TgtZ (const UInt_t &igen) const =0
 target Z More...
 
virtual const int TgtA (const UInt_t &igen) const =0
 target A More...
 
virtual const int HitNucPDG (const UInt_t &igen) const =0
 hit nucleon PDG code More...
 
virtual const TLorentzVector * HitNucP4 (const UInt_t &igen) const =0
 hit nucleon (initial) 4-momentum More...
 
virtual const double Q2 (const UInt_t &igen) const =0
 
virtual const double q2 (const UInt_t &igen) const =0
 
virtual const double W (const UInt_t &igen) const =0
 
virtual const double T (const UInt_t &igen) const =0
 
virtual const double X (const UInt_t &igen) const =0
 
virtual const double Y (const UInt_t &igen) const =0
 
virtual const TLorentzVector * FSLeptonP4 (const UInt_t &igen) const =0
 final state primary lepton 4-momentum (LAB frame) More...
 
virtual const TLorentzVector * FSHadSystP4 (const UInt_t &igen) const =0
 final state hadronic system 4-momentum(LAB frame) More...
 
virtual const int NumNuProton (const UInt_t &igen) const =0
 number of protons after reaction, before FSI More...
 
virtual const int NumNuNeutron (const UInt_t &igen) const =0
 number of neutrons after reaction, before FSI More...
 
virtual const int NumNuPi0 (const UInt_t &igen) const =0
 number of pi0 after reaction, before FSI More...
 
virtual const int NumNuPiPlus (const UInt_t &igen) const =0
 number of pi pluses after reaction, before FSI More...
 
virtual const int NumNuPiMinus (const UInt_t &igen) const =0
 number of pi minuses after reaction, before FSI More...
 
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
 
virtual void GetEntry (const UInt_t &ientry)
 
Int_t Event () const
 
const TObjArray * GetBranchList () const
 
void Fill ()
 
void Write ()
 
void CheckOpt (char opt)
 
bool BlockWrite () const
 
virtual bool SetBranchAddresses ()=0
 

Protected Attributes

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 8 of file GenTree.h.

Constructor & Destructor Documentation

virtual garana::GenTree::~GenTree ( )
inlinevirtual

Definition at line 12 of file GenTree.h.

12 {};

Member Function Documentation

virtual const Float_t garana::GenTree::FSEnergy ( const UInt_t &  igen,
const UInt_t &  ifsp 
) const
pure virtual
virtual const TLorentzVector* garana::GenTree::FSHadSystP4 ( const UInt_t &  igen) const
pure virtual

final state hadronic system 4-momentum(LAB frame)

particle multiplicities (before FSI)

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const TLorentzVector* garana::GenTree::FSLeptonP4 ( const UInt_t &  igen) const
pure virtual

final state primary lepton 4-momentum (LAB frame)

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const Float_t garana::GenTree::FSPDG ( const UInt_t &  igen,
const UInt_t &  ifsp 
) const
pure virtual
virtual const Float_t garana::GenTree::FSTotEnergy ( const UInt_t &  igen) const
pure virtual
virtual const Int_t garana::GenTree::FSTrackId ( const UInt_t &  igen,
const UInt_t &  ifsp 
) const
pure virtual

GENIE specific neutrino info

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

const std::vector< Int_t > * GenTree::GetGIndex ( ) const

whether or not subentry is GENIE interaction, index of GENIE interaction

Definition at line 7 of file GenTree.cxx.

7  {
8  return fGIndex;
9 }
const std::vector< Int_t > * fGIndex
Definition: GenTree.h:66
virtual const TLorentzVector* garana::GenTree::HitNucP4 ( const UInt_t &  igen) const
pure virtual

hit nucleon (initial) 4-momentum

kinematics

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::HitNucPDG ( const UInt_t &  igen) const
pure virtual

hit nucleon PDG code

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::InteractCode ( const UInt_t &  igen) const
pure virtual

GENIE interaction code.

target info

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const Bool_t garana::GenTree::IsCC ( const UInt_t &  igen) const
pure virtual

whether interaction is CC or not

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const Bool_t garana::GenTree::IsGenie ( const UInt_t &  igen) const
pure virtual
virtual const UInt_t garana::GenTree::NFSParticles ( const UInt_t &  igen) const
pure virtual
virtual const UInt_t garana::GenTree::NGen ( ) const
pure virtual
bool GenTree::NuInAV ( const UInt_t &  igen) const

Definition at line 11 of file GenTree.cxx.

11  {
12  if(this->NuRegion(igen)==0 || this->NuRegion(igen)==1)
13  return true;
14  else
15  return false;
16 }
virtual const int NuRegion(const UInt_t &igen) const =0
region code where the vertex is located
bool GenTree::NuInCalo ( const UInt_t &  igen) const

Definition at line 23 of file GenTree.cxx.

23  {
24  if(this->NuRegion(igen)==3 || this->NuRegion(igen)==4)
25  return true;
26  else
27  return false;
28 }
virtual const int NuRegion(const UInt_t &igen) const =0
region code where the vertex is located
bool GenTree::NuInIV ( const UInt_t &  igen) const

Definition at line 17 of file GenTree.cxx.

17  {
18  if(this->NuRegion(igen)==2)
19  return true;
20  else
21  return false;
22 }
virtual const int NuRegion(const UInt_t &igen) const =0
region code where the vertex is located
virtual const int garana::GenTree::NumNuNeutron ( const UInt_t &  igen) const
pure virtual

number of neutrons after reaction, before FSI

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::NumNuPi0 ( const UInt_t &  igen) const
pure virtual

number of pi0 after reaction, before FSI

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::NumNuPiMinus ( const UInt_t &  igen) const
pure virtual

number of pi minuses after reaction, before FSI

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::NumNuPiPlus ( const UInt_t &  igen) const
pure virtual

number of pi pluses after reaction, before FSI

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::NumNuProton ( const UInt_t &  igen) const
pure virtual

number of protons after reaction, before FSI

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const TLorentzVector* garana::GenTree::NuP ( const UInt_t &  igen)
pure virtual

initial neutrino 4-momentum

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const Int_t garana::GenTree::NuPDG ( const UInt_t &  igen) const
pure virtual

neutrino PDG code

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::NuRegion ( const UInt_t &  igen) const
pure virtual

region code where the vertex is located

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const TLorentzVector* garana::GenTree::NuVertex ( const UInt_t &  igen)
pure virtual

4-position of neutrino vertex

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const double garana::GenTree::Q2 ( const UInt_t &  igen) const
pure virtual
virtual const double garana::GenTree::q2 ( const UInt_t &  igen) const
pure virtual
virtual const int garana::GenTree::ScatterCode ( const UInt_t &  igen) const
pure virtual

GENIE neutrino scattering code.

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const double garana::GenTree::T ( const UInt_t &  igen) const
pure virtual
virtual const int garana::GenTree::TgtA ( const UInt_t &  igen) const
pure virtual

target A

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const TLorentzVector* garana::GenTree::TgtP4 ( const UInt_t &  igen) const
pure virtual

target 4-momentum

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const Int_t garana::GenTree::TgtPDG ( const UInt_t &  igen) const
pure virtual

PDG of Target Nucleus, nucleon only if free.

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const int garana::GenTree::TgtZ ( const UInt_t &  igen) const
pure virtual

target Z

Implemented in garana::FlatGenTree, and garana::StructuredGenTree.

virtual const double garana::GenTree::W ( const UInt_t &  igen) const
pure virtual
virtual const double garana::GenTree::X ( const UInt_t &  igen) const
pure virtual
virtual const double garana::GenTree::Y ( const UInt_t &  igen) const
pure virtual

Member Data Documentation

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

Definition at line 67 of file GenTree.h.

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

Definition at line 66 of file GenTree.h.


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