37 TLorentzVector *Pos1 =
nullptr, *Pos2 =
nullptr;
40 Pos1 =
static_cast<Hal::ExpEvent*
>(tr1->GetEvent())->GetVertex();
41 Pos2 =
static_cast<Hal::ExpEvent*
>(tr2->GetEvent())->GetVertex();
44 TVector3 pos1 = h1.
Eval(101.1 + Pos1->Z());
45 TVector3 pos2 = h2.
Eval(101.1 + Pos2->Z());
46 pos1.SetX(pos1.X() - Pos1->X());
47 pos1.SetY(pos1.Y() - Pos1->Y());
48 pos2.SetX(pos2.X() - Pos2->X());
49 pos2.SetY(pos2.Y() - Pos2->Y());
50 dist = (pos1 - pos2).Mag();
67 TLorentzVector *Pos1 =
nullptr, *Pos2 =
nullptr;
70 Pos1 =
static_cast<Hal::ExpEvent*
>(tr1->GetEvent())->GetVertex();
71 Pos2 =
static_cast<Hal::ExpEvent*
>(tr2->GetEvent())->GetVertex();
74 TVector3 pos1 = h1.
Eval(30 + Pos1->Z());
75 TVector3 pos2 = h2.
Eval(30 + Pos2->Z());
76 pos1.SetX(pos1.X() - Pos1->X());
77 pos1.SetY(pos1.Y() - Pos1->Y());
78 pos2.SetX(pos2.X() - Pos2->X());
79 pos2.SetY(pos2.Y() - Pos2->Y());
80 dist = (pos1 - pos2).Mag();
95 TVector3 poz1, poz2, dif;
96 Double_t x_min = 9E+4, y_min = 9E+4, xy_min = 9E+4;
97 Double_t x_max = 0, y_max = 0, xy_max = 0;
98 for (
int i = 0; i < 9; i++) {
102 Double_t dx = dif.X();
103 Double_t dy = dif.Y();
104 Double_t adx = TMath::Abs(dif.X());
105 Double_t ady = TMath::Abs(dif.Y());
106 Double_t adxy = dif.Pt();
108 SetValue(dy, i * 3 + 1);
109 SetValue(adxy, i * 3 + 2);
110 if (adx < x_min) x_min = dx;
111 if (ady < y_min) y_min = dy;
112 if (adxy < xy_min) xy_min = adxy;
113 if (adx > x_max) x_max = dx;
114 if (ady > y_max) y_max = dy;
115 if (adxy > xy_max) xy_max = adxy;
119 SetValue(xy_min, 29);
122 SetValue(xy_max, 32);
125 for (
int i = 0; i < 33; i++) {
126 if (GetValue(i) > GetMin(i) && GetValue(i) < GetMax(i)) passed++;
128 if (passed != 0)
return ForcedUpdate(kFALSE);
129 return ForcedUpdate(kTRUE);