Main Page
Namespaces
Classes
Package Documentation
DataFormats
METReco
src
EcalHaloData.cc
Go to the documentation of this file.
1
#include "
DataFormats/METReco/interface/EcalHaloData.h
"
2
/*
3
[class]: EcalHaloData
4
[authors]: R. Remington, The University of Florida
5
[description]: See EcalHaloData.h
6
[date]: October 15, 2009
7
*/
8
9
using namespace
reco
;
10
EcalHaloData::EcalHaloData
()
11
{
12
}
13
14
int
EcalHaloData::NumberOfHaloSuperClusters
(
float
roundness,
float
angle
)
const
15
{
16
17
int
n
= 0 ;
18
for
(
unsigned
int
i
= 0 ;
i
<
TheSuperClusterRefs
.
size
() ;
i
++ )
19
{
20
edm::Ref<SuperClusterCollection>
cluster(
TheSuperClusterRefs
[
i
]) ;
21
float
r
=
ShowerShapes_Roundness
[cluster];
22
float
a
=
ShowerShapes_Angle
[cluster];
23
24
if
( (r > 0 && r < roundness) && ( a > 0 && a < angle ) )
25
n++ ;
26
}
27
28
return
n
;
29
}
reco::EcalHaloData::TheSuperClusterRefs
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition:
EcalHaloData.h:59
mps_fire.i
i
Definition:
mps_fire.py:277
reco::EcalHaloData::EcalHaloData
EcalHaloData()
Definition:
EcalHaloData.cc:10
edm::Ref< SuperClusterCollection >
reco::EcalHaloData::NumberOfHaloSuperClusters
int NumberOfHaloSuperClusters(float roundness=100., float angle=4.0) const
Definition:
EcalHaloData.cc:14
reco::EcalHaloData::ShowerShapes_Angle
edm::ValueMap< float > ShowerShapes_Angle
Definition:
EcalHaloData.h:62
reco::EcalHaloData::ShowerShapes_Roundness
edm::ValueMap< float > ShowerShapes_Roundness
Definition:
EcalHaloData.h:61
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
EcalHaloData.h
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
a
double a
Definition:
hdecay.h:121
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition:
RefVector.h:107
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition:
angle.h:11
Generated for CMSSW Reference Manual by
1.8.11