Introducing Copyright include file
[u/mrichter/AliRoot.git] / STEER / AliHit.cxx
CommitLineData
fe4da5cc 1#include "AliHit.h"
1578254f 2#include "TParticle.h"
fe4da5cc 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);
1578254f 17 ((TParticle *)particles[primary])->SetBit(Keep_Bit);
fe4da5cc 18 fTrack=primary;
19 } else {
20 fTrack=track;
21 gAlice->FlagTrack(fTrack);
22 }
23}
24
25