GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FermiMomentumTablePool.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::FermiMomentumTablePool
5 
6 \brief Singleton class to load & serve tables of Fermi momentum constants
7 
8 \author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created August 18, 2005
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 //____________________________________________________________________________
18 
19 #ifndef _FERMI_MOMENTUM_TABLE_POOL_H_
20 #define _FERMI_MOMENTUM_TABLE_POOL_H_
21 
22 #include <map>
23 #include <string>
24 
26 
27 using std::map;
28 using std::string;
29 
30 namespace genie {
31 
32 class FermiMomentumTable;
33 
35 {
36 public:
37  static FermiMomentumTablePool * Instance (void);
38 
39  const FermiMomentumTable * GetTable (string name);
40 
41 private:
44  virtual ~FermiMomentumTablePool();
45 
46  bool LoadTables (void);
47  XmlParserStatus_t ParseXMLTables (string filename);
48 
50 
51  map<string, FermiMomentumTable *> fKFSets; // kf tables
52 
53  struct Cleaner {
59  }
60  }
61  };
62  friend struct Cleaner;
63 };
64 
65 } // genie namespace
66 
67 #endif // _FERMI_MOMENTUM_TABLE_POOL_H_
static FermiMomentumTablePool * Instance(void)
static FermiMomentumTablePool * fInstance
A table of Fermi momentum constants.
map< string, FermiMomentumTable * > fKFSets
Singleton class to load &amp; serve tables of Fermi momentum constants.
const FermiMomentumTable * GetTable(string name)
XmlParserStatus_t ParseXMLTables(string filename)
enum genie::EXmlParseStatus XmlParserStatus_t