]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliV0vertexer.h
Changes for root v4-00-02 (F.Carminati)
[u/mrichter/AliRoot.git] / ITS / AliV0vertexer.h
index 3682c40198eaad0d12c48d8eacb2d85249098e1d..6ddf03aa14faa3963d6fe3d80e67ca45e91b4362 100644 (file)
@@ -5,14 +5,15 @@
 
 //------------------------------------------------------------------
 //                    V0 Vertexer Class
-//
+//            reads tracks writes out V0 vertices
 //   Origin: Iouri Belikov, IReS, Strasbourg, Jouri.Belikov@cern.ch 
 //------------------------------------------------------------------
 
 #include "TObject.h"
 
-class TFile;
+class TTree;
 class AliITStrackV2;
+class AliESD;
 
 //_____________________________________________________________________________
 class AliV0vertexer : public TObject {
@@ -21,16 +22,16 @@ public:
   AliV0vertexer(const Double_t cuts[7]);
   void SetCuts(const Double_t cuts[7]);
   void SetVertex(Double_t *vtx) { fX=vtx[0]; fY=vtx[1]; fZ=vtx[2]; }
-  void SetEvent(Int_t ev) {fEventN=ev;}
 
-  Int_t Tracks2V0vertices(const TFile *in, TFile *out);
-  Double_t PropagateToDCA(AliITStrackV2 *nt, AliITStrackV2 *pt);
+  Int_t Tracks2V0vertices(AliESD *event);
+
+  Int_t Tracks2V0vertices(TTree *in, TTree *out);
+  Double_t PropagateToDCA(AliITStrackV2 *nt, AliITStrackV2 *pt) const;
 
   void GetCuts(Double_t cuts[7]) const;
-  void GetVertex(Double_t *vtx) { vtx[0]=fX; vtx[1]=fY; vtx[2]=fZ; }
+  void GetVertex(Double_t *vtx) const { vtx[0]=fX; vtx[1]=fY; vtx[2]=fZ; }
 
 private:
-  Int_t fEventN;          //event number
 
   Double_t fChi2max;      // maximal allowed chi2 
   Double_t fDNmin;        // min. allowed negative daughter's impact parameter
@@ -47,7 +48,6 @@ private:
 };
 
 inline AliV0vertexer::AliV0vertexer() {
-  fEventN=0;
   fChi2max=33.; 
   fDNmin=0.015; fDPmin=0.015;
   fDCAmax=0.01; fCPAmax=0.025; 
@@ -56,7 +56,6 @@ inline AliV0vertexer::AliV0vertexer() {
 }
 
 inline AliV0vertexer::AliV0vertexer(const Double_t cuts[7]) {
-  fEventN=0;
   fChi2max=cuts[0]; 
   fDNmin=cuts[1];   fDPmin=cuts[2];
   fDCAmax=cuts[3];  fCPAmax=cuts[4];