X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliV0vertexer.cxx;h=ae44cabf57f8cb0850d3681cb9abd3411d51fdc7;hb=6b8f6f6e0b17ff3af1f24145937e359a5f9c6060;hp=cc8df89c1ebcfc41d1760669b9ec38bf3671bb6e;hpb=4ab260d641203d4c5e08caa60f924b9650a2027f;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliV0vertexer.cxx b/ITS/AliV0vertexer.cxx index cc8df89c1eb..ae44cabf57f 100644 --- a/ITS/AliV0vertexer.cxx +++ b/ITS/AliV0vertexer.cxx @@ -21,7 +21,7 @@ #include #include #include -#include +#include "Riostream.h" #include "AliV0vertex.h" #include "AliV0vertexer.h" @@ -50,7 +50,9 @@ Int_t AliV0vertexer::Tracks2V0vertices(const TFile *inp, TFile *out) { in->cd(); - TTree *trkTree=(TTree*)in->Get("TreeT_ITS_0"); + Char_t name[100]; + sprintf(name,"TreeT_ITS_%d",fEventN); + TTree *trkTree=(TTree*)in->Get(name); TBranch *branch=trkTree->GetBranch("tracks"); Int_t nentr=(Int_t)trkTree->GetEntries(); @@ -73,7 +75,8 @@ Int_t AliV0vertexer::Tracks2V0vertices(const TFile *inp, TFile *out) { out->cd(); - TTree vtxTree("TreeV","Tree with V0 vertices"); + sprintf(name,"TreeV%d",fEventN); + TTree vtxTree(name,"Tree with V0 vertices"); AliV0vertex *ioVertex=0; vtxTree.Branch("vertices","AliV0vertex",&ioVertex,32000,0); @@ -82,17 +85,17 @@ Int_t AliV0vertexer::Tracks2V0vertices(const TFile *inp, TFile *out) { if (i%10==0) cerr<GetD())GetD())>fRmax) continue; + if (TMath::Abs(ntrk->GetD(fX,fY))GetD(fX,fY))>fRmax) continue; for (Int_t k=0; kGetD())GetD())>fRmax) continue; + if (TMath::Abs(ptrk->GetD(fX,fY))GetD(fX,fY))>fRmax) continue; - if (TMath::Abs(ntrk->GetD())GetD())GetD(fX,fY))GetD(fX,fY))