9#include "TrackDeltaMomentumCut.h"
11#include "ComplexTrack.h"
12#include "DataFormatManager.h"
18 TrackDeltaMomentumCut::TrackDeltaMomentumCut(Int_t params) : TrackCut(params), fTrackRe(nullptr), fTrackIm(nullptr) {
20 SetUnitName(
"#Deltap_{T} [GeV/c]", Pt());
21 SetUnitName(
"#Delta#phi [rad]", Phi());
22 SetUnitName(
"#Delta#theta [GeV/c]", Theta());
23 SetUnitName(
"#Deltap_{z} [GeV/c]", Pz());
24 SetUnitName(
"#Deltap [GeV/c]", P());
25 SetMinMax(-TMath::Pi(), TMath::Pi(), Phi());
26 SetMinMax(-TMath::PiOver2(), TMath::PiOver2(), Theta());
27 SetMinMax(-1E+6, 1E+6, P());
28 SetMinMax(-1E+6, 1E+6, Pt());
29 SetMinMax(-1E+6, 1E+6, Pz());
33 Bool_t TrackDeltaMomentumCut::Init(Int_t format_id) {
34 if (FormatInhertis(
"Hal::ComplexEvent", format_id)) {
return kTRUE; }
38 TrackDeltaMomentumCut::~TrackDeltaMomentumCut() {}
42 TrackDeltaMomCut::TrackDeltaMomCut(Int_t params) : TrackDeltaMomentumCut(params) {}
62 fTrackRe = tr->GetRealTrack();
63 fTrackIm = tr->GetImgTrack();
64 if (fTrackIm == NULL)
return kFALSE;
68 TrackDeltaMomCut::~TrackDeltaMomCut() {}
72 TrackDeltaVectMomCut::TrackDeltaVectMomCut(Int_t params) : TrackDeltaMomentumCut(params) {}
76 Track* real = tr->GetRealTrack();
77 Track* im = tr->GetImgTrack();
78 if (im == NULL)
return kFALSE;
96 TrackDeltaVectMomCut::~TrackDeltaVectMomCut() {}
Bool_t ForcedUpdate(Bool_t state)
void SetValue(Double_t val, Int_t i=0)
Bool_t GetMom(Track *track)
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)
Bool_t GetMom(Track *track)
const TLorentzVector & GetMomentum() const