1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "DataFormats/METReco/interface/EcalHaloData.h"
/*
[class]: EcalHaloData
[authors]: R. Remington, The University of Florida
[description]: See EcalHaloData.h
[date]: October 15, 2009
*/
using namespace reco;
EcalHaloData::EcalHaloData() {}
int EcalHaloData::NumberOfHaloSuperClusters(float roundness, float angle) const {
int n = 0;
for (unsigned int i = 0; i < TheSuperClusterRefs.size(); i++) {
edm::Ref<SuperClusterCollection> cluster(TheSuperClusterRefs[i]);
float r = ShowerShapes_Roundness[cluster];
float a = ShowerShapes_Angle[cluster];
if ((r > 0 && r < roundness) && (a > 0 && a < angle))
n++;
}
return n;
}
|