]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/FEMTOSCOPY/AliFemto/AliFemtoV0TrackPairCut.h
Add TPC entrance separation to V0 cuts
[u/mrichter/AliRoot.git] / PWGCF / FEMTOSCOPY / AliFemto / AliFemtoV0TrackPairCut.h
1 /////////////////////////////////////////////////////////////////////////////
2 //                                                                         //
3 // AliFemtoShareQualityPairCut - a pair cut which checks for some pair     //
4 // qualities that attempt to identify slit/doubly reconstructed tracks     //
5 //                                                                         //
6 /////////////////////////////////////////////////////////////////////////////
7 /***************************************************************************
8  *
9  * $Id: AliFemtoShareQualityPairCut.h 24360 2008-03-10 09:48:27Z akisiel $
10  *
11  * Author: Adam Kisiel, Ohio State University, kisiel@mps.ohio-state.edu
12  ***************************************************************************
13  *
14  * Description: part of STAR HBT Framework: AliFemtoMaker package
15  *   a cut to remove "shared" and "split" pairs
16  *
17  ***************************************************************************
18  *
19  *
20  **************************************************************************/
21
22
23 #ifndef ALIFEMTOV0TRACKPAIRCUT_H
24 #define ALIFEMTOV0TRACKPAIRCUT_H
25
26 // do I need these lines ?
27 //#ifndef StMaker_H
28 //#include "StMaker.h"
29 //#endif
30
31 #include "AliFemtoPairCut.h"
32
33 class AliFemtoV0TrackPairCut : public AliFemtoPairCut{
34 public:
35   AliFemtoV0TrackPairCut();
36   AliFemtoV0TrackPairCut(const AliFemtoV0TrackPairCut& cut);
37   virtual ~AliFemtoV0TrackPairCut();
38   AliFemtoV0TrackPairCut& operator=(const AliFemtoV0TrackPairCut& cut);
39   
40   virtual bool Pass(const AliFemtoPair* pair);
41   virtual AliFemtoString Report();
42   virtual TList *ListSettings();
43   virtual AliFemtoPairCut* Clone();
44   void SetV0Max(Double_t aAliFemtoV0Max);
45   Double_t GetAliFemtoV0Max() const;
46   void     SetRemoveSameLabel(Bool_t aRemove);
47   void SetTPCOnly(Bool_t tpconly);
48   void SetShareQualityMax(Double_t aShareQualityMax);
49   void SetShareFractionMax(Double_t aShareFractionMax);
50   void SetTPCEntranceSepMinimum(double dtpc);
51   void SetTPCExitSepMinimum(double dtpc);
52   void SetDataType(AliFemtoDataType type);
53
54  protected:
55   long fNPairsPassed;          // Number of pairs consideered that passed the cut 
56   long fNPairsFailed;          // Number of pairs consideered that failed the cut
57
58  private:
59   Double_t fV0Max;   // Maximum allowed pair quality
60   Double_t fShareQualityMax;
61   Double_t fShareFractionMax;  // Maximum allowed share fraction
62   Bool_t   fRemoveSameLabel;   // If 1 pairs with two tracks with the same label will be removed
63   Bool_t fTrackTPCOnly;
64
65   AliFemtoDataType fDataType; //Use ESD / AOD / Kinematics.
66   Double_t fDTPCMin;          // Minimum allowed pair nominal separation at the entrance to the TPC
67   Double_t fDTPCExitMin;          // Minimum allowed pair nominal separation at the exit of the TPC
68  
69
70
71 #ifdef __ROOT__
72   ClassDef(AliFemtoV0TrackPairCut, 0)
73 #endif
74 };
75
76 inline AliFemtoV0TrackPairCut::AliFemtoV0TrackPairCut(const AliFemtoV0TrackPairCut& c) : 
77   AliFemtoPairCut(c),
78   fNPairsPassed(0),
79   fNPairsFailed(0),
80   fV0Max(1.0),
81   fShareQualityMax(1.0),
82   fShareFractionMax(1.0),
83   fRemoveSameLabel(0),
84   fTrackTPCOnly(0),
85   fDataType(kAOD),
86   fDTPCMin(0),
87   fDTPCExitMin(0)
88 { /* no-op */ }
89
90 inline AliFemtoPairCut* AliFemtoV0TrackPairCut::Clone() { AliFemtoV0TrackPairCut* c = new AliFemtoV0TrackPairCut(*this); return c;}
91
92 #endif