11 #include "CbmTofHit.h"
15 : NicaTrackCut(2), fOneOverC(1.0 / 29.99792458) {
16 SetUnitName(
"#beta [c]",
Beta());
17 SetUnitName(
"m^2 [GeV^2/c^4]",
M2());
18 SetMinMax(0, 2,
Beta());
19 SetMinMax(-10, 10,
M2());
32 Double_t l = tr->GetTrackLenght();
36 SetValue(-1000,
M2());
37 return ForcedUpdate(kFALSE);
39 Double_t t =
h->GetTime();
40 Double_t beta = l / t / (29.9792458);
41 Double_t p = tr->GetMomentum()->P();
42 Double_t m2 = p * p * (1. / beta / beta - 1.);
43 SetValue(beta,
Beta());
53 SetUnitName(
"m^2 [GeV^2/c^4]");
58 Double_t l = tr->GetTrackLenght();
62 return ForcedUpdate(kFALSE);
64 Double_t p = tr->GetMomentum()->P();
65 Double_t t =
h->GetTime();
66 Double_t beta = l / t / (29.9792458);
67 Double_t m2 = p * p * (1. / beta / beta - 1.);
69 Double_t
min = fLowLine[0] + fLowLine[1] * p + fLowLine[2] * p * p;
70 Double_t
max = fHighLine[0] + fHighLine[1] * p + fHighLine[2] * p * p;
71 if (m2 >
max || m2 <
min) {
return ForcedUpdate(kFALSE); }
78 SetUnitName(
"m [GeV/c]");
83 Double_t l = tr->GetTrackLenght();
87 return ForcedUpdate(kFALSE);
89 Double_t t =
h->GetTime();
90 Double_t beta = l / t / (29.9792458);
91 Double_t p = tr->GetMomentum()->P();
92 Double_t gamma = 1. / (TMath::Sqrt(1. - beta * beta));
93 Double_t
m = p / beta / gamma;
102 return FormatInhertis(
"NicaCbmEvent", format_id);
106 : NicaTrackToFMass2Cut(other), fOneOverC(1.0 / 29.99792458) {
107 for (
int i = 0;
i < 3;
i++) {
108 fLowLine[
i] = other.fLowLine[
i];
109 fHighLine[
i] = other.fHighLine[
i];