// Author: F.Carminati
// Federico.Carminati@cern.ch
+#include <RVersion.h>
#include <TBrowser.h>
#include <TStopwatch.h>
#include <TSystem.h>
}
//_______________________________________________________________________
-void AliMC::Copy(AliMC &) const
+void AliMC::Copy(TObject &) const
{
//dummy Copy function
Fatal("Copy","Not implemented!\n");
}
//_______________________________________________________________________
-void AliMC::GeneratePrimaries()
+void AliMC::GeneratePrimaries()
{
//
// Generate primary particles and fill them in the stack.
fGenerator->FinishRun();
//Output energy summary tables
- if (GetDebug()) Info("FinishRun"," EnergySummary()");
- EnergySummary();
+ if (GetDebug()) {
+ Info("FinishRun"," EnergySummary()");
+ EnergySummary();
+ }
}
//
// write tracke reference for track which is dissapearing - MI
if (gMC->IsTrackDisappeared()) {
- if (gMC->Etot()>0.05) AddTrackReference(GetCurrentTrackNumber());
+ if (gMC->Etot()>0.05) AddTrackReference(GetCurrentTrackNumber());
}
//Call the appropriate stepping routine;
// static Int_t count=0;
// const Int_t times=10;
// This primary is finished, purify stack
+#if ROOT_VERSION_CODE > 262152
+ if (!(gMC->SecondariesAreOrdered()))
+ runloader->Stack()->ReorderKine();
+#endif
runloader->Stack()->PurifyKine();
TIter next(gAlice->Modules());
//=================Create Materials and geometry
gMC->Init();
- gMC->DefineParticles(); //Create standard MC particles
-
//Read the cuts for all materials
ReadTransPar();
//Build the special IMEDIA table
//_______________________________________________________________________
void AliMC::PushTrack(Int_t done, Int_t parent, Int_t pdg, Float_t *pmom,
Float_t *vpos, Float_t *polar, Float_t tof,
- TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is)
+ TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is) const
{
// Delegate to stack
//
Double_t px, Double_t py, Double_t pz, Double_t e,
Double_t vx, Double_t vy, Double_t vz, Double_t tof,
Double_t polx, Double_t poly, Double_t polz,
- TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is)
+ TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is) const
{
// Delegate to stack
//
}
//_______________________________________________________________________
-void AliMC::SetHighWaterMark(const Int_t nt)
+void AliMC::SetHighWaterMark(Int_t nt) const
{
//
// Set high water mark for last track in event
}
//_______________________________________________________________________
-void AliMC::KeepTrack(const Int_t track)
+void AliMC::KeepTrack(Int_t track) const
{
//
// Delegate to stack
}
//_______________________________________________________________________
-void AliMC::FlagTrack(Int_t track)
+void AliMC::FlagTrack(Int_t track) const
{
// Delegate to stack
//
}
//_______________________________________________________________________
-void AliMC::SetCurrentTrack(Int_t track)
+void AliMC::SetCurrentTrack(Int_t track) const
{
//
// Set current track number