FairRoot/PandaRoot
RhoGoodTrackSelector.h
Go to the documentation of this file.
1 #ifndef RHOGOODTRACKSELECTOR_H
2 #define RHOGOODTRACKSELECTOR_H
3 // //
5 // RhoGoodTrackSelector //
6 // //
7 // Selector classes for track quality selections //
8 // //
9 // Author List: //
10 // Marcel Kunze, RUB, Feb. 99 //
11 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
12 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
13 // //
15 
17 
19 {
20 
21  public:
22  // Default constructor installs the currently accepted general setting
23  RhoGoodTrackSelector ( const char* name="RhoGoodTrackSelector" );
24  //Destructor
25  virtual ~RhoGoodTrackSelector();
26  virtual void PrintOn ( std::ostream& o=std::cout ) const;
27 
28 
29 // void SetNHitsCut ( Int_t min, Int_t max=65535 ) {
30 // fNHitsMin = min;
31 // fNHitsMax = max;
32 // fCutHits=kTRUE;
33 // }
34  void SetMomentumCut ( Double_t pmin, Double_t pmax=1.E8 ) {
35  fPMin = pmin;
36  fPMax = pmax;
37  fCutMom=kTRUE;
38  }
39  void SetPtCut ( Double_t ptmin, Double_t ptmax=1.E8 ) {
40  fPtMin = ptmin;
41  fPtMax = ptmax;
42  fCutPt=kTRUE;
43  }
44  void SetFitCut ( Double_t chi=1e9, Double_t chipm=0.0) {
45  fChisqProbMin = chipm;
46  fChisqMax = chi;
47  fCutFit=kTRUE;
48  }
50  fDocaMax = d;
51  fZMin = zmin;
52  fZMax = zmax;
53  fCutVtx=kTRUE;
54  }
55 
56  protected:
57  //operations
58  virtual void SetCriterion ( const char* ) {}; // crit //[R.K.03/2017] unused variable(s)
59  virtual Bool_t Accept ( RhoCandidate& b );
60  virtual Bool_t Accept ( PndPidCandidate& b );
61 
62  private:
63 // Int_t fNHitsMin; // Number of hits: total
64 // Int_t fNHitsMax; // Number of hits: total
65  Double_t fPMin, fPMax, fPtMin, fPtMax; // Momentum cuts (abs. value)
66  Double_t fChisqProbMin, fChisqMax; // Fit chi-square probability
67  Double_t fDocaMax; // Distance of closest approach
68  Double_t fZMin, fZMax; // Closest z approach to beam spot
73 // Bool_t fCutHits;
74 
75  public:
76  ClassDef( RhoGoodTrackSelector,1 ) // Track selector
77 };
78 
79 // standalone print
81 
82 #endif
TObjArray * d
RhoGoodTrackSelector(const char *name="RhoGoodTrackSelector")
TTree * b
void SetPrimaryVertexCut(Double_t d, Double_t zmin, Double_t zmax)
void SetPtCut(Double_t ptmin, Double_t ptmax=1.E8)
virtual Bool_t Accept(RhoCandidate &b)
Double_t
virtual void PrintOn(std::ostream &o=std::cout) const
void SetMomentumCut(Double_t pmin, Double_t pmax=1.E8)
TString name
virtual void SetCriterion(const char *)
std::ostream & operator<<(std::ostream &o, const RhoGoodTrackSelector &)
void SetFitCut(Double_t chi=1e9, Double_t chipm=0.0)