Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackMassCut.cxx
1/*
2 * TrackMassCut.cxx
3 *
4 * Created on: 26-03-2015
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "TrackMassCut.h"
11
12#include "Track.h"
13
14namespace Hal {
15 TrackMassCut::TrackMassCut() : TrackCut(1) { SetUnitName("m [GeV/c^{2}]"); }
16
17 Bool_t TrackMassCut::Pass(Track* track) {
18 Double_t mass = track->GetMass();
19 SetValue(mass);
20 return Validate();
21 }
22
23 TrackMassCut::~TrackMassCut() {}
24} // namespace Hal
Double_t GetMass() const
Definition Track.h:179