// Generator using HIJING as an external generator
// The main HIJING options are accessable for the user through this interface.
// Uses the THijing implementation of TGenerator.
+// Author:
+// Andreas Morsch (andreas.morsch@cern.ch)
//
-// andreas.morsch@cern.ch
-#include <TArrayI.h>
#include <TGraph.h>
#include <THijing.h>
#include <TLorentzVector.h>
return res;
}
-Bool_t AliGenHijing::Stable(TParticle* particle)
+Bool_t AliGenHijing::Stable(TParticle* particle) const
{
// Return true for a stable particle
//
((AliGenHijingEventHeader*) header)->SetTrials(fTrials);
// Event Vertex
header->SetPrimaryVertex(fVertex);
- gAlice->SetGenEventHeader(header);
+ if (gAlice) gAlice->SetGenEventHeader(header);
fCollisionGeometry = (AliGenHijingEventHeader*) header;
}
}
-void AliGenHijing::Copy(AliGenHijing &) const
+void AliGenHijing::Copy(TObject &) const
{
Fatal("Copy","Not implemented!\n");
}