Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
}
i
int i
Definition:
DBlmapReader.cc:9
reco::EcalHaloData::TheSuperClusterRefs
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition:
EcalHaloData.h:48
reco::EcalHaloData::EcalHaloData
EcalHaloData()
Definition:
EcalHaloData.cc:10
edm::Ref< SuperClusterCollection >
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
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:51
reco::EcalHaloData::ShowerShapes_Roundness
edm::ValueMap< float > ShowerShapes_Roundness
Definition:
EcalHaloData.h:50
EcalHaloData.h
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
a
double a
Definition:
hdecay.h:121
alignCSCRings.r
list r
Definition:
alignCSCRings.py:92
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition:
RefVector.h:89
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.5