Main Page
Namespaces
Classes
Package Documentation
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
}
alpha
float alpha
Definition:
AMPTWrapper.h:95
mps_fire.i
i
Definition:
mps_fire.py:277
big::sVector_
storeVector sVector_
Definition:
big.h:135
ntupleEnum.SIZE
SIZE
Definition:
ntupleEnum.py:86
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition:
L1TUtmAlgorithmRcd.h:4
pfBoostedDoubleSVAK8TagInfos_cfi.beta
beta
Definition:
pfBoostedDoubleSVAK8TagInfos_cfi.py:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SurveyInfoScenario_cff.seed
seed
Definition:
SurveyInfoScenario_cff.py:295
align::ID
uint32_t ID
Definition:
Definitions.h:26
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
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::thVector_
headVector thVector_
Definition:
big.h:134
big.h
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
big::bigStore
Definition:
big.h:103
big::bigEntry
inline class bigEntry
Definition:
big.h:20
big::bigStore::fill
void fill(const std::string &atitle)
Definition:
big.cc:97
gen::k
int k[5][pyjets_maxn]
Definition:
Cascade2Hadronizer.cc:79
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
big::bigHeader
Definition:
big.h:78
big::bigEntry::fill
void fill(int runnum, float seed)
Definition:
big.cc:26
b
double b
Definition:
hdecay.h:120
big::tVector_
entryVector tVector_
Definition:
big.h:133
fftjetcommon_cfi.title
title
Definition:
fftjetcommon_cfi.py:32
jvcParameters_cfi.temperature
temperature
Definition:
jvcParameters_cfi.py:7
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
vertices_cff.chi2
chi2
Definition:
vertices_cff.py:33
summaryLumi.runnum
runnum
Definition:
summaryLumi.py:211
Generated for CMSSW Reference Manual by
1.8.11