10#include "TrackEtaCut.h"
15 TrackEtaCut::TrackEtaCut() : TrackCut(1) { SetUnitName(
"#eta"); }
17 TrackEtaCut::~TrackEtaCut() {}
19 Bool_t TrackEtaCut::Pass(
Track* track) {
20 Double_t px = track->
GetPx();
21 Double_t py = track->
GetPy();
22 Double_t pz = track->
GetPz();
23 Double_t p = TMath::Sqrt(px * px + py * py + pz * pz);
28 Double_t eta = 0.5 * TMath::Log((p + pz) / (p - pz));
38 Double_t px = track->
GetPx();
39 Double_t py = track->
GetPy();
40 Double_t pz = track->
GetPz();
41 Double_t p = TMath::Sqrt(px * px + py * py + pz * pz);
50 Double_t eta = 0.5 * TMath::Log((p + pz) / (p - pz));
55 TrackEtaAbsCut::~TrackEtaAbsCut() {}
virtual Bool_t Init(Int_t=0)
void SetValue(Double_t val, Int_t i=0)
void SetUnitName(TString name, Int_t i=0)
virtual Bool_t Pass(Track *track)
virtual Bool_t Init(Int_t task_id)