lcdd/include/lcdd/hits
diff -u -r1.5 -r1.6
--- TrackerHit.hh 10 Jul 2013 20:49:06 -0000 1.5
+++ TrackerHit.hh 17 Sep 2013 00:30:02 -0000 1.6
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/include/lcdd/hits/TrackerHit.hh,v 1.5 2013/07/10 20:49:06 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/include/lcdd/hits/TrackerHit.hh,v 1.6 2013/09/17 00:30:02 jeremy Exp $
#ifndef LCDD_HITS_TRACKERHIT_HH
#define LCDD_HITS_TRACKERHIT_HH 1
@@ -14,8 +14,8 @@
#include "G4UnitsTable.hh"
/**
- * @brief A tracker hit class that implements the G4VHit interface.
- * @todo Move code to source file.
+ * @brief
+ * A tracker hit class that implements the G4VHit interface.
*/
class TrackerHit: public G4VHit
{
@@ -164,13 +164,17 @@
G4int _trkID;
G4int _PDG;
G4double _length;
-
- // TODO: make this a 32-bit, as only first 32-bits are used
- Id64bit _id64;
+ Id64bit _id;
};
-typedef G4THitsCollection<TrackerHit> (G4TrackerHitsCollection);
+/**
+ * Template instantiation of G4 hits collection class.
+ */
+typedef G4THitsCollection<TrackerHit> (TrackerHitsCollection);
+/**
+ * Memory allocator for objects of this class.
+ */
extern G4Allocator<TrackerHit> G4TrackerHitAllocator;
/**
@@ -179,7 +183,7 @@
inline void* TrackerHit::operator new(size_t)
{
void* aHit;
- aHit = (void *) G4TrackerHitAllocator.MallocSingle();
+ aHit = (void*) G4TrackerHitAllocator.MallocSingle();
return aHit;
}