src
CondFormats
Calibration
src
big.cc
Go to the documentation of this file.
1
#include "
CondFormats/Calibration/interface/big.h
"
2
#include <iostream>
3
//fill big
4
void
big::fill
(
size_t
tVectorSize,
size_t
thVectorSize,
size_t
sVectorSize,
const
std::string
& atitle) {
5
for
(
size_t
i
= 0;
i
< tVectorSize; ++
i
) {
6
big::bigEntry
b
;
7
b
.fill(
i
, 1.0);
8
tVector_
.push_back(
b
);
9
}
10
for
(
size_t
i
= 0;
i
< thVectorSize; ++
i
) {
11
big::bigHeader
h
;
12
h
.fill(atitle);
13
thVector_
.push_back(
h
);
14
}
15
for
(
size_t
i
= 0;
i
< sVectorSize; ++
i
) {
16
big::bigStore
s
;
17
s
.fill(atitle);
18
sVector_
.push_back(
s
);
19
}
20
}
21
22
//fill bigEntry
23
void
big::bigEntry::fill
(
int
r
,
float
seed
) {
24
runnum
=
r
;
25
alpha
=
seed
;
26
cotalpha
=
seed
;
27
beta
=
seed
;
28
cotbeta
=
seed
;
29
costrk
[0] =
seed
* 0.1;
30
costrk
[1] =
seed
* 0.2;
31
costrk
[2] =
seed
* 0.3;
32
qavg
=
seed
;
33
symax
=
seed
;
34
dyone
=
seed
;
35
syone
=
seed
;
36
sxmax
=
seed
;
37
dxone
=
seed
;
38
sxone
=
seed
;
39
dytwo
=
seed
;
40
sytwo
=
seed
;
41
dxtwo
=
seed
;
42
sxtwo
=
seed
;
43
qmin
=
seed
;
44
for
(
int
i
= 0;
i
<
parIDX::LEN1
; ++
i
) {
45
for
(
int
j
= 0;
j
<
parIDX::LEN2
; ++
j
) {
46
for
(
int
k
= 0;
k
<
parIDX::LEN3
; ++
k
) {
47
par
[
parIDX::indexOf
(
i
,
j
,
k
)] =
seed
;
48
}
49
}
50
}
51
for
(
int
i
= 0;
i
<
ytempIDX::LEN1
; ++
i
) {
52
for
(
int
j
= 0;
j
<
ytempIDX::LEN2
; ++
j
) {
53
ytemp
[
ytempIDX::indexOf
(
i
,
j
)] =
seed
;
54
}
55
}
56
for
(
int
i
= 0;
i
<
xtempIDX::LEN1
; ++
i
) {
57
for
(
int
j
= 0;
j
<
xtempIDX::LEN2
; ++
j
) {
58
xtemp
[
xtempIDX::indexOf
(
i
,
j
)] =
seed
;
59
}
60
}
61
for
(
int
i
= 0;
i
<
avgIDX::LEN1
; ++
i
) {
62
for
(
int
j
= 0;
j
<
avgIDX::LEN2
; ++
j
) {
63
for
(
int
k
= 0;
k
<
avgIDX::LEN3
; ++
k
) {
64
avg
[
avgIDX::indexOf
(
i
,
j
,
k
)] =
seed
;
65
}
66
}
67
}
68
for
(
int
i
= 0;
i
<
aqflIDX::LEN1
; ++
i
) {
69
for
(
int
j
= 0;
j
<
aqflIDX::LEN2
; ++
j
) {
70
for
(
int
k
= 0;
k
<
aqflIDX::LEN3
; ++
k
) {
71
aqfl
[
aqflIDX::indexOf
(
i
,
j
,
k
)] =
seed
;
72
}
73
}
74
}
75
for
(
int
i
= 0;
i
<
chi2IDX::LEN1
; ++
i
) {
76
for
(
int
j
= 0;
j
<
chi2IDX::LEN2
; ++
j
) {
77
for
(
int
k
= 0;
k
<
chi2IDX::LEN3
; ++
k
) {
78
chi2
[
chi2IDX::indexOf
(
i
,
j
,
k
)] =
seed
;
79
}
80
}
81
}
82
for
(
int
i
= 0;
i
<
spareIDX::LEN1
; ++
i
) {
83
for
(
int
j
= 0;
j
<
spareIDX::LEN2
; ++
j
) {
84
spare
[
spareIDX::indexOf
(
i
,
j
)] =
seed
;
85
}
86
}
87
}
88
89
//fill bigHeader
90
void
big::bigHeader::fill
(
const
std::string
& atitle) {
91
title
=
std::string
(
"atitle"
);
92
ID
= 0;
93
NBy = 1;
94
NByx = 2;
95
NBxx = 3;
96
NFy = 4;
97
NFyx = 5;
98
NFxx = 6;
99
vbias = 0.1;
100
temperature
= 0.2;
101
fluence = 0.3;
102
qscale = 0.4;
103
s50 = 0.5;
104
templ_version = 1;
105
}
106
//fill bigStore
107
void
big::bigStore::fill
(
const
std::string
& atitle) {
108
head.fill(atitle);
109
for
(
int
i
= 0;
i
< entbyIDX::LEN1; ++
i
) {
110
bigEntry
b
;
111
b
.fill(
i
, 0.5 *
i
);
112
entby[entbyIDX::indexOf(
i
)] =
b
;
//or use push_back as prefer
113
}
114
std::cout
<<
"length of entbx 1 "
<< entbxIDX::LEN1 << std::endl;
115
std::cout
<<
"length of entbx 2 "
<< entbxIDX::LEN2 << std::endl;
116
std::cout
<<
"total size of entbx "
<<
entbxIDX::SIZE
<< std::endl;
117
for
(
int
i
= 0;
i
< entbxIDX::LEN1; ++
i
) {
118
for
(
int
j
= 0;
j
< entbxIDX::LEN2; ++
j
) {
119
bigEntry
c
;
120
c
.fill(
i
*
j
, 0.3 *
j
);
121
entbx[entbxIDX::indexOf(
i
,
j
)] =
c
;
//or use push_back as prefer
122
}
123
}
124
for
(
int
i
= 0;
i
< entfyIDX::LEN1; ++
i
) {
125
bigEntry
f
;
126
f
.fill(
i
, 0.4 *
i
);
127
entfy[entfyIDX::indexOf(
i
)] =
f
;
//or use push_back as prefer
128
}
129
for
(
int
i
= 0;
i
< entfxIDX::LEN1; ++
i
) {
130
for
(
int
j
= 0;
j
< entfxIDX::LEN2; ++
j
) {
131
bigEntry
f
;
132
f
.fill(
i
*
j
, 0.25 *
j
);
133
entfx[entfxIDX::indexOf(
i
,
j
)] =
f
;
//or use push_back as prefer
134
}
135
}
136
}
big::bigEntry::ytemp
std::vector< float > ytemp
Definition:
big.h:57
big::bigEntry::dytwo
float dytwo
Definition:
big.h:47
mps_fire.i
i
Definition:
mps_fire.py:429
DummyCfis.c
c
Definition:
DummyCfis.py:86
big::sVector_
storeVector sVector_
Definition:
big.h:134
ntupleEnum.SIZE
SIZE
Definition:
ntupleEnum.py:86
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
big::bigEntry::symax
float symax
Definition:
big.h:41
align::ID
uint32_t ID
Definition:
Definitions.h:24
big::bigEntry::qmin
float qmin
Definition:
big.h:51
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
TensorIndex::LEN2
Definition:
TensorIndex.h:20
big::bigEntry::costrk
float costrk[3]
Definition:
big.h:39
big::bigEntry::chi2
std::vector< float > chi2
Definition:
big.h:69
big::bigEntry::cotalpha
float cotalpha
Definition:
big.h:36
fileCollector.seed
seed
Definition:
fileCollector.py:127
big::bigEntry::sxone
float sxone
Definition:
big.h:46
big::bigEntry::avg
std::vector< float > avg
Definition:
big.h:63
TensorIndex::LEN3
Definition:
TensorIndex.h:21
big::bigEntry::xtemp
std::vector< float > xtemp
Definition:
big.h:60
big::bigEntry::cotbeta
float cotbeta
Definition:
big.h:38
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
big::fill
void fill(size_t tVectorSize, size_t thVectorSize, size_t sVectorSize, const std::string &atitle)
Definition:
big.cc:4
big::bigHeader::fill
void fill(const std::string &atitle)
Definition:
big.cc:90
big::bigEntry::sytwo
float sytwo
Definition:
big.h:48
big::bigEntry::par
std::vector< float > par
Definition:
big.h:54
big::thVector_
headVector thVector_
Definition:
big.h:133
big.h
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
big::bigStore
Definition:
big.h:102
big::bigEntry
inline class bigEntry
Definition:
big.h:19
big::bigStore::fill
void fill(const std::string &atitle)
Definition:
big.cc:107
big::bigEntry::alpha
float alpha
Definition:
big.h:35
big::bigEntry::spare
std::vector< float > spare
Definition:
big.h:72
big::bigEntry::dxtwo
float dxtwo
Definition:
big.h:49
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
big::bigHeader
Definition:
big.h:78
big::bigEntry::beta
float beta
Definition:
big.h:37
big::bigEntry::fill
void fill(int runnum, float seed)
Definition:
big.cc:23
big::bigEntry::qavg
float qavg
Definition:
big.h:40
big::bigEntry::aqfl
std::vector< float > aqfl
Definition:
big.h:66
b
double b
Definition:
hdecay.h:120
big::tVector_
entryVector tVector_
Definition:
big.h:132
big::bigEntry::dyone
float dyone
Definition:
big.h:42
runGCPTkAlMap.title
string title
Definition:
runGCPTkAlMap.py:94
jvcParameters_cfi.temperature
temperature
Definition:
jvcParameters_cfi.py:7
big::bigEntry::sxmax
float sxmax
Definition:
big.h:44
big::bigEntry::sxtwo
float sxtwo
Definition:
big.h:50
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
TensorIndex::indexOf
static int indexOf(const int i)
Definition:
TensorIndex.h:24
big::bigEntry::syone
float syone
Definition:
big.h:43
big::bigEntry::runnum
int runnum
Definition:
big.h:34
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
big::bigEntry::dxone
float dxone
Definition:
big.h:45
TensorIndex::LEN1
Definition:
TensorIndex.h:19
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
Generated for CMSSW Reference Manual by
1.8.14