GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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-2024, 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 
23 namespace genie {
24 class Registry;
25 
26 namespace utils {
27 namespace 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);
32 void LoadAllNucARangesForKey(const char* key_name, const char* log_tool_name,
33  Registry* config,
34  std::map<std::pair<int, int>, double>* nuc_rangeA_to_val);
35 void LoadAllIsotopesForKey(const char* key_name, const char* log_tool_name,
36  Registry* config, std::map<int, double>* nuc_to_val);
37 
38 bool GetDoubleKeyPDG(const char* valName, const int pdgc,
39  Registry* config, double* val);
40 bool 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
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)
bool GetDoubleKeyRangeNucA(const char *valName, const int lowA, const int highA, Registry *config, double *val)
bool GetDoubleKeyPDG(const char *valName, const int pdgc, Registry *config, double *val)
void LoadAllNucARangesForKey(const char *key_name, const char *log_tool_name, Registry *config, map< pair< int, int >, double > *nuc_rangeA_to_val)