]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDkink.h
Initialisation of fractions corrected.
[u/mrichter/AliRoot.git] / STEER / AliESDkink.h
index 99cf28a39a137582a2115b86c1182036e4cf17b6..300210ac31b13ba9a92b2e99d62908d3614a82c9 100644 (file)
@@ -21,38 +21,73 @@ class AliESDtrack;
 class AliESDkink : public TObject {
 public:
   AliESDkink();             //constructor
+  AliESDkink(const AliESDkink &source);             //constructor
+  AliESDkink& operator=(const AliESDkink &source);
+  virtual void Copy(TObject &obj) const;
   //
-  void SetID(Int_t id){fID=id;}
-  Int_t GetID(){return fID;}
+  void SetID(Short_t id){fID=id;}
+  Short_t GetID(){return fID;}
   void SetMother(const AliExternalTrackParam & pmother); 
   void SetDaughter(const AliExternalTrackParam & pdaughter);
-  void Update();            //update
-  Float_t GetTPCDensityFactor() const;
+  Double_t GetTPCDensityFactor() const;
   Float_t GetQt() const;    
+  //
+  Double_t GetR() const {return fRr;}
+  Double_t GetDistance() const {return fDist2;}
+  UChar_t   GetTPCRow0() const {return fRow0;}
+  Double_t GetAngle(Int_t i) const {return fAngle[i];}
+  const Double_t *GetPosition() const   {return fXr;}
+  const Double_t *GetMotherP()  const   {return fPm;}
+  const Double_t *GetDaughterP()  const {return fPdr;}
+  void SetTPCRow0(Int_t row0){fRow0 = row0;}
+  Int_t GetLabel(Int_t i) const {return fLab[i];}
+  void SetLabel(Int_t label, Int_t pos) {fLab[pos]=label;}
+  Int_t GetIndex(Int_t i) const {return fIndex[i];}
+  void SetIndex(Int_t index, Int_t pos){fIndex[pos]=index;}
+  void SetStatus(Char_t status, Int_t pos){fStatus[pos]=status;}
+  Char_t GetStatus(Int_t pos) const {return fStatus[pos];}
+  void SetTPCncls(UChar_t ncls,Int_t pos) {fTPCncls[pos]=ncls;}
+  const UChar_t *GetTPCncls() const {return fTPCncls;} 
+  void  SetTPCDensity(Float_t dens, Int_t pos0,Int_t pos1){fTPCdensity[pos0][pos1]=dens;}
+  Double_t GetTPCDensity(Int_t pos0,Int_t pos1) const {return fTPCdensity[pos0][pos1];}
+  Double_t GetShapeFactor() const {return fShapeFactor;}
+  void    SetShapeFactor(Float_t factor){fShapeFactor = factor;}
+  void  SetMultiple(UChar_t mult,Int_t pos){fMultiple[pos]=mult;}
+  const UChar_t * GetMultiple() const {return fMultiple;}
   //  
-  Int_t          fID;       // kink ID
+  const AliExternalTrackParam& RefParamDaughter() {return fParamDaughter;}
+  const AliExternalTrackParam& RefParamMother()   {return fParamMother;}
+ protected:
+
   AliExternalTrackParam fParamDaughter;
   AliExternalTrackParam fParamMother;
-  Double_t       fDist1;    //info about closest distance according closest MC - linear DCA
-  Double_t       fDist2;    //info about closest distance parabolic DCA
+
+  Double32_t       fDist1;    //info about closest distance according closest MC - linear DCA
+  Double32_t       fDist2;    //info about closest distance parabolic DCA
   //
-  Double_t       fPdr[3];    //momentum at vertex daughter  - according approx at DCA
-  Double_t       fXr[3];     //rec. position according helix
+  Double32_t       fPdr[3];    //momentum at vertex daughter  - according approx at DCA
+  Double32_t       fXr[3];     //rec. position according helix
   //
-  Double_t       fPm[3];    //momentum at the vertex mother
-  Double_t       fAngle[3]; //three angles
-  Double_t       fRr;       // rec position of the vertex 
-  Int_t          fLab[2];   //MC label of the partecle
-  Int_t          fIndex[2]; //reconstructed labels of the tracks
-  Int_t          fStatus;       //status 
-  Float_t        fTPCdensity[2][2];  //tpc cluster density before and after kink
-  Float_t        fTPCdensity2[2][2];  //tpc cluster density before and after kink - after second iteration
-  Float_t        fShapeFactor;       // tpc clusters shape factor
-  Int_t          fRow0;              // critical pad row number
-  Int_t          fMultiple[2];       //how many times the track's were used
-  Float_t        fZm[2];                // z at the middle of chamber
-  Float_t        fFi[2];
-  ClassDef(AliESDkink,1)      // ESD V0 vertex
+  Double32_t       fPm[3];    //momentum at the vertex mother
+  Double32_t       fRr;       // rec position of the vertex 
+
+  Double32_t       fShapeFactor;       // tpc clusters shape factor
+  Double32_t       fTPCdensity[2][2];  //[0,1,16]tpc cluster density before and after kink
+  Double32_t       fAngle[3]; //[-2*pi,2*pi,16]three angles
+
+  Int_t            fLab[2];   //MC label of the partecle
+  Int_t            fIndex[2]; //reconstructed labels of the tracks
+
+  Short_t          fID;       // kink ID
+
+  UChar_t          fRow0;              // critical pad row number
+  UChar_t          fMultiple[2];       //how many times the track's were used
+  UChar_t          fTPCncls[2];     //number of clusters for mother particle
+
+  Char_t           fStatus[12];       //status of kink - first 4 mother (ITS,TPC,TRD,TOF)  other daughter
+
+
+  ClassDef(AliESDkink,4)      // ESD V0 vertex
 };
 
 #endif