Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
5
big::fill
(
size_t
tVectorSize,
size_t
thVectorSize,
size_t
sVectorSize,
6
const
std::string
& atitle){
7
for
(
size_t
i
=0;
i
<tVectorSize;++
i
){
8
big::bigEntry
b
;
9
b.
fill
(
i
,1.0);
10
tVector_
.push_back(b);
11
}
12
for
(
size_t
i
=0;
i
<thVectorSize;++
i
){
13
big::bigHeader
h
;
14
h.
fill
(atitle);
15
thVector_
.push_back(h);
16
}
17
for
(
size_t
i
=0;
i
<sVectorSize;++
i
){
18
big::bigStore
s
;
19
s.
fill
(atitle);
20
sVector_
.push_back(s);
21
}
22
}
23
24
//fill bigEntry
25
void
26
big::bigEntry::fill
(
int
r
,
float
seed
){
27
runnum
=
r
;
alpha
=
seed
;
cotalpha
=
seed
;
beta
=
seed
;
cotbeta
=
seed
;
28
costrk
[0]=seed*0.1;
costrk
[1]=seed*0.2;
costrk
[2]=seed*0.3;
29
qavg
=
seed
;
symax
=
seed
;
dyone
=
seed
;
syone
=
seed
;
sxmax
=
seed
;
30
dxone
=
seed
;
sxone
=
seed
;
dytwo
=
seed
;
sytwo
=
seed
;
dxtwo
=
seed
;
sxtwo
=
seed
;
31
qmin
=
seed
;
32
for
(
int
i
=0;
i
<
parIDX::LEN1
; ++
i
){
33
for
(
int
j
=0;
j
<
parIDX::LEN2
; ++
j
){
34
for
(
int
k
=0;
k
<
parIDX::LEN3
; ++
k
){
35
par
[
parIDX::indexOf
(
i
,
j
,
k
)]=
seed
;
36
}
37
}
38
}
39
for
(
int
i
=0;
i
<
ytempIDX::LEN1
; ++
i
){
40
for
(
int
j
=0;
j
<
ytempIDX::LEN2
; ++
j
){
41
ytemp
[
ytempIDX::indexOf
(
i
,
j
)]=
seed
;
42
}
43
}
44
for
(
int
i
=0;
i
<
xtempIDX::LEN1
; ++
i
){
45
for
(
int
j
=0;
j
<
xtempIDX::LEN2
; ++
j
){
46
xtemp
[
xtempIDX::indexOf
(
i
,
j
)]=
seed
;
47
}
48
}
49
for
(
int
i
=0;
i
<
avgIDX::LEN1
; ++
i
){
50
for
(
int
j
=0;
j
<
avgIDX::LEN2
; ++
j
){
51
for
(
int
k
=0;
k
<
avgIDX::LEN3
; ++
k
){
52
avg
[
avgIDX::indexOf
(
i
,
j
,
k
)]=
seed
;
53
}
54
}
55
}
56
for
(
int
i
=0;
i
<
aqflIDX::LEN1
; ++
i
){
57
for
(
int
j
=0;
j
<
aqflIDX::LEN2
; ++
j
){
58
for
(
int
k
=0;
k
<
aqflIDX::LEN3
; ++
k
){
59
aqfl
[
aqflIDX::indexOf
(
i
,
j
,
k
)]=
seed
;
60
}
61
}
62
}
63
for
(
int
i
=0;
i
<
chi2IDX::LEN1
; ++
i
){
64
for
(
int
j
=0;
j
<
chi2IDX::LEN2
; ++
j
){
65
for
(
int
k
=0;
k
<
chi2IDX::LEN3
; ++
k
){
66
chi2
[
chi2IDX::indexOf
(
i
,
j
,
k
)]=
seed
;
67
}
68
}
69
}
70
for
(
int
i
=0;
i
<
spareIDX::LEN1
; ++
i
){
71
for
(
int
j
=0;
j
<
spareIDX::LEN2
; ++
j
){
72
spare
[
spareIDX::indexOf
(
i
,
j
)]=
seed
;
73
}
74
}
75
}
76
77
//fill bigHeader
78
void
79
big::bigHeader::fill
(
const
std::string
& atitle){
80
title
=
std::string
(
"atitle"
);
81
ID
=0;
82
NBy=1;
83
NByx=2;
84
NBxx=3;
85
NFy=4;
86
NFyx=5;
87
NFxx=6;
88
vbias=0.1;
89
temperature=0.2;
90
fluence=0.3;
91
qscale=0.4;
92
s50=0.5;
93
templ_version=1;
94
}
95
//fill bigStore
96
void
97
big::bigStore::fill
(
const
std::string
& atitle ){
98
head.fill(atitle);
99
for
(
int
i
=0;
i
<entbyIDX::LEN1; ++
i
){
100
bigEntry
b
;
101
b.
fill
(
i
,0.5*
i
);
102
entby[entbyIDX::indexOf(
i
)]=
b
;
//or use push_back as prefer
103
}
104
std::cout
<<
"length of entbx 1 "
<<entbxIDX::LEN1<<std::endl;
105
std::cout
<<
"length of entbx 2 "
<<entbxIDX::LEN2<<std::endl;
106
std::cout
<<
"total size of entbx "
<<entbxIDX::SIZE<<std::endl;
107
for
(
int
i
=0;
i
<entbxIDX::LEN1; ++
i
){
108
for
(
int
j
=0;
j
<entbxIDX::LEN2; ++
j
){
109
bigEntry
c
;
110
c.
fill
(
i
*
j
,0.3*j);
111
entbx[entbxIDX::indexOf(
i
,j)]=
c
;
//or use push_back as prefer
112
}
113
}
114
for
(
int
i
=0;
i
<entfyIDX::LEN1; ++
i
){
115
bigEntry
f
;
116
f.
fill
(
i
,0.4*
i
);
117
entfy[entfyIDX::indexOf(
i
)]=
f
;
//or use push_back as prefer
118
}
119
for
(
int
i
=0;
i
<entfxIDX::LEN1; ++
i
){
120
for
(
int
j
=0;
j
<entfxIDX::LEN2; ++
j
){
121
bigEntry
f
;
122
f.
fill
(
i
*
j
,0.25*j);
123
entfx[entfxIDX::indexOf(
i
,j)]=
f
;
//or use push_back as prefer
124
}
125
}
126
}
indexGen.title
title
Definition:
indexGen.py:48
big::bigEntry::ytemp
std::vector< float > ytemp
Definition:
big.h:57
i
int i
Definition:
DBlmapReader.cc:9
big::bigEntry::dytwo
float dytwo
Definition:
big.h:47
big::sVector_
storeVector sVector_
Definition:
big.h:135
big::bigEntry::symax
float symax
Definition:
big.h:41
align::ID
uint32_t ID
Definition:
Definitions.h:26
big::bigEntry::qmin
float qmin
Definition:
big.h:51
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
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
big::bigEntry::sxone
float sxone
Definition:
big.h:46
big::bigEntry::avg
std::vector< float > avg
Definition:
big.h:63
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:255
big::fill
void fill(size_t tVectorSize, size_t thVectorSize, size_t sVectorSize, const std::string &atitle)
Definition:
big.cc:5
big::bigHeader::fill
void fill(const std::string &atitle)
Definition:
big.cc:79
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:134
big.h
j
int j
Definition:
DBlmapReader.cc:9
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
big::bigStore
Definition:
big.h:103
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
inline class bigEntry
Definition:
big.h:20
big::bigStore::fill
void fill(const std::string &atitle)
Definition:
big.cc:97
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
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:26
big::bigEntry::qavg
float qavg
Definition:
big.h:40
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
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:133
big::bigEntry::dyone
float dyone
Definition:
big.h:42
big::bigEntry::sxmax
float sxmax
Definition:
big.h:44
big::bigEntry::sxtwo
float sxtwo
Definition:
big.h:50
alignCSCRings.r
list r
Definition:
alignCSCRings.py:92
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
TensorIndex::indexOf
static int indexOf(const int i)
Definition:
TensorIndex.h:24
fileCollector.seed
tuple seed
Definition:
fileCollector.py:125
big::bigEntry::syone
float syone
Definition:
big.h:43
big::bigEntry::runnum
int runnum
Definition:
big.h:34
relval_steps.k
list k
Definition:
relval_steps.py:1418
TensorIndex::LEN2
Definition:
TensorIndex.h:20
TensorIndex::LEN3
Definition:
TensorIndex.h:21
big::bigEntry::dxone
float dxone
Definition:
big.h:45
TensorIndex::LEN1
Definition:
TensorIndex.h:19
Generated for CMSSW Reference Manual by
1.8.5