Skip to content

Commit

Permalink
abs value of reco::deltaPhi since it returns values in [-pi,pi]
Browse files Browse the repository at this point in the history
  • Loading branch information
pietverwilligen committed Aug 20, 2015
1 parent 093e5c4 commit e0ad8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoLocalMuon/GEMSegment/plugins/ME0SegAlgoMM.cc
Expand Up @@ -284,7 +284,7 @@ bool ME0SegAlgoMM::isGoodToMerge(const EnsembleHitContainer& newChain, const Ens
// this could affect events at the boundaries )

// to be chained, two hits need also to be "close" in phi and eta
bool phiRequirementOK = reco::deltaPhi(phi_new[jRH_new],phi_old[jRH_old]) < dPhiChainBoxMax;
bool phiRequirementOK = std::abs(reco::deltaPhi(phi_new[jRH_new],phi_old[jRH_old])) < dPhiChainBoxMax;
bool etaRequirementOK = fabs(eta_new[jRH_new]-eta_old[jRH_old]) < dEtaChainBoxMax;
// and the difference in layer index should be < (nlayers-1)
bool layerRequirementOK = abs(layer_new[jRH_new]-layer_old[jRH_old]) < (theEnsemble.first->id().nlayers()-1);
Expand Down

0 comments on commit e0ad8cd

Please sign in to comment.