]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - AliGeant4/AliTrackInformation.cxx
Initial version
[u/mrichter/AliRoot.git] / AliGeant4 / AliTrackInformation.cxx
diff --git a/AliGeant4/AliTrackInformation.cxx b/AliGeant4/AliTrackInformation.cxx
new file mode 100644 (file)
index 0000000..3085db2
--- /dev/null
@@ -0,0 +1,48 @@
+// $Id$
+// Category: event
+//
+// See the class description in the header file.
+
+#include "AliTrackInformation.h"
+
+G4Allocator<AliTrackInformation> trackInfoAllocator;
+
+AliTrackInformation::AliTrackInformation()
+  : G4VUserTrackInformation(),
+    fTrackParticleID(-1),
+    fParentParticleID(-1) 
+{
+//
+}
+
+AliTrackInformation::AliTrackInformation(G4int trackParticleID) 
+  : G4VUserTrackInformation(),
+    fTrackParticleID(trackParticleID),
+    fParentParticleID(-1)
+{
+//
+}    
+
+AliTrackInformation::AliTrackInformation(G4int trackParticleID, 
+                                         G4int parentParticleID)
+  : G4VUserTrackInformation(),
+    fTrackParticleID(trackParticleID),
+    fParentParticleID(parentParticleID)
+{
+//
+}    
+
+AliTrackInformation::~AliTrackInformation(){
+//
+}    
+
+// public methods
+
+void AliTrackInformation::Print() const
+{
+// Prints track information.
+// ---
+
+  G4cout << "TrackParticleID: " << fTrackParticleID << "   "
+         << "ParentParticleID: " << fParentParticleID << G4endl;
+}