LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MARLEYHelper.h"
Public Member Functions | |
MARLEYHelper (const fhicl::ParameterSet &pset, rndm::NuRandomService &rand_service, const std::string &generator_name) | |
void | reconfigure (const fhicl::ParameterSet &pset) |
simb::MCTruth | create_MCTruth (const TLorentzVector &vtx_pos, marley::Event *marley_event=nullptr) |
marley::Generator & | get_generator () |
const marley::Generator & | get_generator () const |
std::string | find_file (const std::string &fileName, const std::string &fileType) |
Protected Member Functions | |
void | add_marley_particles (simb::MCTruth &truth, const std::vector< marley::Particle * > &particles, const TLorentzVector &vtx_pos, bool track) |
void | load_full_paths_into_json (marley::JSON &json, const std::string &array_name, bool missing_ok=false) |
void | load_marley_dictionaries () |
Protected Attributes | |
std::unique_ptr< marley::Generator > | fMarleyGenerator |
std::string | fHelperName |
std::stringstream | fMarleyLogStream |
Definition at line 45 of file MARLEYHelper.h.
evgen::MARLEYHelper::MARLEYHelper | ( | const fhicl::ParameterSet & | pset, |
rndm::NuRandomService & | rand_service, | ||
const std::string & | generator_name | ||
) |
Definition at line 35 of file MARLEYHelper.cxx.
References fHelperName, fMarleyGenerator, fMarleyLogStream, load_marley_dictionaries(), MF_LOG_INFO, reconfigure(), rndm::NuRandomService::registerEngine(), and seed.
|
protected |
Definition at line 84 of file MARLEYHelper.cxx.
References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), E, simb::MCTruth::NParticles(), and part.
Referenced by create_MCTruth().
simb::MCTruth evgen::MARLEYHelper::create_MCTruth | ( | const TLorentzVector & | vtx_pos, |
marley::Event * | marley_event = nullptr |
||
) |
Definition at line 120 of file MARLEYHelper.cxx.
References add_marley_particles(), fHelperName, fMarleyGenerator, fMarleyLogStream, simb::kCC, simb::kSuperNovaNeutrino, simb::kUnknownInteraction, MF_LOG_INFO, simb::MCTruth::SetNeutrino(), and simb::MCTruth::SetOrigin().
std::string evgen::MARLEYHelper::find_file | ( | const std::string & | fileName, |
const std::string & | fileType | ||
) |
Definition at line 183 of file MARLEYHelper.cxx.
Referenced by load_full_paths_into_json().
|
inline |
Definition at line 60 of file MARLEYHelper.h.
|
inline |
Definition at line 61 of file MARLEYHelper.h.
References track.
|
protected |
Definition at line 198 of file MARLEYHelper.cxx.
References find_file(), and value.
Referenced by reconfigure().
|
protected |
Definition at line 255 of file MARLEYHelper.cxx.
References fHelperName, and MF_LOG_INFO.
Referenced by MARLEYHelper().
void evgen::MARLEYHelper::reconfigure | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 223 of file MARLEYHelper.cxx.
References fHelperName, fMarleyGenerator, evgen::MarleyParameterSetWalker::get_json(), load_full_paths_into_json(), MF_LOG_INFO, and fhicl::ParameterSet::walk().
Referenced by MARLEYHelper().
|
protected |
Definition at line 78 of file MARLEYHelper.h.
Referenced by create_MCTruth(), load_marley_dictionaries(), MARLEYHelper(), and reconfigure().
|
protected |
Definition at line 75 of file MARLEYHelper.h.
Referenced by create_MCTruth(), MARLEYHelper(), and reconfigure().
|
protected |
Definition at line 82 of file MARLEYHelper.h.
Referenced by create_MCTruth(), and MARLEYHelper().