Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackTpcCut.h
1/*
2 * TrackTpcBasicCut.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 HALTRACKTPCCUT_H_
10#define HALTRACKTPCCUT_H_
11#include "TrackExpCut.h"
24namespace Hal {
25 class TrackTpcCut : public TrackExpCut {
26 Int_t fParticleType;
27 enum TrackTpcMode { kNotBad, kGood };
28 TrackTpcMode fMode;
29
30 protected:
31 static const int fgSigmaPionId;
32 static const int fgSigmaKaonId;
33 static const int fgSigmaProtonId;
34 static const int fgSigmaElectronId;
35 static const int fgTpcHitsId;
36 static const int fgChargeId;
37 static const int fgDeDxId;
38 Bool_t Verify();
39
40 public:
42 TrackTpcCut(const TrackTpcCut& other);
43 virtual Bool_t Pass(Track* track);
44 virtual Bool_t Init(Int_t task_id);
50 void SetModeGood() { fMode = kGood; };
55 void SetModeNotBad() { fMode = kNotBad; };
64 void SetSigma(Double_t min, Double_t max, TString sigma);
69 void SetCharge(Int_t i);
75 void SetNHits(Int_t min, Int_t max);
80 void SetActiveSigma(TString flag);
81 void SetDeDx(Double_t min, Double_t max);
86 static inline Int_t PionSigma() { return fgSigmaPionId; };
91 static inline Int_t KaonSigma() { return fgSigmaKaonId; };
96 static inline Int_t ProtonSigma() { return fgSigmaProtonId; };
101 static inline Int_t ElectronSigma() { return fgSigmaElectronId; };
106 static inline Int_t TpcHits() { return fgTpcHitsId; };
111 static inline Int_t Charge() { return fgChargeId; };
116 static inline Int_t DeDx() { return fgDeDxId; };
121 Int_t GetActiveSigma() const { return fParticleType; };
122 Package* Report() const;
123 virtual ~TrackTpcCut();
124 ClassDef(TrackTpcCut, 1)
125 };
126} // namespace Hal
127#endif /* HALTRACKTPCCUT_H_ */
void SetActiveSigma(TString flag)
void SetSigma(Double_t min, Double_t max, TString sigma)
static Int_t DeDx()
static Int_t TpcHits()
Package * Report() const
void SetCharge(Int_t i)
static Int_t PionSigma()
Definition TrackTpcCut.h:86
virtual Bool_t Init(Int_t task_id)
void SetNHits(Int_t min, Int_t max)
Int_t GetActiveSigma() const
virtual Bool_t Pass(Track *track)
static Int_t Charge()
static Int_t ProtonSigma()
Definition TrackTpcCut.h:96
static Int_t ElectronSigma()
static Int_t KaonSigma()
Definition TrackTpcCut.h:91