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
15
namespace
Hal
{
16
17
TrackPtCut::TrackPtCut() : TrackCut(1) {
18
SetUnitName(
"p_{T} [GeV/c]"
);
19
SetMinMax(0, 1E+6);
20
}
21
22
TrackPtCut::~TrackPtCut() {}
23
24
Bool_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
}
Hal::Track
Definition
Track.h:29
Hal::Track::GetPx
Double_t GetPx() const
Definition
Track.h:99
Hal::Track::GetPy
Double_t GetPy() const
Definition
Track.h:104
Hal
Definition
EventAnaChain.cxx:28
cuts
trackcuts
kinematics
TrackPtCut.cxx
Generated on Wed Oct 23 2024 15:07:51 for Heavy ion Analysis Libriares by
1.12.0