Store event weight from Pythia in event header
authormorsch <andreas.morsch@cern.ch>
Thu, 23 Jan 2014 16:40:49 +0000 (17:40 +0100)
committermorsch <andreas.morsch@cern.ch>
Thu, 23 Jan 2014 16:40:49 +0000 (17:40 +0100)
PYTHIA6/AliGenPythia.cxx

index 1c5e6d3..c4e0d11 100644 (file)
@@ -1252,6 +1252,9 @@ void AliGenPythia::MakeHeader()
 // Number of primaries
     fHeader->SetNProduced(fNprimaries);
 //
+// Event weight
+    fHeader->SetEventWeight(fPythia->GetVINT(97));
+//
 // Jets that have triggered
 
     //Need to store jets for b-jet studies too!