]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/AliTrackPoints.h
74bf907643c961517b40f26bba91114be6f71488
[u/mrichter/AliRoot.git] / ANALYSIS / AliTrackPoints.h
1 #ifndef AliTrackPoints_H
2 #define AliTrackPoints_H
3 //_________________________________
4 ////////////////////////////////////////////////////////////
5 //                                                        //
6 // class AliTrackPoints                                //
7 //                                                        //
8 // used by Anti-Merging cut                               //
9 // contains set of poits the lay on track trajectory      //
10 // according to reconstructed track parameters -          //
11 // NOT CLUSTERS POSITIONS!!!                              //
12 // Anti-Merging cut is applied only on tracks coming from //
13 // different events (that are use to fill deniminators)   //
14 //                                                        //
15 ////////////////////////////////////////////////////////////
16 #include <TObject.h>
17
18 class AliTPCtrack;
19 class AliESDtrack;
20
21 class AliTrackPoints: public TObject
22 {
23   public:
24     AliTrackPoints();
25     AliTrackPoints(Int_t n, AliTPCtrack* track, Float_t dr=30, Float_t r0 = 84.1); //min TPC R  = 84.1; max TPC R =  246.6cm, 
26     AliTrackPoints(Int_t n, AliESDtrack* track, Float_t mf, Float_t dr=30,Float_t r0 = 84.1); //min TPC R  = 84.1; max TPC R =  246.6cm, 
27     AliTrackPoints(const AliTrackPoints& in);
28     
29     virtual ~AliTrackPoints();
30     AliTrackPoints& operator=(const AliTrackPoints& in);
31     
32     Double_t AvarageDistance(const AliTrackPoints& tr);
33     void PositionAt(Int_t n, Float_t &x, Float_t &y, Float_t &z);
34     Int_t GetDebug() const {return fgDebug;}
35     void  SetDebug(Int_t deblevel){fgDebug = deblevel;} 
36     static void TestTPC(Int_t entr);
37     static void TestESD(Int_t entr,const char* fname = "AliESDs.root");
38   protected:
39     void MakePoints( Float_t dr, Float_t r0, Double_t x, Double_t* par, Double_t c, Double_t alpha);
40   private:
41     Int_t    fN;//number of points
42     Float_t* fX;//[fN]positions at x
43     Float_t* fY;//[fN]positions at y
44     Float_t* fZ;//[fN] positions at z
45 //    Float_t* fR;//! [fN] radii
46     static Int_t fgDebug;//! debug level
47     ClassDef(AliTrackPoints,1)
48 };
49 #endif