]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/AliTrackPoints.h
New kind of the track points added: points in ITS, 3 inner are calculated out of...
[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     enum ETypes
25       {//defines the type and the track points are calculated
26         kITS = 1,//points calculated in ITS, made out of the vector at vertex
27         kITSInnerFromVertexOuterFromTPC //for ITS, for 3 inner layers calculated out of the vector at vertex
28                                         //         for 3 outer ---------------//------------------ at inner TPC
29       };
30
31     AliTrackPoints();
32     AliTrackPoints(AliTrackPoints::ETypes type, AliESDtrack* track, Float_t mf);
33     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, 
34     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, 
35 //    AliTrackPoints(const AliTrackPoints& in);
36     
37     virtual ~AliTrackPoints();
38 //    AliTrackPoints& operator=(const AliTrackPoints& in);
39     
40     Double_t AvarageDistance(const AliTrackPoints& tr);
41     void PositionAt(Int_t n, Float_t &x, Float_t &y, Float_t &z);
42     void Move(Float_t x, Float_t y, Float_t z);
43     Int_t GetN() const {return fN;}
44
45     Int_t GetDebug() const {return fgDebug;}
46     void  SetDebug(Int_t deblevel){fgDebug = deblevel;} 
47     static void Testtpc(Int_t entr);
48     static void Testesd(Int_t entr,const char* fname = "AliESDs.root");
49
50   protected:
51     void MakePoints( Float_t dr, Float_t r0, Double_t x, Double_t* par, Double_t c, Double_t alpha);
52     void MakeITSPoints(AliESDtrack* track);
53     void MakeITSPointsInnerFromVertexOuterFromTPC(AliESDtrack* track,Float_t mf);
54     
55   private:
56     Int_t    fN;//number of points
57     Float_t* fX;//[fN]positions at x
58     Float_t* fY;//[fN]positions at y
59     Float_t* fZ;//[fN] positions at z
60 //    Float_t* fR;//! [fN] radii
61     static Int_t fgDebug;//! debug level
62     ClassDef(AliTrackPoints,1)
63 };
64 #endif