LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "MARLEYHelper.h"
Classes | |
struct | Config |
struct | Source_Config |
Public Types | |
using | Name = fhicl::Name |
using | Comment = fhicl::Comment |
Public Member Functions | |
MARLEYHelper (const fhicl::Table< Config > &conf, rndm::NuRandomService &rand_service, const std::string &generator_name) | |
MARLEYHelper (const fhicl::ParameterSet &pset, rndm::NuRandomService &rand_service, const std::string &generator_name) | |
void | reconfigure (const fhicl::Table< Config > &conf) |
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 | |
template<typename T > | |
marley::JSON | fhicl_atom_to_json (const fhicl::Atom< T > *atom) |
template<typename T > | |
marley::JSON | fhicl_optional_atom_to_json (const fhicl::OptionalAtom< T > *opt_atom) |
template<typename S > | |
marley::JSON | fhicl_sequence_to_json (const S *sequence) |
marley::JSON | fhicl_parameter_to_json (const fhicl::detail::ParameterBase *par) |
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) |
void | load_marley_dictionaries () |
Protected Attributes | |
std::unique_ptr< marley::Generator > | fMarleyGenerator |
std::string | fHelperName |
std::stringstream | fMarleyLogStream |
Definition at line 48 of file MARLEYHelper.h.
Definition at line 53 of file MARLEYHelper.h.
using evgen::MARLEYHelper::Name = fhicl::Name |
Definition at line 52 of file MARLEYHelper.h.
evgen::MARLEYHelper::MARLEYHelper | ( | const fhicl::Table< Config > & | conf, |
rndm::NuRandomService & | rand_service, | ||
const std::string & | generator_name | ||
) |
Definition at line 31 of file MARLEYHelper.cxx.
References fHelperName, fMarleyGenerator, fMarleyLogStream, fhicl::Table< T, KeysToIgnore >::get_PSet(), load_marley_dictionaries(), LOG_INFO, reconfigure(), rndm::NuRandomService::registerEngine(), and seed.
|
inline |
Definition at line 247 of file MARLEYHelper.h.
References create_MCTruth(), and reconfigure().
|
protected |
Definition at line 80 of file MARLEYHelper.cxx.
References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), E, simb::MCTruth::NParticles(), and part.
Referenced by create_MCTruth(), and fhicl_sequence_to_json().
simb::MCTruth evgen::MARLEYHelper::create_MCTruth | ( | const TLorentzVector & | vtx_pos, |
marley::Event * | marley_event = nullptr |
||
) |
Definition at line 111 of file MARLEYHelper.cxx.
References add_marley_particles(), fHelperName, fMarleyGenerator, fMarleyLogStream, simb::kCC, simb::kSuperNovaNeutrino, simb::kUnknownInteraction, LOG_INFO, simb::MCTruth::SetNeutrino(), and simb::MCTruth::SetOrigin().
Referenced by MARLEYHelper().
|
inlineprotected |
Definition at line 269 of file MARLEYHelper.h.
|
inlineprotected |
|
protected |
Definition at line 289 of file MARLEYHelper.cxx.
References fhicl::is_atom(), fhicl::detail::ParameterBase::is_optional(), fhicl::is_sequence(), fhicl::is_table(), fhicl::detail::ParameterBase::key(), fhicl::detail::ParameterBase::parameter_type(), and fhicl::detail::ParameterBase::should_use().
Referenced by fhicl_sequence_to_json(), and reconfigure().
|
inlineprotected |
Definition at line 284 of file MARLEYHelper.h.
References add_marley_particles(), lar::dump::array(), fhicl_parameter_to_json(), load_full_paths_into_json(), and track.
std::string evgen::MARLEYHelper::find_file | ( | const std::string & | fileName, |
const std::string & | fileType | ||
) |
Definition at line 176 of file MARLEYHelper.cxx.
Referenced by get_generator(), and load_full_paths_into_json().
|
inline |
Definition at line 260 of file MARLEYHelper.h.
References fMarleyGenerator.
|
inline |
Definition at line 261 of file MARLEYHelper.h.
References find_file(), and fMarleyGenerator.
|
protected |
Definition at line 193 of file MARLEYHelper.cxx.
References find_file(), and fhicl::detail::atom::value().
Referenced by fhicl_sequence_to_json(), and reconfigure().
|
protected |
Definition at line 247 of file MARLEYHelper.cxx.
References fHelperName, and LOG_INFO.
Referenced by MARLEYHelper().
void evgen::MARLEYHelper::reconfigure | ( | const fhicl::Table< Config > & | conf | ) |
Definition at line 215 of file MARLEYHelper.cxx.
References fHelperName, fhicl_parameter_to_json(), fMarleyGenerator, load_full_paths_into_json(), and LOG_INFO.
Referenced by MARLEYHelper().
|
protected |
Definition at line 309 of file MARLEYHelper.h.
Referenced by create_MCTruth(), load_marley_dictionaries(), MARLEYHelper(), and reconfigure().
|
protected |
Definition at line 306 of file MARLEYHelper.h.
Referenced by create_MCTruth(), get_generator(), MARLEYHelper(), and reconfigure().
|
protected |
Definition at line 313 of file MARLEYHelper.h.
Referenced by create_MCTruth(), and MARLEYHelper().