Store spectators in header.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Nov 2010 23:11:51 +0000 (23:11 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Nov 2010 23:11:51 +0000 (23:11 +0000)
TDPMjet/AliGenDPMjet.cxx

index 68ddec3..c74e595 100644 (file)
@@ -435,6 +435,7 @@ Bool_t AliGenDPMjet::Stable(TParticle*  particle)
 //______________________________________________________________________________
 void AliGenDPMjet::MakeHeader()
 {
+  printf("MakeHeader %13.3f \n", fDPMjet->GetBImpac());
 // Builds the event header, to be called after each event
     AliGenEventHeader* header = new AliGenDPMjetEventHeader("DPMJET");
     ((AliGenDPMjetEventHeader*) header)->SetNProduced(fDPMjet->GetNumStablePc());
@@ -442,6 +443,11 @@ void AliGenDPMjet::MakeHeader()
     ((AliGenDPMjetEventHeader*) header)->SetTotalEnergy(fDPMjet->GetTotEnergy());
     ((AliGenDPMjetEventHeader*) header)->SetParticipants(fDPMjet->GetfIp(), 
                                                         fDPMjet->GetfIt());
+    ((AliGenDPMjetEventHeader*) header)->SetSpectators(fDPMjet->GetProjSpectators(), 
+                                                      0,
+                                                      fDPMjet->GetTargSpectators(),
+                                                      0);
+
  ((AliGenDPMjetEventHeader*) header)->SetProcessType(fDPMjet->GetProcessCode());
 // Bookkeeping for kinematic bias
     ((AliGenDPMjetEventHeader*) header)->SetTrials(fTrials);