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