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 <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created August 18, 2005
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
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);
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_
const XML_Char * name
Definition: expat.h:151
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
static FermiMomentumTablePool * Instance(void)
static FermiMomentumTablePool * fInstance
A table of Fermi momentum constants.
TFile * fmc
Definition: bdt_com.C:14
string filename
Definition: shutoffs.py:106
map< string, FermiMomentumTable * > fKFSets
Singleton class to load & serve tables of Fermi momentum constants.
const FermiMomentumTable * GetTable(string name)
XmlParserStatus_t ParseXMLTables(string filename)
enum genie::EXmlParseStatus XmlParserStatus_t
enum BeamMode string