26 switch (elem1->
type()) {
46 pselem = static_cast<const reco::PFBlockElementCluster*>(elem1);
47 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
49 pselem = static_cast<const reco::PFBlockElementCluster*>(elem2);
50 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
55 throw cms::Exception(
"BadClusterRefs") <<
"PFBlockElementCluster's refs are null!";
64 const double ecalPhi = ecalreppos.Phi();
65 const double ecalEta = ecalreppos.Eta();
68 reco::PFMultilinksType::const_iterator mlit = multilinks.begin();
69 for (; mlit != multilinks.end(); ++mlit)
74 if (mlit != multilinks.end()) {
76 ecalxyzpos.X() / 1000., ecalxyzpos.Y() / 1000., psxyzpos.X() / 1000., psxyzpos.Y() / 1000.,
false);