]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDcascade.h
added cutoff parameter in z direction to ignore clusters of large z (Gaute)
[u/mrichter/AliRoot.git] / STEER / AliESDcascade.h
index 53e624e660df815c43ade7fe3846d4bb79c23da1..b3755d98f40847b14b7ff988ca4c0825388f7d21 100644 (file)
 
 class AliExternalTrackParam;
 
-#define kXiMinus       3312
-#define kXiPlusBar    -3312
-#define kOmegaMinus    3334
-#define kOmegaPlusBar -3334
 
 class AliESDcascade : public AliESDv0 {
 
+  enum  { kOmegaPlusBar =  -3334,
+         kXiPlusBar    =  -3312,
+         kXiMinus      =   3312,
+         kOmegaMinus   =   3334};
+
 public:
   AliESDcascade();
   AliESDcascade(const AliESDcascade&);
   AliESDcascade(const AliESDv0 &v0,
                 const AliExternalTrackParam &t, Int_t i);
   ~AliESDcascade();
-
   AliESDcascade& operator=(const AliESDcascade&);
+  virtual void Copy(TObject &obj) const;
 
   Double_t ChangeMassHypothesis(Double_t &v0q, Int_t code=kXiMinus); 
 
-  Int_t    GetPdgCode() const {return fPdgCode;}
-  Double_t GetEffMass() const {return fEffMass;}
+  Int_t    GetPdgCodeXi() const {return fPdgCodeXi;}
+  Double_t GetEffMassXi() const {return fEffMassXi;}
   Double_t GetChi2Xi()  const {return fChi2Xi;}
   void     GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
   void     GetXYZcascade(Double_t &x, Double_t &y, Double_t &z) const;
@@ -48,23 +49,31 @@ public:
   }
 
   Int_t    GetBindex() const {return fBachIdx;}
+  void     SetIndex(Int_t i) {fBachIdx=i;}        //for the consistensy with V0
+  Int_t    GetIndex() const {return GetBindex();} //for the consistensy with V0
   void     SetDcaXiDaughters(Double_t rDcaXiDaughters=0.);
   Double_t GetDcaXiDaughters() const {return fDcaXiDaughters;}
   Double_t GetCascadeCosineOfPointingAngle(Double_t&, Double_t&, Double_t&) const;
 
+  void GetPosCovXi(Double_t cov[6]) const;
+
 protected: 
-  Int_t    fPdgCode;        // reconstructed cascade type (PDG code)
-  Double_t fEffMass;        // reconstructed cascade effective mass
-  Double_t fChi2Xi;         // chi2 value
-  Double_t fDcaXiDaughters; // dca between Xi's daughters
-  Double_t fPosXi[3];       // cascade vertex position (global)
-  Double_t fPosCovXi[6];    // covariance matrix of the vertex position
-
-  Int_t    fBachIdx;        // label of the bachelor track
-  Double_t fBachMom[3];     // bachelor momentum (global)
-  Double_t fBachMomCov[6];  // covariance matrix of the bachelor momentum.
-
-  ClassDef(AliESDcascade,2) // reconstructed cascade vertex
+
+  Double32_t fEffMassXi;      // reconstructed cascade effective mass
+  Double32_t fChi2Xi;         // chi2 value
+  Double32_t fDcaXiDaughters; // dca between Xi's daughters
+  Double32_t fPosXi[3];       // cascade vertex position (global)
+  Double32_t fPosCovXi[6];    // covariance matrix of the vertex position
+  Double32_t fBachMom[3];     // bachelor momentum (global)
+  Double32_t fBachMomCov[6];  // covariance matrix of the bachelor momentum.
+  Int_t      fPdgCodeXi;      // reconstructed cascade type (PDG code)
+  Int_t      fBachIdx;        // label of the bachelor track
+
+
+private:
+
+
+  ClassDef(AliESDcascade,5) // reconstructed cascade vertex
 };
 
 inline