28 Double_t phiMin = 1E+9;
29 Double_t etaMin = 1E+9;
30 for (
int i = 0; i < 8; i++) {
33 Double_t dphi = TVector2::Phi_mpi_pi(mom1.Phi() - mom2.Phi());
34 if (TMath::Abs(dphi) < TMath::Abs(phiMin)) phiMin = dphi;
35 etaMin = TMath::Min(TMath::Abs(mom1.Eta() - mom2.Eta()), etaMin);
38 SetValue(mom1.Phi() - mom2.Phi(), 0);
39 SetValue(mom1.Theta() - mom2.Theta(), 1);
40 if (GetValue(0) > GetMin(0) && GetValue(0) < GetMax(0) && GetValue(1) > GetMin(1) && GetValue(1) < GetMax(1)) {
41 return ForcedUpdate(kFALSE);
43 return ForcedUpdate(kTRUE);
53 Double_t phiMin = 1E+9;
54 Double_t etaMin = 1E+9;
55 const Double_t R[8] = {30, 40, 50, 60, 70, 80, 90, 100};
56 for (
int i = 0; i < 8; i++) {
57 h1.
Eval(R[i] + tr1->GetEvent()->GetVertex()->Z(), mom1);
58 h2.
Eval(R[i] + tr2->GetEvent()->GetVertex()->Z(), mom2);
59 Double_t dphi = TVector2::Phi_mpi_pi(mom1.Phi() - mom2.Phi());
60 if (TMath::Abs(dphi) < TMath::Abs(phiMin)) phiMin = dphi;
61 etaMin = TMath::Min(TMath::Abs(mom1.Eta() - mom2.Eta()), etaMin);
68 if (GetValue(0) > GetMin(0) && GetValue(0) < GetMax(0) && GetValue(1) > GetMin(1) && GetValue(1) < GetMax(1)) {
69 return ForcedUpdate(kFALSE);
71 return ForcedUpdate(kTRUE);