MARLEY (Model of Argon Reaction Low Energy Yields)  v1.2.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
marley::JSONConfig Class Reference
Inheritance diagram for marley::JSONConfig:
marley::RootJSONConfig

Public Types

using InterpMethod = marley::InterpolationGrid< double > ::InterpolationMethod
 

Public Member Functions

 JSONConfig (const marley::JSON &object)
 
 JSONConfig (const std::string &json_filename)
 
marley::Generator create_generator () const
 
InterpMethod get_interpolation_method (const std::string &rule) const
 
const marley::JSONget_json () const
 
int neutrino_pdg (const std::string &nu) const
 
void prepare_direction (marley::Generator &gen) const
 
void prepare_neutrino_source (marley::Generator &gen) const
 
void prepare_reactions (marley::Generator &gen) const
 
void prepare_structure (marley::Generator &gen) const
 
void prepare_target (marley::Generator &gen) const
 
virtual bool process_extra_source_types (const std::string &, const marley::JSON &, int, std::unique_ptr< marley::NeutrinoSource > &) const
 
void set_json (const marley::JSON &json)
 
void update_logger_settings () const
 

Static Public Member Functions

static void handle_json_error (const std::string &name, const marley::JSON &json)
 

Protected Member Functions

std::string source_get (const char *name, const marley::JSON &source_spec, const char *description, const char *default_str) const
 Helper function for loading strings from the JSON configuration.
 

Protected Attributes

marley::JSON json_
 JSON object describing this configuration.
 

The documentation for this class was generated from the following files: