CMS 3D CMS Logo

ParameterMgr.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: ParameterMgr.h
3 //CAT: Model
4 //
5 // Manages the parameters of the input file (variables that are given a value to be reused in the file)
6 //
7 // History: v1.0 11/11/01 Pedro Arce
8 #ifndef ParameterMgr_h
9 #define ParameterMgr_h
10 
12 #include <map>
13 typedef std::map<ALIstring, ALIdouble, std::less<ALIstring> > msd;
14 
15 class ParameterMgr {
16 private:
18 
19 public:
20  static ParameterMgr* getInstance();
21  ALIdouble getVal(const ALIstring& str, const ALIdouble dimensionFactor = 1.);
22 
23  void addParameter(const ALIstring& name, const ALIstring& valstr);
24  void setRandomSeed(const long seed);
25  void addRandomGaussParameter(const ALIstring& name, const ALIstring& valMean, const ALIstring& valStdDev);
26  void addRandomFlatParameter(const ALIstring& name, const ALIstring& valMean, const ALIstring& valInterval);
27 
28  // get the parameter value if parameter name exists and return 1, else return 0
30 
31 private:
33 
35 };
36 
37 #endif
ParameterMgr::getVal
ALIdouble getVal(const ALIstring &str, const ALIdouble dimensionFactor=1.)
Definition: ParameterMgr.cc:27
ParameterMgr::addParameter
void addParameter(const ALIstring &name, const ALIstring &valstr)
Definition: ParameterMgr.cc:63
ParameterMgr::getInstance
static ParameterMgr * getInstance()
Definition: ParameterMgr.cc:18
ParameterMgr::theParameters
msd theParameters
Definition: ParameterMgr.h:34
ALIstring
std::string ALIstring
Definition: CocoaGlobals.h:9
ParameterMgr::addRandomGaussParameter
void addRandomGaussParameter(const ALIstring &name, const ALIstring &valMean, const ALIstring &valStdDev)
Definition: ParameterMgr.cc:75
ParameterMgr::setRandomSeed
void setRandomSeed(const long seed)
Definition: ParameterMgr.cc:72
ParameterMgr::getParameterValue
ALIint getParameterValue(const ALIstring &name, ALIdouble &val)
Definition: ParameterMgr.cc:114
ParameterMgr::theInstance
static ParameterMgr * theInstance
Definition: ParameterMgr.h:32
fileCollector.seed
seed
Definition: fileCollector.py:127
msd
std::map< ALIstring, ALIdouble, std::less< ALIstring > > msd
Definition: ErrorCorrelationMgr.h:15
str
#define str(s)
Definition: TestProcessor.cc:51
ParameterMgr::addRandomFlatParameter
void addRandomFlatParameter(const ALIstring &name, const ALIstring &valMean, const ALIstring &valInterval)
Definition: ParameterMgr.cc:93
ALIdouble
long double ALIdouble
Definition: CocoaGlobals.h:11
msd
std::map< ALIstring, ALIdouble, std::less< ALIstring > > msd
Definition: ParameterMgr.h:13
heppy_batch.val
val
Definition: heppy_batch.py:351
ParameterMgr
Definition: ParameterMgr.h:15
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ALIint
int ALIint
Definition: CocoaGlobals.h:15
CocoaGlobals.h
ParameterMgr::ParameterMgr
ParameterMgr()
Definition: ParameterMgr.h:17