Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
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
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
}
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition:
L1TUtmAlgorithmRcd.h:4
mps_fire.i
i
Definition:
mps_fire.py:341
big::sVector_
storeVector sVector_
Definition:
big.h:134
ntupleEnum.SIZE
SIZE
Definition:
ntupleEnum.py:86
hltPixelTracks_cff.chi2
chi2
Definition:
hltPixelTracks_cff.py:25
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
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:24
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
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::thVector_
headVector thVector_
Definition:
big.h:133
big.h
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
big::bigStore
Definition:
big.h:102
overlapproblemtsosanalyzer_cfi.title
title
Definition:
overlapproblemtsosanalyzer_cfi.py:7
big::bigEntry
inline class bigEntry
Definition:
big.h:19
big::bigStore::fill
void fill(const std::string &atitle)
Definition:
big.cc:107
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:23
b
double b
Definition:
hdecay.h:118
big::tVector_
entryVector tVector_
Definition:
big.h:132
jvcParameters_cfi.temperature
temperature
Definition:
jvcParameters_cfi.py:7
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
zMuMuMuonUserData.alpha
alpha
zGenParticlesMatch = cms.InputTag(""),
Definition:
zMuMuMuonUserData.py:9
zMuMuMuonUserData.beta
beta
Definition:
zMuMuMuonUserData.py:10
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
Generated for CMSSW Reference Manual by
1.8.11