]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDv0.h
Added methods for finding a given module in the DDL map (F. Prino)
[u/mrichter/AliRoot.git] / STEER / AliESDv0.h
index d9381c9295e72c4a12561bf2eca2e2bef5d4d55c..8da2738ff36293c6b93325aa092e98c8d7a8e16c 100644 (file)
 //-------------------------------------------------------------------------
 //                          ESD V0 Vertex Class
 //          This class is part of the Event Summary Data set of classes
-//    Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
+//    Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
+//    Modified by: Marian Ivanov,  CERN, Marian.Ivanov@cern.ch
+//            and  Boris Hippolyte,IPHC, hippolyt@in2p3.fr 
 //-------------------------------------------------------------------------
 
 #include <TObject.h>
 #include <TPDGCode.h>
-
-class AliESDtrack;
+#include "AliESDV0Params.h"
+#include "AliExternalTrackParam.h"
 
 class AliESDv0 : public TObject {
 public:
   AliESDv0();
+  AliESDv0(const AliExternalTrackParam &t1, Int_t i1,
+           const AliExternalTrackParam &t2, Int_t i2);
+
+  AliESDv0(const AliESDv0&);
+  virtual ~AliESDv0();
 
   Double_t ChangeMassHypothesis(Int_t code=kK0Short); 
 
-  Int_t GetPdgCode() const {return fPdgCode;}
-  Double_t GetEffMass() const {return fEffMass;}
-  Double_t GetChi2() const {return fChi2;}
-  void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
-  void GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
-  void GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
-  void GetXYZ(Double_t &x, Double_t &y, Double_t &z) const;
-  Double_t GetD(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const;
-  Int_t GetNindex() const {return fNidx;}
-  Int_t GetPindex() const {return fPidx;}
-  void SetESDindexes(Int_t ip, Int_t im){fNidx=ip;fPidx=im;}
-  void SetDcaDaughters(Double_t rDcaDaughters=0.);
-  Double_t GetDcaDaughters() {return fDcaDaughters;}
-protected: 
-  Int_t fPdgCode;           // reconstructed V0's type (PDG code)
-  Double_t fEffMass;        // reconstructed V0's effective mass
-  Double_t fDcaDaughters;   // dca between V0's daughters
-  Double_t fChi2;           // V0's chi2 value
-  Double_t fPos[3];         // V0's position (global)
-  Double_t fPosCov[6];      // covariance matrix of the vertex position
-
-  Int_t fNidx;              // index of the negative daughter
-  Double_t fNmom[3];        // momentum of the negative daughter (global)
-  Double_t fNmomCov[6];     // covariance matrix of the negative daughter mom.
-
-  Int_t fPidx;              // index of the positive daughter
-  Double_t fPmom[3];        // momentum of the positive daughter (global)
-  Double_t fPmomCov[6];     // covariance matrix of the positive daughter mom.
-
-  ClassDef(AliESDv0,1)      // ESD V0 vertex
+  Int_t    GetPdgCode() const {return fPdgCode;}
+  Float_t  GetEffMass(UInt_t p1, UInt_t p2);
+  Double_t  GetEffMass() const {return fEffMass;}
+  Double_t  GetChi2V0()  const {return fChi2V0;}
+  void     GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
+  void     GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
+  void     GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
+  void     GetXYZ(Double_t &x, Double_t &y, Double_t &z) const;
+  Float_t  GetD(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const;
+  Int_t    GetNindex() const {return fNidx;}
+  Int_t    GetPindex() const {return fPidx;}
+  void     SetDcaV0Daughters(Double_t rDcaV0Daughters=0.);
+  Double_t  GetDcaV0Daughters() {return fDcaV0Daughters;}
+  Float_t  GetV0CosineOfPointingAngle(Double_t&, Double_t&, Double_t&) const;
+  Double_t  GetV0CosineOfPointingAngle() const {return fPointAngle;}
+  void     SetV0CosineOfPointingAngle(Double_t cpa) {fPointAngle=cpa;}
+  void     SetOnFlyStatus(Bool_t status){fOnFlyStatus=status;}
+  Bool_t   GetOnFlyStatus() const {return fOnFlyStatus;}
+  const AliExternalTrackParam *GetParamP() const {return &fParamP;}
+  const AliExternalTrackParam *GetParamN() const {return &fParamN;}
+
+
+
+  // **** The following member functions need to be revised ***
+
+  void GetPosCov(Double_t cov[6])const ; // getter for the covariance matrix of the V0 position 
+  Double_t GetSigmaY();     // sigma of y coordinate at vertex posistion
+  Double_t GetSigmaZ();     // sigma of z coordinate at vertex posistion
+  Double_t GetSigmaAP0();   // calculate sigma of Point angle resolution at vertex pos.
+  Double_t GetSigmaD0();    // calculate sigma of position resolution at vertex pos.
+  Double_t GetEffectiveSigmaAP0();   // calculate sigma of point angle resolution at vertex pos. effecive parameterization
+  Double_t GetEffectiveSigmaD0();    // calculate sigma of position resolution at vertex pos.
+  Double_t GetMinimaxSigmaAP0();    // calculate mini-max sigma of point angle resolution
+  Double_t GetMinimaxSigmaD0();     // calculate mini-max sigma of dca resolution
+  Double_t GetLikelihoodAP(Int_t mode0, Int_t mode1);   // get likelihood for point angle
+  Double_t GetLikelihoodD(Int_t mode0, Int_t mode1);    // get likelihood for DCA
+  Double_t GetLikelihoodC(Int_t mode0, Int_t mode1);    // get likelihood for Causality
+  //
+  //
+  static const AliESDV0Params & GetParameterization(){return fgkParams;}
+  void SetParamP(const AliExternalTrackParam & paramP) {fParamP = paramP;}
+  void SetParamN(const AliExternalTrackParam & paramN) {fParamN = paramN;}
+  void SetStatus(Int_t status){fStatus=status;}
+  Int_t GetStatus() const {return fStatus;}
+  Int_t GetIndex(Int_t i) const {return (i==0) ? fNidx : fPidx;}
+  void SetIndex(Int_t i, Int_t ind) {(i==0) ? (fNidx=ind) : (fPidx=ind);}
+  Double_t *GetAnglep() {return fAngle;}
+  Double_t GetRr() const {return fRr;}
+  Double_t GetDistSigma() const {return fDistSigma;}
+  void SetDistSigma(Double_t ds) {fDistSigma=ds;}
+  Float_t GetChi2Before() const {return fChi2Before;}
+  void SetChi2Before(Float_t cb) {fChi2Before=cb;}
+  Float_t GetChi2After() const {return fChi2After;}
+  void SetChi2After(Float_t ca) {fChi2After=ca;}
+  Float_t GetNAfter() const {return fNAfter;}
+  void SetNAfter(Short_t na) {fNAfter=na;}
+  Short_t GetNBefore() const {return fNBefore;}
+  void SetNBefore(Short_t nb) {fNBefore=nb;}  
+  void SetCausality(Float_t pb0, Float_t pb1, Float_t pa0, Float_t pa1);
+  const Double_t * GetCausalityP() const {return fCausality;}
+  void SetClusters(Int_t *clp, Int_t *clm);
+  const Int_t * GetClusters(Int_t i) const {return fClusters[i];}
+  void SetNormDCAPrim(Float_t nd0, Float_t nd1){fNormDCAPrim[0] = nd0; fNormDCAPrim[1]=nd1;}
+  const Double_t  *GetNormDCAPrimP() const {return fNormDCAPrim;}
+
+protected:
+  AliExternalTrackParam fParamN;  // external parameters of negative particle
+  AliExternalTrackParam fParamP;  // external parameters of positive particle
+
+  // CKBrev: tkink about revision
+
+  Double32_t   fEffMass;          // reconstructed V0's effective mass
+  Double32_t   fDcaV0Daughters;   // dca between V0's daughters
+  Double32_t   fChi2V0;           // V0's chi2 value
+  Double32_t   fPos[3];         // V0's position (global)
+  Double32_t   fPosCov[6];      // covariance matrix of the vertex position
+  Double32_t   fNmom[3];        // momentum of the negative daughter (global)
+  Double32_t   fPmom[3];        // momentum of the positive daughter (global)
+  Double32_t   fNormDCAPrim[2];  // normalize distance to the priary vertex CKBrev
+  Double32_t   fRr;         //rec position of the vertex CKBrev
+  Double32_t   fDistSigma; //sigma of distance CKBrev
+  Double32_t        fChi2Before;   //chi2 of the tracks before V0 CKBrev
+  Double32_t        fChi2After;   // chi2 of the tracks after V0 CKBrev
+
+
+  Double32_t        fCausality[4]; //[0,1,8] causality information - see comments in SetCausality CKBrev
+  Double32_t        fAngle[3];   //[-2*pi,2*pi,16]three angles CKBrev
+  Double32_t        fPointAngleFi; //[-1,1,16]point angle fi CKBrev
+  Double32_t        fPointAngleTh; //[-1,1,16]point angle theta CKBrev
+  Double32_t        fPointAngle;   //[-1,1,16] cosine of the pointing angle
+
+
+  Int_t fPdgCode;             // reconstructed V0's type (PDG code)
+  Int_t fClusters[2][6];      //! its clusters CKBrev  
+  Int_t fNidx;                // index of the negative daughter
+  Int_t fPidx;                // index of the positive daughter
+
+
+
+  Short_t    fStatus;     //status CKBrev
+  Short_t    fNBefore;      // number of possible points before V0 CKBrev
+  Short_t    fNAfter;      // number of possible points after V0 CKBrev
+
+  Bool_t     fOnFlyStatus;    // if kTRUE, then this V0 is recontructed
+                            // "on fly" during the tracking
+
+  //
+  // parameterization coefficients
+  static const AliESDV0Params fgkParams;  //! resolution and likelihood parameterization  
+
+private:
+  AliESDv0& operator=(const AliESDv0&);
+
+  ClassDef(AliESDv0,4)      // ESD V0 vertex
 };
 
 inline 
@@ -66,10 +157,8 @@ px=fPmom[0]; py=fPmom[1]; pz=fPmom[2];
 }
 
 inline
-void AliESDv0::SetDcaDaughters(Double_t rDcaDaughters){
-  fDcaDaughters=rDcaDaughters;
+void AliESDv0::SetDcaV0Daughters(Double_t rDcaV0Daughters){
+  fDcaV0Daughters=rDcaV0Daughters;
 }
 
 #endif
-
-