CMS 3D CMS Logo

GlobalOptionMgr.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: GlobalOptionMgr.h
3 //CAT: Model
4 //
5 // Class to manage the sets of fitted entries (one set per each measurement data set)
6 //
7 // History: v1.0
8 // Pedro Arce
9 
10 #ifndef _GlobalOptionMgr_HH
11 #define _GlobalOptionMgr_HH
12 
14 #include <map>
15 
16 class ALIFileIn;
17 
19 private:
21 
22 public:
23  //---------- Constructors / Destructor
25  static GlobalOptionMgr* getInstance();
26 
27 public:
30 
31  std::map<ALIstring, ALIdouble, std::less<ALIstring> >& GlobalOptions() { return theGlobalOptions; }
32 
33  ALIdouble getGlobalOption(const ALIstring& sstr);
34 
36  int getGlobalOptionValue(const ALIstring& sstr, ALIdouble& val);
37  void setGlobalOption(const ALIstring go, const ALIdouble val, ALIFileIn& filein);
38  bool setGlobalOption(const ALIstring go, const ALIdouble val, bool bExit = true);
39 
40 private:
43  std::map<ALIstring, ALIdouble, std::less<ALIstring> > theGlobalOptions;
44 };
45 
46 #endif
GlobalOptionMgr::GlobalOptions
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
Definition: GlobalOptionMgr.h:31
GlobalOptionMgr
Definition: GlobalOptionMgr.h:18
GlobalOptionMgr::getInstance
static GlobalOptionMgr * getInstance()
Definition: GlobalOptionMgr.cc:18
ALIstring
std::string ALIstring
Definition: CocoaGlobals.h:9
GlobalOptionMgr::theGlobalOptions
std::map< ALIstring, ALIdouble, std::less< ALIstring > > theGlobalOptions
global options
Definition: GlobalOptionMgr.h:43
GlobalOptionMgr::getGlobalOptionValue
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
Definition: GlobalOptionMgr.cc:115
GlobalOptionMgr::getGlobalOption
ALIdouble getGlobalOption(const ALIstring &sstr)
Definition: GlobalOptionMgr.cc:90
GlobalOptionMgr::theInstance
static GlobalOptionMgr * theInstance
Definition: GlobalOptionMgr.h:41
GlobalOptionMgr::setDefaultGlobalOptions
void setDefaultGlobalOptions()
Set the list of default global options.
Definition: GlobalOptionMgr.cc:27
ALIdouble
long double ALIdouble
Definition: CocoaGlobals.h:11
GlobalOptionMgr::setGlobalOption
void setGlobalOption(const ALIstring go, const ALIdouble val, ALIFileIn &filein)
Definition: GlobalOptionMgr.cc:137
heppy_batch.val
val
Definition: heppy_batch.py:351
GlobalOptionMgr::GlobalOptionMgr
GlobalOptionMgr()
Definition: GlobalOptionMgr.h:20
GlobalOptionMgr::~GlobalOptionMgr
~GlobalOptionMgr()
Definition: GlobalOptionMgr.h:24
CocoaGlobals.h
ALIFileIn
Definition: ALIFileIn.h:20