16 Bool_t TwoTrackPtOrderCut::Pass(
TwoTrack* pair) {
22 case TwoTrack::kRotated:
26 case TwoTrack::kHemishpere:
32 Double_t pt1 = TMath::Sqrt(px1 * px1 + py1 * py1);
33 Double_t pt2 = TMath::Sqrt(px2 * px2 + py2 * py2);
35 Double_t phi1 = TMath::ATan2(py1, px1);
36 Double_t phi2 = TMath::ATan2(py2, px2);
37 Double_t dphi = TMath::Abs(phi1 - phi2);
38 if (dphi > TMath::Pi()) dphi -= TMath::Pi();
39 if (dphi > TMath::Pi() * 0.5) {
43 SetValue(TMath::Abs(pt1 - pt2));