GiBUUHelper.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file GiBUUHelper.h
3 /// \brief Wrapper for generating neutrino interactions with GiBUU
4 ///
5 /// \version $Id: GENIEHelper.cxx,v 1.58 2012-11-28 23:04:03 rhatcher Exp $
6 /// \author brebel@fnal.gov rhatcher@fnal.gov
7 /// update 2010-03-04 Sarah Budd added simple_flux
8 /// update 2013-04-24 rhatcher adapt to R-2_8_0 interface; subset flux files
9 ////////////////////////////////////////////////////////////////////////
10 
11 // GENIE includes
12 #ifdef GENIE_PRE_R3
13  #include "EVGCore/EventRecord.h"
14 #else
15  #include "GENIE/Framework/EventGen/EventRecord.h"
16 #endif
17 
18 // NuTools includes
20 #include "nutools/EventGeneratorBase/GiBUU/GiBUUHelper.h"
26 
27 // Framework includes
29 #include "cetlib/search_path.h"
30 #include "cetlib/getenv.h"
31 #include "cetlib/split_path.h"
32 #include "cetlib_except/exception.h"
33 #include "fhiclcpp/ParameterSet.h"
35 
36 #ifndef NO_IFDH_LIB
37  // IFDHC
38  #include "ifdh.h"
39 #else
40  // nothing doing ... use ifdef to hide any referece that might need header
41  #include <cassert>
42 #endif
43 
44 namespace evgb {
45 
46  //static const int kNue = 0; // unused
47  //static const int kNueBar = 1; // unused
48  //static const int kNuMu = 2; // unused
49  //static const int kNuMuBar = 3; // unused
50  //static const int kNuTau = 4; // unused
51  //static const int kNuTauBar = 5; // unused
52 
53  //--------------------------------------------------
55  TGeoManager* geoManager,
56  std::string const& rootFile,
57  double const& detectorMass)
58  : GENIEHelper(pset, geoManager, rootFile, detectorMass),
59  fGiBUUEventRecord(0)
60  {
61  }
62 
63  //--------------------------------------------------
65  {
66  // clean up owned genie object (other genie obj are ref ptrs)
67  delete fGiBUUEventRecord;
68 
69  }
70 
71 
72 } // namespace evgb
73 
std::string string
Definition: nybbler.cc:12
Particle class.
object containing MC flux information
genie::EventRecord * fGiBUUEventRecord
Definition: GiBUUHelper.h:34
GiBUUHelper(fhicl::ParameterSet const &pset, TGeoManager *rootGeom, std::string const &rootFile, double const &detectorMass)
Definition: GiBUUHelper.cxx:54
Physics generators for neutrinos, cosmic rays, and others.
Definition: CRYHelper.cxx:33