Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
Calibration
EcalCalibAlgos
src
EcalPhiSymRecHit.cc
Go to the documentation of this file.
1
#include "
Calibration/EcalCalibAlgos/interface/EcalPhiSymRecHit.h
"
2
3
//**********constructors******************************************************************
4
EcalPhiSymRecHit::EcalPhiSymRecHit
()
5
: id_(0), eeRing_(0), chStatus_(0), nHits_(0), etSum_(1, 0.), et2Sum_(0), lcSum_(0), lc2Sum_(0) {}
6
7
EcalPhiSymRecHit::EcalPhiSymRecHit
(uint32_t
id
,
unsigned
int
nMisCalibV,
unsigned
int
status
)
8
: id_(
id
), eeRing_(0), chStatus_(
status
), nHits_(0), etSum_(nMisCalibV, 0.), et2Sum_(0), lcSum_(0), lc2Sum_(0) {}
9
10
EcalPhiSymRecHit::EcalPhiSymRecHit
(uint32_t
id
, std::vector<float>& etValues,
unsigned
int
status
)
11
: id_(
id
),
12
eeRing_(0),
13
chStatus_(
status
),
14
nHits_(0),
15
etSum_(etValues.
begin
(), etValues.
end
()),
16
et2Sum_(0),
17
lcSum_(0),
18
lc2Sum_(0) {}
19
20
//**********utils*************************************************************************
21
void
EcalPhiSymRecHit::addHit
(
const
std::vector<float>& etValues,
const
float
laserCorr) {
22
if
(etValues[0] > 0.) {
23
++
nHits_
;
24
et2Sum_
+= etValues[0] * etValues[0];
25
lcSum_
+= laserCorr;
26
lc2Sum_
+= laserCorr * laserCorr;
27
}
28
for
(
unsigned
int
i
= 0;
i
<
std::min
(
etSum_
.size(), etValues.size()); ++
i
)
29
etSum_
[
i
] += etValues[
i
];
30
}
31
32
void
EcalPhiSymRecHit::reset
() {
33
nHits_
= 0.;
34
et2Sum_
= 0.;
35
lcSum_
= 0.;
36
lc2Sum_
= 0.;
37
etSum_
= std::vector<float>(
etSum_
.size(), 0.);
38
}
39
40
//**********operators*********************************************************************
41
42
EcalPhiSymRecHit
&
EcalPhiSymRecHit::operator+=
(
const
EcalPhiSymRecHit
& rhs) {
43
// assume same id, do not check channel status
44
assert
(
"EcalPhiSymRecHit operator+= : attempting to sum RecHits belonging to different channels"
&&
45
(
id_
== rhs.
rawId
()));
46
nHits_
+= rhs.
nHits
();
47
et2Sum_
+= rhs.
sumEt2
();
48
lcSum_
+= rhs.
lcSum
();
49
lc2Sum_
+= rhs.
lc2Sum
();
50
for
(
unsigned
int
i
= 0;
i
<
etSum_
.size(); ++
i
)
51
etSum_
[
i
] += rhs.
sumEt
(
i
);
52
53
return
*
this
;
54
}
mps_fire.i
i
Definition:
mps_fire.py:429
EcalPhiSymRecHit::nHits_
uint32_t nHits_
Definition:
EcalPhiSymRecHit.h:59
EcalPhiSymRecHit
Definition:
EcalPhiSymRecHit.h:24
EcalPhiSymRecHit::etSum_
std::vector< float > etSum_
Definition:
EcalPhiSymRecHit.h:60
SplitLinear.begin
begin
Definition:
SplitLinear.py:25
EcalPhiSymRecHit::lcSum_
float lcSum_
Definition:
EcalPhiSymRecHit.h:62
EcalPhiSymRecHit::rawId
uint32_t rawId() const
Definition:
EcalPhiSymRecHit.h:35
cms::cuda::assert
assert(be >=bs)
EcalPhiSymRecHit::sumEt2
float sumEt2() const
Definition:
EcalPhiSymRecHit.h:41
EcalPhiSymRecHit::EcalPhiSymRecHit
EcalPhiSymRecHit()
Definition:
EcalPhiSymRecHit.cc:4
EcalPhiSymRecHit::nHits
uint32_t nHits() const
Definition:
EcalPhiSymRecHit.h:38
EcalPhiSymRecHit::sumEt
float sumEt(int i=0) const
Definition:
EcalPhiSymRecHit.h:40
EcalPhiSymRecHit::lc2Sum
float lc2Sum() const
Definition:
EcalPhiSymRecHit.h:43
SiStripPI::min
Definition:
SiStripPayloadInspectorHelper.h:178
mps_update.status
status
Definition:
mps_update.py:68
EcalPhiSymRecHit::et2Sum_
float et2Sum_
Definition:
EcalPhiSymRecHit.h:61
mps_fire.end
end
Definition:
mps_fire.py:242
EcalPhiSymFlatTableProducers_cfi.id
id
Definition:
EcalPhiSymFlatTableProducers_cfi.py:11
EcalPhiSymRecHit::lcSum
float lcSum() const
Definition:
EcalPhiSymRecHit.h:42
EcalPhiSymRecHit::reset
void reset()
Definition:
EcalPhiSymRecHit.cc:32
EcalPhiSymRecHit::operator+=
EcalPhiSymRecHit & operator+=(const EcalPhiSymRecHit &rhs)
Definition:
EcalPhiSymRecHit.cc:42
EcalPhiSymRecHit::id_
uint32_t id_
Definition:
EcalPhiSymRecHit.h:56
EcalPhiSymRecHit::addHit
void addHit(const std::vector< float > &etValues, const float laserCorr=0)
Definition:
EcalPhiSymRecHit.cc:21
EcalPhiSymRecHit.h
EcalPhiSymRecHit::lc2Sum_
float lc2Sum_
Definition:
EcalPhiSymRecHit.h:63
Generated for CMSSW Reference Manual by
1.8.14