Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackThetaCut.cxx
1/*
2 * TrackThetaCut.cxx
3 *
4 * Created on: 10 cze 2021
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "TrackThetaCut.h"
10
11#include "Track.h"
12
13#include <TLorentzVector.h>
14
15
16namespace Hal {
17
18 TrackThetaCut::TrackThetaCut() : TrackCut(1) { SetUnitName("#theta [rad]"); }
19
20 Bool_t TrackThetaCut::Pass(Track* track) {
21 Double_t theta = track->GetMomentum().Theta();
22 SetValue(theta);
23 return Validate();
24 }
25
26 TrackThetaCut::~TrackThetaCut() {}
27
28} // namespace Hal
const TLorentzVector & GetMomentum() const
Definition Track.h:118