Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackFlagCuts.h
1/*
2 * TrackFlagCuts.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALTRACKFLAGCUTS_H_
10#define HALTRACKFLAGCUTS_H_
11
12#include "TrackCut.h"
13namespace Hal {
14 class Track;
15
17 public:
18 TrackPrimaryFlagCut() : TrackCut(1) { SetUnitName("PrimaryFlag [AU]"); };
19 static Int_t Primary() { return 1; };
20 static Int_t NonPrimary() { return 0; };
21 virtual Bool_t Pass(Track* track);
22 virtual ~TrackPrimaryFlagCut() {};
23 ClassDef(TrackPrimaryFlagCut, 1)
24 };
25
26 class TrackV0FlagCut : public TrackCut {
27 public:
28 TrackV0FlagCut() : TrackCut(1) { SetUnitName("V0Flag [AU]"); };
29 static Int_t BadV0() { return 1; };
30 static Int_t GoodV0() { return 2; };
31 static Int_t NonV0() { return 0; }
32 virtual Bool_t Pass(Track* track);
33 virtual ~TrackV0FlagCut() {};
34 ClassDef(TrackV0FlagCut, 1)
35 };
36
37
39 public:
40 TrackGoodSecondaryFlagCut() : TrackCut(1) { SetUnitName("MotherFlag [AU]"); };
41 static Int_t HasMother() { return 1; };
42 static Int_t IsOrphan() { return 0; }
43 virtual Bool_t Pass(Track* track);
44 virtual ~TrackGoodSecondaryFlagCut() {};
45 ClassDef(TrackGoodSecondaryFlagCut, 1)
46 };
47
49 public:
50 TrackGlobalFlagCut() : TrackCut(1) { SetUnitName("GlobalFlag [AU]"); };
51 static Int_t GlobalTrack() { return 1; }
52 static Int_t NonGlobalTrack() { return 0; }
53 virtual Bool_t Pass(Track* track);
54 virtual ~TrackGlobalFlagCut() {};
55 ClassDef(TrackGlobalFlagCut, 1)
56 };
57} // namespace Hal
58#endif /* HALFEMTO_CUTS_TRACKCUTS_HALTRACKFLAGCUTS_H_ */
void SetUnitName(TString name, Int_t i=0)
Definition Cut.h:241
TrackCut(const Int_t i=1)
Definition TrackCut.cxx:17
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)