This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / STEER / AliHit.cxx
CommitLineData
fe4da5cc 1#include "AliHit.h"
2#include "GParticle.h"
3#include "AliRun.h"
4
5ClassImp(AliHit)
6
7AliHit::AliHit()
8{
9 fTrack=0;
10}
11
12AliHit::AliHit(Int_t shunt, Int_t track)
13{
14 TClonesArray &particles = *(gAlice->Particles());
15 if(shunt) {
16 int primary = gAlice->GetPrimary(track);
17 ((GParticle *)particles[primary])->SetBit(Keep_Bit);
18 fTrack=primary;
19 } else {
20 fTrack=track;
21 gAlice->FlagTrack(fTrack);
22 }
23}
24
25