Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadrontherapyDetectorHit Class Reference

#include <HadrontherapyDetectorHit.hh>

Inheritance diagram for HadrontherapyDetectorHit:
Collaboration diagram for HadrontherapyDetectorHit:

Public Member Functions

 HadrontherapyDetectorHit ()
 
 HadrontherapyDetectorHit (const HadrontherapyDetectorHit &)
 
virtual ~HadrontherapyDetectorHit ()
 
const HadrontherapyDetectorHitoperator= (const HadrontherapyDetectorHit &)
 
G4int operator== (const HadrontherapyDetectorHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
G4int GetXID ()
 
G4int GetZID ()
 
G4int GetYID ()
 
G4double GetEdep ()
 
void SetEdepAndPosition (G4int xx, G4int yy, G4int zz, G4double eDep)
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual void Draw ()
 
virtual void Print ()
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Detailed Description

Definition at line 38 of file HadrontherapyDetectorHit.hh.

Constructor & Destructor Documentation

HadrontherapyDetectorHit::HadrontherapyDetectorHit ( )

Definition at line 36 of file HadrontherapyDetectorHit.cc.

37 : G4VHit()
38 {
39  energyDeposit = 0;
40 }
G4VHit()
Definition: G4VHit.cc:34
HadrontherapyDetectorHit::HadrontherapyDetectorHit ( const HadrontherapyDetectorHit right)

Definition at line 46 of file HadrontherapyDetectorHit.cc.

47  : G4VHit()
48 {
49  xHitID = right.xHitID;
50  zHitID = right.zHitID;
51  yHitID = right.yHitID;
52  energyDeposit = right.energyDeposit;
53 }
G4VHit()
Definition: G4VHit.cc:34
HadrontherapyDetectorHit::~HadrontherapyDetectorHit ( )
virtual

Definition at line 42 of file HadrontherapyDetectorHit.cc.

43 {
44 }

Member Function Documentation

G4double HadrontherapyDetectorHit::GetEdep ( )
inline

Definition at line 74 of file HadrontherapyDetectorHit.hh.

75  {return energyDeposit;}
G4int HadrontherapyDetectorHit::GetXID ( )
inline

Definition at line 65 of file HadrontherapyDetectorHit.hh.

66  {return xHitID;}
G4int HadrontherapyDetectorHit::GetYID ( )
inline

Definition at line 71 of file HadrontherapyDetectorHit.hh.

72  {return yHitID;}
G4int HadrontherapyDetectorHit::GetZID ( )
inline

Definition at line 68 of file HadrontherapyDetectorHit.hh.

69  {return zHitID;}
void HadrontherapyDetectorHit::operator delete ( void aHit)
inline

Definition at line 107 of file HadrontherapyDetectorHit.hh.

void * HadrontherapyDetectorHit::operator new ( size_t  )
inline

Definition at line 94 of file HadrontherapyDetectorHit.hh.

95 {
96 
97 
100  void *aHit;
101 
102  aHit = (void *) HadrontherapyDetectorHitAllocator->MallocSingle();
103  return aHit;
104 
105 }
G4ThreadLocal G4Allocator< HadrontherapyDetectorHit > * HadrontherapyDetectorHitAllocator
const HadrontherapyDetectorHit & HadrontherapyDetectorHit::operator= ( const HadrontherapyDetectorHit right)

Definition at line 55 of file HadrontherapyDetectorHit.cc.

56 {
57  xHitID = right.xHitID;
58  zHitID = right.zHitID;
59  yHitID = right.yHitID;
60  energyDeposit = right.energyDeposit;
61  return *this;
62 }
G4int HadrontherapyDetectorHit::operator== ( const HadrontherapyDetectorHit right) const

Definition at line 64 of file HadrontherapyDetectorHit.cc.

65 {
66  return((xHitID==right.xHitID)&&(zHitID==right.zHitID)&&(yHitID==right.yHitID));
67 }
void HadrontherapyDetectorHit::SetEdepAndPosition ( G4int  xx,
G4int  yy,
G4int  zz,
G4double  eDep 
)
inline

Definition at line 80 of file HadrontherapyDetectorHit.hh.

81  {
82  xHitID = xx;
83  yHitID = yy;
84  zHitID = zz;
85  energyDeposit = eDep;
86  }

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