]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliTrackInformation.h
Default is no shunting.
[u/mrichter/AliRoot.git] / AliGeant4 / AliTrackInformation.h
1 // $Id$
2 // Category: event
3 //
4 // Class with additional track information.
5
6 #ifndef ALI_TRACK_INFORMATION_H
7 #define ALI_TRACK_INFORMATION_H
8
9 #include <G4VUserTrackInformation.hh>
10 #include <G4Allocator.hh>
11 #include <globals.hh>
12
13 class AliTrackInformation : public G4VUserTrackInformation
14 {
15   public:
16     AliTrackInformation();
17     AliTrackInformation(G4int trackParticleID);
18     AliTrackInformation(G4int trackParticleID, G4int parentParticleID);
19     virtual ~AliTrackInformation();
20    
21     // operators
22     // required by G4
23     inline void *operator new(size_t);
24       // Override "new" for "G4Allocator".
25     inline void operator delete(void *trackInformation);
26       // Override "delete" for "G4Allocator".
27       
28     // methods
29     virtual void Print() const;  
30
31     // set methods
32     void SetTrackParticleID(G4int trackParticleID);
33     void SetParentParticleID(G4int parentParticleID);
34
35     // get methods
36     G4int GetTrackParticleID() const;
37     G4int GetParentParticleID() const;
38
39   private:
40     // data members
41     G4int  fTrackParticleID; //the index of track particle in AliRoot stack
42     G4int  fParentParticleID;//the index of parent track in AliRoot stack
43 };
44
45 // inline methods
46 #include "AliTrackInformation.icc"
47
48 #endif //ALI_TRACK_INFORMATION_H