Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackPdgCut.cxx
1/*
2 * TrackPdgCut.cxx
3 *
4 * Created on: 28-10-2013
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "TrackPdgCut.h"
11
12#include "McTrack.h"
13#include "DataFormatManager.h"
14
15namespace Hal {
16
17 TrackPdgCut::TrackPdgCut() : TrackMCCut(1) { SetUnitName("Pdg code"); }
18
19 TrackPdgCut::~TrackPdgCut() {
20 // TODO Auto-generated destructor stub
21 }
22
23 Bool_t TrackPdgCut::Pass(Track* track) {
24 SetValue(((McTrack*) track)->GetPdg());
25 return Validate();
26 }
27
28 TrackPdgAbsCut::TrackPdgAbsCut() : TrackMCCut(1) { SetUnitName("Pdg code"); }
29
30 Bool_t TrackPdgAbsCut::Pass(Track* track) {
31 SetValue(((McTrack*) track)->GetPdg());
32 return ValidateAbs();
33 }
34
35 TrackPdgAbsCut::~TrackPdgAbsCut() {}
36} // namespace Hal
Bool_t ValidateAbs()
Definition Cut.cxx:67
void SetValue(Double_t val, Int_t i=0)
Definition Cut.h:235
void SetUnitName(TString name, Int_t i=0)
Definition Cut.h:241
virtual Bool_t Pass(Track *track)