From 87feb3d7f9d7c1278b5e53c0ed9505380820e819 Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 1 Aug 2007 13:51:08 +0000 Subject: [PATCH] Clean-up. Call to ConnectTree to store correctly the stack --- test/genkine/gen/fastGen.C | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/genkine/gen/fastGen.C b/test/genkine/gen/fastGen.C index 9be11ce1b4c..6a0c68a30f7 100644 --- a/test/genkine/gen/fastGen.C +++ b/test/genkine/gen/fastGen.C @@ -28,7 +28,7 @@ void GetFinalDecayProducts(Int_t ind, AliStack & stack , TArrayI & ar); void fastGen(Int_t nev = 1, char* filename = "galice.root") { AliPDG::AddParticlesToPdgDataBase(); - TDatabasePDG* pPdg = TDatabasePDG::Instance(); + TDatabasePDG::Instance(); @@ -102,7 +102,6 @@ void fastGen(Int_t nev = 1, char* filename = "galice.root") // Generate event Int_t nprim = 0; Int_t ntrial = 0; - Int_t minmult = 1000; Int_t ndstar = 0; @@ -110,9 +109,9 @@ void fastGen(Int_t nev = 1, char* filename = "galice.root") //------------------------------------------------------------------------------------- while(!ndstar) { - // Selection of events with multiplicity - // bigger than "minmult" + // Selection of events with D* stack->Reset(); + stack->ConnectTree(rl->TreeK()); gener->Generate(); ntrial++; nprim = stack->GetNprimary(); @@ -176,8 +175,6 @@ void fastGen(Int_t nev = 1, char* filename = "galice.root") // Termination // Generator gener->FinishRun(); - // Stack - stack->FinishRun(); // Write file rl->WriteHeader("OVERWRITE"); gener->Write(); -- 2.39.3