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 b1167c5c0a1d29b380ee7a27654f57a9e6a5dcab..1024241329119b93da5d79f1539459b85bfab626 100644 (file)
@@ -519,7 +519,7 @@ void AliGenHijing::MakeHeader()
     ((AliGenHijingEventHeader*) header)->SetTrials(fTrials);
 // Event Vertex
     header->SetPrimaryVertex(fVertex);
     ((AliGenHijingEventHeader*) header)->SetTrials(fTrials);
 // Event Vertex
     header->SetPrimaryVertex(fVertex);
-    gAlice->SetGenEventHeader(header);   
+    if (gAlice) gAlice->SetGenEventHeader(header);   
     fCollisionGeometry = (AliGenHijingEventHeader*)  header;
 }
 
     fCollisionGeometry = (AliGenHijingEventHeader*)  header;
 }