#include <AstroHit.hh>
Public Member Functions | |
AstroHit (G4int slice) | |
~AstroHit () | |
void * | operator new (size_t) |
void | operator delete (void *aHit) |
void | addE (double e) |
G4double | GetEnergy () const |
G4int | GetSlice () const |
Private Attributes | |
const G4int | m_slice |
G4double | m_e |
Definition at line 13 of file AstroHit.hh.
AstroHit::AstroHit | ( | G4int | slice | ) |
Definition at line 6 of file AstroHit.cc.
00007 : m_slice(slice) // <<-- note BTW this is the only way to initialize a "const" member 00008 { 00009 m_e = 0.0; 00010 }
AstroHit::~AstroHit | ( | ) |
void * AstroHit::operator new | ( | size_t | ) | [inline] |
Definition at line 38 of file AstroHit.hh.
00039 { 00040 void *aHit; 00041 aHit = (void *) AstroHitAllocator.MallocSingle(); 00042 return aHit; 00043 }
void AstroHit::operator delete | ( | void * | aHit | ) | [inline] |
Definition at line 44 of file AstroHit.hh.
00045 { 00046 AstroHitAllocator.FreeSingle((AstroHit*) aHit); 00047 }
void AstroHit::addE | ( | double | e | ) | [inline] |
Definition at line 25 of file AstroHit.hh.
Referenced by SensitiveDetector::ProcessHits().
00025 {m_e += e;}
G4double AstroHit::GetEnergy | ( | ) | const [inline] |
Definition at line 26 of file AstroHit.hh.
Referenced by EventAction::EndOfEventAction().
00026 {return m_e;}
G4int AstroHit::GetSlice | ( | ) | const [inline] |
Definition at line 27 of file AstroHit.hh.
Referenced by EventAction::EndOfEventAction().
00027 {return m_slice;}
const G4int AstroHit::m_slice [private] |
G4double AstroHit::m_e [private] |