00001 #include "DataFormats/METReco/interface/EcalHaloData.h" 00002 /* 00003 [class]: EcalHaloData 00004 [authors]: R. Remington, The University of Florida 00005 [description]: See EcalHaloData.h 00006 [date]: October 15, 2009 00007 */ 00008 00009 using namespace reco; 00010 EcalHaloData::EcalHaloData() 00011 { 00012 } 00013 00014 int EcalHaloData::NumberOfHaloSuperClusters(float roundness, float angle ) const 00015 { 00016 00017 int n = 0 ; 00018 for( unsigned int i = 0 ; i < TheSuperClusterRefs.size() ; i++ ) 00019 { 00020 edm::Ref<SuperClusterCollection> cluster(TheSuperClusterRefs, i) ; 00021 float r = ShowerShapes_Roundness[cluster]; 00022 float a = ShowerShapes_Angle[cluster]; 00023 00024 if( (r > 0 && r < roundness) && ( a > 0 && a < angle ) ) 00025 n++ ; 00026 } 00027 00028 return n ; 00029 }