test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
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  {
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 }
int i
Definition: DBlmapReader.cc:9
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:59
int NumberOfHaloSuperClusters(float roundness=100., float angle=4.0) const
Definition: EcalHaloData.cc:14
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:62
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:61
double a
Definition: hdecay.h:121
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11