LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
GENIE2ART.h
Go to the documentation of this file.
1 #ifndef EVGB_GENIE2ART_H
11 #define EVGB_GENIE2ART_H
12 
14 namespace genie {
15  class EventRecord;
16  class GFluxI;
17  namespace flux {
18  class GNuMIFlux;
19  class GNuMIFluxPassThroughInfo;
20  class GSimpleNtpFlux;
21  class GSimpleNtpEntry;
22  class GSimpleNtpNuMI;
23  class GSimpleNtpAux;
24  class GSimpleNtpMeta;
25  class GDk2NuFlux;
26  }
27 }
28 namespace bsim {
29  class Dk2Nu;
30  class NuChoice;
31  class DkMeta;
32 }
33 
35 namespace simb {
36  class MCTruth;
37  class GTruth;
38  class MCFlux;
39 }
40 
42 class TLorentzVector;
43 
44 namespace evgb {
45 
46  // adapted from GENIEHelper
47  void FillMCTruth(const genie::EventRecord* grec,
48  double spillTime,
49  simb::MCTruth& mctruth);
50  void FillMCTruth(const genie::EventRecord* grec,
51  TLorentzVector& vtxOffset,
52  simb::MCTruth& mctruth);
53  void FillGTruth(const genie::EventRecord* grec,
54  simb::GTruth& gtruth);
55 
57  // adapted from NuReweight
58  //
59  genie::EventRecord* RetrieveGHEP(const simb::MCTruth& truth,
60  const simb::GTruth& gtruth,
61  bool useFirstTrajPosition = true);
62 
63  void FillMCFlux(genie::GFluxI* fdriver, simb::MCFlux& mcflux);
64 
65  void FillMCFlux(genie::flux::GNuMIFlux* gnumi,
66  simb::MCFlux& mcflux);
67  void FillMCFlux(const genie::flux::GNuMIFluxPassThroughInfo* nflux,
68  double dk2gen,
69  simb::MCFlux& flux);
70 
71  void FillMCFlux(genie::flux::GSimpleNtpFlux* gsimple,
72  simb::MCFlux& mcflux);
73  void FillMCFlux(const genie::flux::GSimpleNtpEntry* nflux_entry,
74  const genie::flux::GSimpleNtpNuMI* nflux_numi,
75  const genie::flux::GSimpleNtpAux* nflux_aux,
76  const genie::flux::GSimpleNtpMeta* nflux_meta,
77  simb::MCFlux& flux);
78 
79  void FillMCFlux(genie::flux::GDk2NuFlux* gdk2nu,
80  simb::MCFlux& mcflux);
81  void FillMCFlux(const bsim::Dk2Nu* dk2nu,
82  const bsim::NuChoice* nuchoice,
83  simb::MCFlux& flux);
84 
85 } // end-of-namespace evgb
86 
87 #endif // EVGB_GENIE2ART_H
void FillMCFlux(const bsim::Dk2Nu *dk2nu, const bsim::NuChoice *nuchoice, simb::MCFlux &flux)
Definition: GENIE2ART.cxx:962
GENIE neutrino interaction simulation objects.
Definition: GENIE2ART.h:14
genie::EventRecord * RetrieveGHEP(const simb::MCTruth &truth, const simb::GTruth &gtruth, bool useFirstTrajPosition=true)
return genie::EventRecord pointer; callee takes possession
Definition: GENIE2ART.cxx:341
Definition: GENIE2ART.h:28
Framework includes.
void FillMCTruth(const genie::EventRecord *grec, TLorentzVector &vtxOffset, simb::MCTruth &mctruth)
Definition: GENIE2ART.cxx:80
Physics generators for neutrinos, cosmic rays, and others.
Definition: CRYHelper.cxx:33
void FillGTruth(const genie::EventRecord *grec, simb::GTruth &gtruth)
Definition: GENIE2ART.cxx:243
Event generator information.
Definition: MCTruth.h:30