Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackChi2Cut.cxx
1/*
2 * TrackChi2Cut.cxx
3 *
4 * Created on: 13 lis 2018
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "TrackChi2Cut.h"
10
11#include "ExpTrack.h"
12
13namespace Hal {
14 TrackChi2Cut::TrackChi2Cut() : TrackExpCut(1) {
15 SetUnitName("#chi^{2}");
16 SetMinMax(-1E+9, 1E+9);
17 }
18
19 Bool_t TrackChi2Cut::Pass(Track* tr) {
20 ExpTrack* track = (ExpTrack*) tr;
21 SetValue(track->GetChi2());
22 return Validate();
23 }
24
25 TrackChi2Cut::~TrackChi2Cut() {}
26} // namespace Hal
Float_t GetChi2() const
Definition ExpTrack.h:55