NuReweight.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file NuReweight.h
3 /// \brief Wrapper for reweightings neutrino interactions within the ART framework
4 ///
5 /// \author nathan.mayer@tufts.edu
6 ////////////////////////////////////////////////////////////////////////
7 
8 #include "nutools/NuReweight/GENIEReweight.h"
9 
10 namespace simb { class MCTruth; }
11 namespace simb { class GTruth; }
12 
13 namespace rwgt{
14 
15  class NuReweight : public GENIEReweight {
16 
17  public:
18  NuReweight();
19  ~NuReweight();
20 
21  double CalcWeight(const simb::MCTruth & truth, const simb::GTruth & gtruth) const;
22 
23  private:
24  genie::EventRecord RetrieveGHEP(const simb::MCTruth & truth, const simb::GTruth & gtruth) const;
25 
26  };
27 
28 
29 }
genie::EventRecord * RetrieveGHEP(const simb::MCTruth &truth, const simb::GTruth &gtruth, bool useFirstTrajPosition=true)
return genie::EventRecord pointer; callee takes possession
Definition: GENIE2ART.cxx:455
Base utilities and modules for event generation and detector simulation.
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Definition: EventRecord.h:38
Event generator information.
Definition: MCTruth.h:32