Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackPtCut.cxx
1/*
2 * TrackPtCut.cxx
3 *
4 * Created on: 28-10-2013
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "TrackPtCut.h"
11
12#include "ComplexTrack.h"
13#include "Track.h"
14
15namespace Hal{
16
17TrackPtCut::TrackPtCut() : TrackCut(1) {
18 SetUnitName("p_{T} [GeV/c]");
19 SetMinMax(0, 1E+6);
20}
21
22TrackPtCut::~TrackPtCut() {}
23
24Bool_t TrackPtCut::Pass(Track* track) {
25 Double_t px = (track->GetPx());
26 Double_t py = (track->GetPy());
27 Track* tr1 = track;
28 tr1->SetBit(1);
29 SetValue(TMath::Sqrt(px * px + py * py));
30 return Validate();
31}
32}
Double_t GetPx() const
Definition Track.h:99
Double_t GetPy() const
Definition Track.h:104