Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackTpcHitCut.cxx
1/*
2 * TrackTpcHitsCut.cxx
3 *
4 * Created on: 4 maj 2018
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "TrackTpcHitCut.h"
10
11#include "ExpTrack.h"
12namespace Hal {
13 TrackTpcHitCut::TrackTpcHitCut() : TrackExpCut(1) { SetUnitName("TpcHits [N]"); }
14
15 Bool_t TrackTpcHitCut::Pass(Track* tr) {
16 ExpTrack* track = (ExpTrack*) tr;
17 SetValue(track->GetNHits());
18 return Validate();
19 }
20
21 Bool_t TrackTpcHitCut::Init(Int_t format_id) {
22 if (TpcAvaiable(format_id)) return kTRUE;
23 return kFALSE;
24 }
25
26 TrackTpcHitCut::~TrackTpcHitCut() {}
27} // namespace Hal
Int_t GetNHits() const
Definition ExpTrack.h:50