/*
$Log$
+Revision 1.10 2000/02/23 16:25:22 fca
+AliVMC and AliGeant3 classes introduced
+ReadEuclid moved from AliRun to AliModule
+
Revision 1.9 1999/12/03 10:54:01 fca
Fix lego summary
fGener = new AliLegoGenerator(ntheta, themin, themax,
nphi, phimin, phimax, rmin, rmax, zmax);
- gAlice->SetGenerator(fGener);
+ gAlice->ResetGenerator(fGener);
Float_t etamin = -TMath::Log(TMath::Tan(TMath::Min((Double_t)themax*kDegrad/2,TMath::Pi()/2-1.e-10)));
Float_t etamax = -TMath::Log(TMath::Tan(TMath::Max((Double_t)themin*kDegrad/2, 1.e-10)));
/*
$Log$
+Revision 1.25 2000/02/23 16:25:22 fca
+AliVMC and AliGeant3 classes introduced
+ReadEuclid moved from AliRun to AliModule
+
Revision 1.24 2000/01/19 17:17:20 fca
Introducing a list of lists of hits -- more hits allowed for detector now
//____________________________________________________________________________
void AliRun::SetGenerator(AliGenerator *generator)
+{
+ //
+ // Load the event generator
+ //
+ if(!fGenerator) fGenerator = generator;
+}
+
+//____________________________________________________________________________
+void AliRun::ResetGenerator(AliGenerator *generator)
{
//
// Load the event generator
//
if(fGenerator)
- Warning("SetGenerator","Replacing generator %s with %s\n",
+ Warning("ResetGenerator","Replacing generator %s with %s\n",
fGenerator->GetName(),generator->GetName());
fGenerator = generator;
}
virtual Int_t DetFromMate(Int_t i) { return (*fImedia)[i];}
virtual AliGenerator* Generator() {return fGenerator;}
virtual void SetGenerator(AliGenerator *generator);
+ virtual void ResetGenerator(AliGenerator *generator);
virtual void EnergySummary();
virtual const TDatabasePDG* PDGDB() const {return fPDGDB;}