10#include "TrackBasicToFCut.h"
13#include "DataFormat.h"
17 const Int_t TrackBasicToFCut::fgMass2 = 0;
18 const Int_t TrackBasicToFCut::fgBeta = 1;
19 const Int_t TrackBasicToFCut::fgFlag = 2;
20 TrackBasicToFCut::TrackBasicToFCut() : TrackExpCut(3) {
21 SetUnitName(
"m_{ToF}^{2} [GeV^{2}/c^{4}]", 0);
22 SetUnitName(
"#beta_{ToF} [c]", 1);
23 SetUnitName(
"flag_{ToF} [AU]", 2);
24 SetMinMax(0, 1E+9, 0);
25 SetMinMax(0, 1E+9, 1);
26 SetMinMax(0, 1E+9, 2);
29 Bool_t TrackBasicToFCut::Init(Int_t formad_id) {
30 Bool_t stat = TrackExpCut::Init(formad_id);
31 if (stat == kFALSE)
return kFALSE;
32 if (ToFAvaiable(formad_id))
return kTRUE;
36 Bool_t TrackBasicToFCut::Pass(
Track* tr) {
38 SetValue(tof->
GetBeta(), fgBeta);
40 SetValue(tof->
GetFlag(), fgFlag);
44 TrackBasicToFCut::~TrackBasicToFCut() {