LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GSimpleInterface.h
Go to the documentation of this file.
1 #ifndef _GSIMPLEINTERFACE_H_
2 #define _GSIMPLEINTERFACE_H_
3 
5 
6 #include "Tools/Flux/GNuMIFlux.h"
7 #include "Tools/Flux/GSimpleNtpFlux.h"
8 
9 class TTree;
10 class TFile;
11 
12 namespace fluxr {
14  public:
17 
18  Long64_t GetEntries() const { return fNEntries; };
19  int GetRun() const { return fRun; };
20  float GetPOT() const { return fPOT; };
21  TLorentzVector GetNuPosition() const { return fNuPos; };
22  TLorentzVector GetNuMomentum() const { return fNuMom; };
23 
24  void SetRootFile(TFile* rootFileName);
25  bool FillMCFlux(Long64_t ientry, simb::MCFlux& mcflux);
26 
27  private:
28  TTree* fFluxTree;
29  TTree* fMetaTree;
30  genie::flux::GSimpleNtpEntry* fGSimpleEntry;
31  genie::flux::GSimpleNtpNuMI* fGSimpleNuMI;
32  genie::flux::GSimpleNtpAux* fGSimpleAux;
33  genie::flux::GSimpleNtpMeta* fGSimpleMeta;
34  Long64_t fNEntries;
35  int fRun;
36  float fPOT;
37  TLorentzVector fNuPos;
38  TLorentzVector fNuMom;
39  };
40 
41 }
42 
43 #endif // _GSIMPLEINTERFACE_H_
TLorentzVector GetNuMomentum() const
genie::flux::GSimpleNtpEntry * fGSimpleEntry
TLorentzVector GetNuPosition() const
genie::flux::GSimpleNtpNuMI * fGSimpleNuMI
void SetRootFile(TFile *rootFileName)
genie::flux::GSimpleNtpMeta * fGSimpleMeta
genie::flux::GSimpleNtpAux * fGSimpleAux
Long64_t GetEntries() const
bool FillMCFlux(Long64_t ientry, simb::MCFlux &mcflux)