Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackChargeCut.cxx
1/*
2 * TrackChargeCut.cxx
3 *
4 * Created on: 21 maj 2018
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "TrackChargeCut.h"
10
11#include "Track.h"
12
13namespace Hal {
14
15 TrackChargeCut::TrackChargeCut() : TrackCut(1) { SetUnitName("Charge [e]"); }
16
17 Bool_t TrackChargeCut::Pass(Track* tr) {
18 SetValue(tr->GetCharge());
19 return Validate();
20 }
21
22 TrackChargeCut::~TrackChargeCut() {}
23} // namespace Hal
Double_t GetCharge() const
Definition Track.h:184