10#include "TrackMtCut.h"
23 TrackMtCut::TrackMtCut() : TrackCut(1), fMassFixed(kFALSE), fMass2(0), fPdg(NULL) { SetUnitName(
"m_{T} [GeV/c^{2}]"); }
26 Package* pack = TrackCut::Report();
30 mass_flag =
"fixed mass";
31 mass_val = Form(
"%4.3f", TMath::Sqrt(fMass2));
33 mass_flag =
"free mass";
42 this->fMass2 = cut.fMass2;
43 this->fMassFixed = cut.fMassFixed;
44 this->fPdg = cut.fPdg;
47 TrackMtCut::~TrackMtCut() {
52 Double_t px = track->
GetPx();
53 Double_t py = track->
GetPy();
54 Double_t pt2 = px * px + py * py;
56 Double_t mt = TMath::Sqrt(pt2 + fMass2);
61 Double_t mt = TMath::Sqrt(m * m + pt2);
74 fPdg = TDatabasePDG::Instance();
virtual Bool_t Init(Int_t=0)
void SetValue(Double_t val, Int_t i=0)
void AddObject(TObject *object)
void FixMass(Double_t mass)
virtual Bool_t Init(const Int_t task_id=0)
virtual Bool_t Pass(Track *track)