Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackFlagCuts.cxx
1/*
2 * TrackFlagCuts.cxx
3 *
4 * Created on: 2 sty 2021
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "TrackFlagCuts.h"
10
11#include "Track.h"
12namespace Hal {
14 if (track->IsPrimary()) {
15 SetValue(Primary());
16 } else {
17 SetValue(NonPrimary());
18 }
19 return Validate();
20 }
21
22 Bool_t TrackV0FlagCut::Pass(Track* track) {
23 if (track->IsGoodV0()) {
24 SetValue(GoodV0());
25 } else if (track->IsV0()) {
26 SetValue(BadV0());
27 } else {
28 SetValue(NonV0());
29 }
30 return Validate();
31 }
32
34 if (track->IsGoodSecondary()) {
35 SetValue(HasMother());
36 } else {
37 SetValue(IsOrphan());
38 }
39 return Validate();
40 }
41
43 if (track->IsGlobal()) {
44 SetValue(GlobalTrack());
45 } else {
46 SetValue(NonGlobalTrack());
47 }
48 return Validate();
49 }
50} // namespace Hal
void SetValue(Double_t val, Int_t i=0)
Definition Cut.h:235
Bool_t Validate()
Definition Cut.cxx:43
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)
Bool_t IsGlobal() const
Definition Track.h:230
Bool_t IsPrimary() const
Definition Track.h:209
Bool_t IsV0() const
Definition Track.h:278
Bool_t IsGoodV0() const
Definition Track.h:219
Bool_t IsGoodSecondary() const
Definition Track.h:214