Store the total number of produced particles in the header.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Aug 2007 09:45:17 +0000 (09:45 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Aug 2007 09:45:17 +0000 (09:45 +0000)
EVGEN/AliGenCocktail.cxx

index 89a4f66590e2f6cbe9f85321066e8a9d30475927..48489d39b5e6f8350e60ed89b418092c11bacb12 100644 (file)
@@ -231,6 +231,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp)
 
 // Event Vertex
     fHeader->SetPrimaryVertex(eventVertex);
+    fHeader->CalcNProduced();
     gAlice->SetGenEventHeader(fHeader); 
 }