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 }
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:57
int NumberOfHaloSuperClusters(float roundness=100., float angle=4.0) const
Definition: EcalHaloData.cc:12
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:60
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:59
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
fixed size matrix
double a
Definition: hdecay.h:119
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11