Skip to content

Commit

Permalink
CSCHaloAlgo update: replacing acos(cos()) by deltaphi()
Browse files Browse the repository at this point in the history
  • Loading branch information
lathomas committed Sep 16, 2015
1 parent ddafe3c commit dce64eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoMET/METAlgorithms/src/CSCHaloAlgo.cc
Expand Up @@ -651,7 +651,7 @@ reco::CSCHaloData CSCHaloAlgo::Calculate(const CSCGeometry& TheCSCGeometry,
float jZ = jGlobalPosition.z() ;
float jT = jSegment->time();
// if(abs(jZ)<650&& TheEvent.id().run() < 251737)jT-= 25;
if (TMath::ACos(TMath::Cos(jPhi - iPhi)) <= 0.2//max_segment_phi_diff
if ( abs(deltaPhi(jPhi , iPhi)) <= 0.2//max_segment_phi_diff
//&& abs(jR - iR) <= max_segment_r_diff
&& (abs(jR - iR) <= max_segment_r_diff || (abs(jR - iR)<0.03*abs(jZ - iZ) && jZ*iZ<0) )
&& (jTheta < max_segment_theta || jTheta > TMath::Pi() - max_segment_theta)) {
Expand Down

0 comments on commit dce64eb

Please sign in to comment.