Skip to content
Snippets Groups Projects
Commit 44ad9ee0 authored by James Beacham's avatar James Beacham
Browse files

Merge branch '21.0-mc16d-superclustersDeltaPhiOnly' into '21.0-mc16d'

Change to take |deltaPhi| instead of deltaPhi in the cracks (bug fix).

See merge request atlas/athena!7195

Former-commit-id: e2f46a2e7f2842675d82afbc99fae21144d902fa
parents d56626ff 62b99073
No related branches found
No related tags found
No related merge requests found
......@@ -203,10 +203,10 @@ bool egammaSuperClusterBuilder::MatchesInWindow(const xAOD::CaloCluster *ref,
float dPhi(fabs(P4Helpers::deltaPhi(ref->phi(), clus->phi())));
//
float dEtaBarrel (fabs(ref->etaSample(CaloSampling::EMB2)-clus->eta()));
float dPhiBarrel =(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EMB2),clus->phi()));
float dPhiBarrel (fabs(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EMB2),clus->phi())));
//
float dEtaEndcap (fabs(ref->etaSample(CaloSampling::EME2)-clus->eta()));
float dPhiEndcap =(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EME2),clus->phi()));
float dPhiEndcap (fabs(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EME2),clus->phi())));
//Matches any in case of split
return ( (dEta < m_searchWindowEtaBarrel && dPhi < m_searchWindowPhiBarrel) ||
(dEta < m_searchWindowEtaEndcap && dPhi < m_searchWindowPhiEndcap) ||
......@@ -362,8 +362,8 @@ StatusCode egammaSuperClusterBuilder::AddEMCellsToCluster(xAOD::CaloCluster
(fabs(ref->etaSample(CaloSampling::EME2)-cell->eta()) > m_addCellsWindowEtaEndcap) ){
continue;
}
if ((P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EMB2),cell->phi()) > m_addCellsWindowPhiBarrel)&&
(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EME2),cell->phi()) > m_addCellsWindowPhiEndcap) ){
if ((fabs(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EMB2),cell->phi())) > m_addCellsWindowPhiBarrel)&&
(fabs(P4Helpers::deltaPhi(ref->phiSample(CaloSampling::EME2),cell->phi())) > m_addCellsWindowPhiEndcap) ){
continue;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment