AstroHit Class Reference

#include <AstroHit.hh>

Inheritance diagram for AstroHit:

Inheritance graph
[legend]
Collaboration diagram for AstroHit:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 13 of file AstroHit.hh.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 12 of file AstroHit.cc.

00013 {;}


Member Function Documentation

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;}


Member Data Documentation

const G4int AstroHit::m_slice [private]

Definition at line 30 of file AstroHit.hh.

Referenced by GetSlice().

G4double AstroHit::m_e [private]

Definition at line 31 of file AstroHit.hh.

Referenced by addE(), AstroHit(), and GetEnergy().


The documentation for this class was generated from the following files:

Generated on Fri Nov 21 10:21:03 2008 for jour4b2 by  doxygen 1.5.7.1