9 #ifndef LARSIM_ALGORITHMS_MARLEYGENERATOR_H
10 #define LARSIM_ALGORITHMS_MARLEYGENERATOR_H
19 namespace fhicl {
class ParameterSet; }
22 namespace rndm {
class NuRandomService; }
25 #include "nusimdata/SimulationBase/MCTruth.h"
28 #include "TLorentzVector.h"
31 #include "marley/Generator.hh"
46 rndm::NuRandomService& rand_service,
47 const std::string& generator_name );
49 void reconfigure(
const fhicl::ParameterSet& pset );
55 marley::Event* marley_event =
nullptr );
62 const std::string& fileType );
67 const std::vector<marley::Particle*>& particles,
68 const TLorentzVector& vtx_pos,
bool track );
71 const std::string& array_name,
bool missing_ok =
false );
90 #endif // LARSIM_ALGORITHMS_MARLEYGENERATOR_H
void load_marley_dictionaries()
std::unique_ptr< marley::Generator > fMarleyGenerator
void add_marley_particles(simb::MCTruth &truth, const std::vector< marley::Particle * > &particles, const TLorentzVector &vtx_pos, bool track)
MARLEYHelper(const fhicl::ParameterSet &pset, rndm::NuRandomService &rand_service, const std::string &generator_name)
simb::MCTruth create_MCTruth(const TLorentzVector &vtx_pos, marley::Event *marley_event=nullptr)
process_name use argoneut_mc_hitfinder track
std::stringstream fMarleyLogStream
std::string find_file(const std::string &fileName, const std::string &fileType)
void reconfigure(const fhicl::ParameterSet &pset)
void load_full_paths_into_json(marley::JSON &json, const std::string &array_name, bool missing_ok=false)
services TFileService fileName
const marley::Generator & get_generator() const
marley::Generator & get_generator()