src
CalibFormats
CastorObjects
src
QieShape.cc
Go to the documentation of this file.
1
7
#include <iostream>
8
9
#include "
CalibFormats/CastorObjects/interface/QieShape.h
"
10
11
namespace
reco
{
12
namespace
castor
{
13
14
QieShape::QieShape
(
const
double
fAdcShape[32],
const
double
fAdcBin[32]) {
15
for
(
int
i
= 0;
i
< 32;
i
++) {
// initial settings
16
mLinearization
[
i
] = fAdcShape[
i
];
17
mBinSize
[
i
] = fAdcBin[
i
];
18
// std::cout << "QieShape::QieShape-> #/adc/bin: " << i << '/' << fAdcShape [i] << '/' << fAdcBin [i] << std::endl;
19
}
20
double
factor
= 1;
21
for
(
int
range
= 1;
range
< 4;
range
++) {
22
factor
=
factor
* 5;
23
int
offset
= 32 *
range
;
24
mLinearization
[
offset
] =
mLinearization
[
offset
- 2];
// initial overlap
25
for
(
int
bin
= 1;
bin
< 32;
bin
++) {
26
mLinearization
[
offset
+
bin
] =
27
mLinearization
[
offset
+
bin
- 1] +
28
factor
* (
mLinearization
[
bin
] -
mLinearization
[
bin
- 1]);
// scale initial curve
29
mBinSize
[
offset
+
bin
] =
factor
*
mBinSize
[
bin
];
30
}
31
}
32
}
33
34
}
// namespace castor
35
}
// namespace reco
mps_fire.i
i
Definition:
mps_fire.py:429
reco::castor::QieShape::mLinearization
double mLinearization[128]
Definition:
QieShape.h:22
newFWLiteAna.bin
bin
Definition:
newFWLiteAna.py:161
QieShape.h
reco::castor::QieShape::mBinSize
double mBinSize[128]
Definition:
QieShape.h:23
castorDigitizer_cfi.castor
castor
Definition:
castorDigitizer_cfi.py:9
factor
factor
Definition:
SiPixelDynamicInefficiency_PayloadInspector.cc:52
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
FastTimerService_cff.range
range
Definition:
FastTimerService_cff.py:34
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition:
hltrates_dqm_sourceclient-live_cfg.py:83
reco::castor::QieShape::QieShape
QieShape(const double fAdcShape[32], const double fAdcBin[32])
Definition:
QieShape.cc:14
Generated for CMSSW Reference Manual by
1.8.14