* provided "as is" without express or implied warranty. *
**************************************************************************/
-/* $Header$ */
+/* $Id$ */
+
+//-----------------------------------------------------------------------
+// Base Hit class for all detectors
+// Contains the coordinates of the hit (single energy deposition)
+// and the number of correspondent track
+// Author:
+//-----------------------------------------------------------------------
#include "TParticle.h"
#include "AliHit.h"
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliStack.h"
ClassImp(AliHit)
// Standard constructor
//
if(shunt == 1) {
- int primary = gAlice->GetPrimary(track);
- gAlice->Particle(primary)->SetBit(kKeepBit);
+ int primary = gAlice->GetMCApp()->GetPrimary(track);
+ gAlice->GetMCApp()->Particle(primary)->SetBit(kKeepBit);
fTrack=primary;
}
Int_t parent=track;
while (1) {
current=parent;
- part = gAlice->Particle(current);
+ part = gAlice->GetMCApp()->Particle(current);
parent=part->GetFirstMother();
if(parent<0 || part->TestBit(kKeepBit))
break;
}
fTrack=current;
- }
-
- else {
+ } else {
fTrack=track;
- gAlice->FlagTrack(fTrack);
+ gAlice->GetMCApp()->FlagTrack(fTrack);
}
}