9#include "TrackDeltaMomCut.h"
13#include <TLorentzVector.h>
16TrackDeltaPtCut::TrackDeltaPtCut() : TrackDeltaMomCut(1) { SetUnitName(
"#Deltap_{T} [GeV/c]"); }
18Bool_t TrackDeltaPtCut::Pass(
Track* track) {
21 return ForcedUpdate(kFALSE);
23 Double_t pT_reco = fTrackRe->GetMomentum().Pt();
24 Double_t pT_mc = fTrackIm->GetMomentum().Pt();
25 SetValue(pT_mc - pT_reco);
29TrackDeltaPtCut::~TrackDeltaPtCut() {}
33TrackDeltaPCut::TrackDeltaPCut() : TrackDeltaMomCut(1) {
SetUnitName(
"#Deltap [GeV/c]"); }
46TrackDeltaPCut::~TrackDeltaPCut() {}
50TrackDeltaPzCut::TrackDeltaPzCut() : TrackDeltaMomCut() {
SetUnitName(
"#Deltap_{z} [GeV/c]"); }
63TrackDeltaPzCut::~TrackDeltaPzCut() {}
67TrackDeltaPhiCut::TrackDeltaPhiCut() : TrackDeltaMomCut(1) {
79 SetValue(TVector2::Phi_mpi_pi(p_mc - p_reco));
83TrackDeltaPhiCut::~TrackDeltaPhiCut() {}
87TrackDeltaThetaCut::TrackDeltaThetaCut() : TrackDeltaMomCut(1) {
89 SetMinMax(-TMath::PiOver2(), TMath::PiOver2());
99 SetValue(TVector2::Phi_mpi_pi(p_mc - p_reco));
103TrackDeltaThetaCut::~TrackDeltaThetaCut() {}
107TrackDeltaVectPtCut::TrackDeltaVectPtCut() {
SetUnitName(
"#Deltap_{T} [GeV/c]"); }
118TrackDeltaVectPtCut::~TrackDeltaVectPtCut() {}
122TrackDeltaVectPCut::TrackDeltaVectPCut() {
SetUnitName(
"#Deltap [GeV/c]"); }
133TrackDeltaVectPCut::~TrackDeltaVectPCut() {}
137TrackDeltaVectPhiCut::TrackDeltaVectPhiCut() {
151TrackDeltaVectPhiCut::~TrackDeltaVectPhiCut() {}
155TrackDeltaVectThetaCut::TrackDeltaVectThetaCut() {
157 SetMinMax(-TMath::PiOver2(), TMath::PiOver2());
169TrackDeltaVectThetaCut::~TrackDeltaVectThetaCut() {}
void SetMinMax(Double_t min, Double_t max, Int_t i=0)
Bool_t ForcedUpdate(Bool_t state)
void SetValue(Double_t val, Int_t i=0)
void SetUnitName(TString name, Int_t i=0)
Bool_t GetMom(Track *track)
Bool_t Pass(Track *track)
Bool_t Pass(Track *track)
Bool_t Pass(Track *track)
Bool_t Pass(Track *track)
Bool_t GetMom(Track *track)
Bool_t Pass(Track *track)
Bool_t Pass(Track *track)
Bool_t Pass(Track *track)
Bool_t Pass(Track *track)
const TLorentzVector & GetMomentum() const