Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CalibFormats
HcalObjects
src
QieShape.cc
Go to the documentation of this file.
1
7
#include <iostream>
8
9
#include "
CalibFormats/HcalObjects/interface/QieShape.h
"
10
11
QieShape::QieShape
(
const
double
fAdcShape [32],
const
double
fAdcBin [32]) {
12
for
(
int
i
= 0;
i
< 32;
i
++) {
// initial settings
13
mLinearization
[
i
] = fAdcShape [
i
];
14
mBinSize
[
i
] = fAdcBin [
i
];
15
// std::cout << "QieShape::QieShape-> #/adc/bin: " << i << '/' << fAdcShape [i] << '/' << fAdcBin [i] << std::endl;
16
}
17
double
factor = 1;
18
for
(
int
range = 1; range < 4; range++) {
19
factor = factor * 5;
20
int
offset
= 32 * range;
21
mLinearization
[
offset
] =
mLinearization
[offset-2];
// initial overlap
22
for
(
int
bin
= 1;
bin
< 32;
bin
++) {
23
mLinearization
[offset+
bin
] =
mLinearization
[offset+
bin
-1] +
24
factor * (
mLinearization
[
bin
] -
mLinearization
[
bin
-1]);
// scale initial curve
25
mBinSize
[offset+
bin
] = factor * mBinSize [
bin
];
26
}
27
}
28
}
i
int i
Definition:
DBlmapReader.cc:9
QieShape::QieShape
QieShape(const double fAdcShape[32], const double fAdcBin[32])
Definition:
QieShape.cc:11
newFWLiteAna.bin
string bin
Definition:
newFWLiteAna.py:161
evf::evtn::offset
unsigned int offset(bool)
Definition:
GlobalEventNumber.cc:66
QieShape.h
QieShape::mBinSize
double mBinSize[128]
Definition:
QieShape.h:18
QieShape::mLinearization
double mLinearization[128]
Definition:
QieShape.h:17
Generated for CMSSW Reference Manual by
1.8.5