/* $Id$ */
+// This class is extracted from the AliRun class
+// and contains all the MC-related functionality
+// The number of dependencies has to be reduced...
+// Author: F.Carminati
+// Federico.Carminati@cern.ch
+
#include <TBrowser.h>
#include <TStopwatch.h>
#include <TSystem.h>
fTrackReferences(0)
{
+ //default constructor
}
//_______________________________________________________________________
fHitLists(new TList()),
fTrackReferences(new TClonesArray("AliTrackReference", 100))
{
-
+ //constructor
// Set transport parameters
SetTransPar();
//_______________________________________________________________________
AliMC::~AliMC()
{
+ //destructor
delete fGenerator;
delete fImedia;
delete fMCQA;
//_______________________________________________________________________
void AliMC::Copy(AliMC &) const
{
+ //dummy Copy function
Fatal("Copy","Not implemented!\n");
}
//_______________________________________________________________________
void AliMC::PreTrack()
{
+ // Actions before the track's transport
TObjArray &dets = *gAlice->Modules();
AliModule *module;
//_______________________________________________________________________
void AliMC::PostTrack()
{
+ // Posts tracks for each module
TObjArray &dets = *gAlice->Modules();
AliModule *module;
//_______________________________________________________________________
void AliMC::Field(const Double_t* x, Double_t* b) const
{
+ // Calculates field "b" at point "x"
gAlice->Field(x,b);
}
//_______________________________________________________________________
void AliMC::Init()
{
+ // MC initialization
//=================Create Materials and geometry
gMC->Init();
//_______________________________________________________________________
TParticle* AliMC::Particle(Int_t i) const
{
+ // Returns the i-th particle from the stack taking into account
+ // the remaping done by PurifyKine
AliRunLoader * runloader = gAlice->GetRunLoader();
if (runloader)
if (runloader->Stack())