Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:45

0001 #include "DataFormats/METReco/interface/EcalHaloData.h"
0002 /*
0003   [class]:  EcalHaloData
0004   [authors]: R. Remington, The University of Florida
0005   [description]: See EcalHaloData.h
0006   [date]: October 15, 2009
0007 */
0008 
0009 using namespace reco;
0010 EcalHaloData::EcalHaloData() {}
0011 
0012 int EcalHaloData::NumberOfHaloSuperClusters(float roundness, float angle) const {
0013   int n = 0;
0014   for (unsigned int i = 0; i < TheSuperClusterRefs.size(); i++) {
0015     edm::Ref<SuperClusterCollection> cluster(TheSuperClusterRefs[i]);
0016     float r = ShowerShapes_Roundness[cluster];
0017     float a = ShowerShapes_Angle[cluster];
0018 
0019     if ((r > 0 && r < roundness) && (a > 0 && a < angle))
0020       n++;
0021   }
0022 
0023   return n;
0024 }