CMS 3D CMS Logo

EcalHaloData.cc
Go to the documentation of this file.
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;
11 
12 int EcalHaloData::NumberOfHaloSuperClusters(float roundness, float angle) const {
13  int n = 0;
14  for (unsigned int i = 0; i < TheSuperClusterRefs.size(); i++) {
16  float r = ShowerShapes_Roundness[cluster];
17  float a = ShowerShapes_Angle[cluster];
18 
19  if ((r > 0 && r < roundness) && (a > 0 && a < angle))
20  n++;
21  }
22 
23  return n;
24 }
mps_fire.i
i
Definition: mps_fire.py:355
reco::EcalHaloData::EcalHaloData
EcalHaloData()
Definition: EcalHaloData.cc:10
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::EcalHaloData::TheSuperClusterRefs
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:57
edm::Ref< SuperClusterCollection >
reco::EcalHaloData::ShowerShapes_Angle
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:60
reco::EcalHaloData::ShowerShapes_Roundness
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:59
a
double a
Definition: hdecay.h:119
EcalHaloData.h
reco::EcalHaloData::NumberOfHaloSuperClusters
int NumberOfHaloSuperClusters(float roundness=100., float angle=4.0) const
Definition: EcalHaloData.cc:12
alignCSCRings.r
r
Definition: alignCSCRings.py:93
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102