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
MillePedeAlignmentAlgorithm
src
MillePedeVariables.cc
Go to the documentation of this file.
1
12
#include "
Alignment/MillePedeAlignmentAlgorithm/interface/MillePedeVariables.h
"
13
14
//__________________________________________________________________________________________________
15
MillePedeVariables::MillePedeVariables
(
unsigned
int
nParams,
unsigned
int
label
,
const
std::string
&
name
)
16
: myIsValid(nParams),
17
myDiffBefore(nParams),
18
myGlobalCor(nParams),
19
myPreSigma(nParams),
20
myParameter(nParams),
21
mySigma(nParams),
22
myHitsX(0),
23
myHitsY(0),
24
myLabel(
label
),
25
myName(
name
) {
26
for
(
unsigned
int
i
= 0;
i
< nParams; ++
i
) {
27
this->
setAllDefault
(
i
);
28
}
29
}
30
31
//__________________________________________________________________________________________________
32
bool
MillePedeVariables::setAllDefault
(
unsigned
int
nParam
) {
33
if
(nParam >= this->
size
())
34
return
false
;
35
36
myIsValid
[
nParam
] =
true
;
37
myDiffBefore
[
nParam
] = -999999.;
38
myGlobalCor
[
nParam
] = -.2;
// -1. seems to occur also in pede output
39
myPreSigma
[
nParam
] = -11.;
// -1 means fixed in pede
40
myParameter
[
nParam
] = -999999.;
41
mySigma
[
nParam
] = -1.;
42
43
return
true
;
44
}
45
46
//__________________________________________________________________________________________________
47
bool
MillePedeVariables::isFixed
(
unsigned
int
nParam
)
const
{
48
if
(nParam >= this->
size
())
49
return
false
;
50
51
return
(this->
preSigma
()[nParam] < 0.);
52
}
MillePedeVariables::myDiffBefore
std::vector< float > myDiffBefore
Definition:
MillePedeVariables.h:94
mps_fire.i
i
Definition:
mps_fire.py:428
pfTracksFromL1Tracks_cfi.nParam
nParam
Definition:
pfTracksFromL1Tracks_cfi.py:5
MillePedeVariables.h
MillePedeVariables::size
unsigned int size() const
number of parameters
Definition:
MillePedeVariables.h:33
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MillePedeVariables::setAllDefault
bool setAllDefault(unsigned int nParam)
set default values for all data concerning nParam (false if nParam out of range)
Definition:
MillePedeVariables.cc:32
MillePedeVariables::myParameter
std::vector< float > myParameter
<= 0 means fixed
Definition:
MillePedeVariables.h:97
MillePedeVariables::mySigma
std::vector< float > mySigma
Definition:
MillePedeVariables.h:98
MillePedeVariables::preSigma
const std::vector< float > & preSigma() const
get array of presigmas (<= 0: means fixed)
Definition:
MillePedeVariables.h:51
MillePedeVariables::myIsValid
std::vector< bool > myIsValid
Definition:
MillePedeVariables.h:93
MillePedeVariables::myPreSigma
std::vector< float > myPreSigma
Definition:
MillePedeVariables.h:96
MillePedeVariables::isFixed
bool isFixed(unsigned int nParam) const
true if parameter is fixed
Definition:
MillePedeVariables.cc:47
MillePedeVariables::MillePedeVariables
MillePedeVariables()
Definition:
MillePedeVariables.h:91
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
label
const char * label
Definition:
PFTauDecayModeTools.cc:11
MillePedeVariables::myGlobalCor
std::vector< float > myGlobalCor
Definition:
MillePedeVariables.h:95
Generated for CMSSW Reference Manual by
1.8.16