Protection for use independent from AliRun.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Feb 2004 10:29:51 +0000 (10:29 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Feb 2004 10:29:51 +0000 (10:29 +0000)
THijing/AliGenHijing.cxx

index b1167c5..1024241 100644 (file)
@@ -519,7 +519,7 @@ void AliGenHijing::MakeHeader()
     ((AliGenHijingEventHeader*) header)->SetTrials(fTrials);
 // Event Vertex
     header->SetPrimaryVertex(fVertex);
-    gAlice->SetGenEventHeader(header);   
+    if (gAlice) gAlice->SetGenEventHeader(header);   
     fCollisionGeometry = (AliGenHijingEventHeader*)  header;
 }