In stand-allone mode, pass stack to entries.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Jun 2004 16:09:37 +0000 (16:09 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Jun 2004 16:09:37 +0000 (16:09 +0000)
EVGEN/AliGenCocktail.cxx

index ce2e5edc743496ea143f27ca4aeccae6d889ad60..5107d1fb5e9788bd8396da5355e02f708755aeaa 100644 (file)
@@ -88,6 +88,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp)
     Generator->SetVertexSmear(fVertexSmear);
     Generator->SetVertexSource(kContainer);
     Generator->SetTrackingFlag(fTrackIt);
     Generator->SetVertexSmear(fVertexSmear);
     Generator->SetVertexSource(kContainer);
     Generator->SetTrackingFlag(fTrackIt);
+        
 //
 //  Add generator to list   
     char theName[256];
 //
 //  Add generator to list   
     char theName[256];
@@ -109,6 +110,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp)
     //
     // Loop over generators and initialize
     while((entry = (AliGenCocktailEntry*)next())) {
     //
     // Loop over generators and initialize
     while((entry = (AliGenCocktailEntry*)next())) {
+       if (fStack)  entry->Generator()->SetStack(fStack);
        entry->Generator()->Init();
     }  
 }
        entry->Generator()->Init();
     }  
 }