Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Alignment
CocoaModel
interface
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
11
#include "
Alignment/CocoaUtilities/interface/CocoaGlobals.h
"
12
#include <map>
13
typedef
std::map<ALIstring, ALIdouble, std::less<ALIstring> >
msd
;
14
15
class
ParameterMgr
{
16
private
:
17
ParameterMgr
(){};
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
29
ALIint
getParameterValue
(
const
ALIstring
&
name
,
ALIdouble
&
val
);
30
31
private
:
32
static
ParameterMgr
*
theInstance
;
33
34
msd
theParameters
;
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
Generated for CMSSW Reference Manual by
1.8.16