GENIEGenerator
Loading...
Searching...
No Matches
ConfigIsotopeMapUtils.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\namespace genie::utils::config
5
6\brief Simple functions for loading and reading nucleus dependent keys
7 from config files.
8
9\author Brian Coopersmith, University of Rochester
10
11\created October 23, 2014
12
13\cpright Copyright (c) 2003-2025, The GENIE Collaboration
14 For the full text of the license visit http://copyright.genie-mc.org
15*/
16//____________________________________________________________________________
17#ifndef _CONFIG_UTILS_H
18#define _CONFIG_UTILS_H
19
20#include <map>
22
23namespace genie {
24class Registry;
25
26namespace utils {
27namespace config {
29 const Target& target, const std::map<int, double>& nuc_to_val,
30 const std::map<std::pair<int, int>, double>& nucA_range_to_val,
31 double* val);
32void LoadAllNucARangesForKey(const char* key_name, const char* log_tool_name,
34 std::map<std::pair<int, int>, double>* nuc_rangeA_to_val);
35void LoadAllIsotopesForKey(const char* key_name, const char* log_tool_name,
36 Registry* config, std::map<int, double>* nuc_to_val);
37
38bool GetDoubleKeyPDG(const char* valName, const int pdgc,
39 Registry* config, double* val);
40bool GetDoubleKeyRangeNucA(const char* valName, const int lowA,
41 const int highA, Registry* config, double* val);
42
43} // namespace config
44} // namespace utils
45} // namespace genie
46
47#endif // _CONFIG_UTILS_H
A registry. Provides the container for algorithm configuration parameters.
Definition Registry.h:65
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition Target.h:40
Simple functions for loading and reading nucleus dependent keys from config files.
void LoadAllIsotopesForKey(const char *key_name, const char *log_tool_name, Registry *config, map< int, double > *nuc_to_val)
bool GetValueFromNuclearMaps(const Target &target, const map< int, double > &nuc_to_val, const map< pair< int, int >, double > &nucA_range_to_val, double *val)
void LoadAllNucARangesForKey(const char *key_name, const char *log_tool_name, Registry *config, map< pair< int, int >, double > *nuc_rangeA_to_val)
bool GetDoubleKeyPDG(const char *valName, const int pdgc, Registry *config, double *val)
bool GetDoubleKeyRangeNucA(const char *valName, const int lowA, const int highA, Registry *config, double *val)
Root of GENIE utility namespaces.
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25