From: alla Date: Mon, 15 Apr 2002 07:23:54 +0000 (+0000) Subject: Digits and reconstruction with TObject X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=9747a01ff576fd46331df88e19e80c03b7d4375c;ds=inline Digits and reconstruction with TObject --- diff --git a/START/VertexMaker.C b/START/VertexMaker.C new file mode 100644 index 00000000000..b0222ff1747 --- /dev/null +++ b/START/VertexMaker.C @@ -0,0 +1,37 @@ +void VertexMaker(Int_t evNumber=1) +{ + + // Dynamically link some shared libs + if (gClassTable->GetID("AliRun") < 0) { + gROOT->LoadMacro("loadlibs.C"); + loadlibs(); + } + + // Connect the Root Galice file containing Geometry, Kine and Hits + TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root"); + if (!file) file = new TFile("digits.root","UPDATE"); + + // Get AliRun object from file or create it if not on file + if (!gAlice) { + gAlice = (AliRun*)file->Get("gAlice"); + if (gAlice) printf("AliRun object found on file\n"); + if (!gAlice) gAlice = new AliRun("gAlice","Alice test program"); + } + + + vertex= new AliSTARTvertex(); + TBranch *bRec=0; + + + // Event ------------------------- LOOP + for (Int_t j=0; jReconstruct(j); + } + file->Write(); + file->Close(); + +} // end of macro + + + +