14 #include <Math/VectorUtil.h>
20 using namespace ROOT::Math::VectorUtil ;
29 basicClusterCollection_(basicClusterCollection),
30 superClusterCollection_(superClusterCollection)
42 sc.
get()->position().y(),
43 sc.
get()->position().z());
47 double deltacur=1000.;
49 bool MATCHEDSC =
false;
60 if(supercluster->
seed()->algo() == 0){
63 if (deltacur < delta1) {
65 matchedsupercluster = supercluster;
78 int ebc_bcalgo = cluster->algo();
79 double ebc_bce = cluster->energy();
80 double ebc_bceta = cluster->eta();
81 double ebc_bcet = ebc_bce*
sin(2*atan(
exp(ebc_bceta)));
85 if (ebc_bcet >
etMin && ebc_bcalgo == 0) {
89 bool inSuperCluster =
false;
93 for(;theEclust != matchedsupercluster->
clustersEnd();
95 if ((**theEclust) == (*cluster) ) inSuperCluster =
true;
97 if (!inSuperCluster) {
100 cluster->position().y(),
101 cluster->position().z());
double getEcalEtSum(const reco::Candidate *)
const math::XYZPoint & position() const
cluster centroid position
Sin< T >::type sin(const T &t)
static int position[TOTALCHAMBERS][3]
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
const reco::SuperClusterCollection * superClusterCollection_
bool etMin(const PFCandidate &cand, double cut)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
EgammaEcalIsolation(double extRadius, double etLow, const reco::BasicClusterCollection *, const reco::SuperClusterCollection *)
CaloCluster_iterator clustersBegin() const
fist iterator over BasicCluster constituents
T get() const
get a component
const reco::BasicClusterCollection * basicClusterCollection_
const CaloClusterPtr & seed() const
seed BasicCluster
T const * get() const
Returns C++ pointer to the item.
CaloCluster_iterator clustersEnd() const
last iterator over BasicCluster constituents