Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
HadrontherapyDetectorHit Class Reference

#include <HadrontherapyDetectorHit.hh>

Inheritance diagram for HadrontherapyDetectorHit:
G4VHit

Public Member Functions

 HadrontherapyDetectorHit ()
 
 ~HadrontherapyDetectorHit ()
 
 HadrontherapyDetectorHit (const HadrontherapyDetectorHit &right)
 
const HadrontherapyDetectorHitoperator= (const HadrontherapyDetectorHit &right)
 
int operator== (const HadrontherapyDetectorHit &right) const
 
voidoperator new (size_t)
 
void operator delete (void *aHit)
 
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 42 of file HadrontherapyDetectorHit.hh.

Constructor & Destructor Documentation

HadrontherapyDetectorHit::HadrontherapyDetectorHit ( )

Definition at line 39 of file HadrontherapyDetectorHit.cc.

40 {
41  energyDeposit = 0;
42 }
HadrontherapyDetectorHit::~HadrontherapyDetectorHit ( )

Definition at line 44 of file HadrontherapyDetectorHit.cc.

45 {
46 }
HadrontherapyDetectorHit::HadrontherapyDetectorHit ( const HadrontherapyDetectorHit right)

Definition at line 48 of file HadrontherapyDetectorHit.cc.

49  : G4VHit()
50 {
51  xHitID = right.xHitID;
52  zHitID = right.zHitID;
53  yHitID = right.yHitID;
54  energyDeposit = right.energyDeposit;
55 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

G4double HadrontherapyDetectorHit::GetEdep ( )
inline

Definition at line 76 of file HadrontherapyDetectorHit.hh.

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

Definition at line 67 of file HadrontherapyDetectorHit.hh.

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

Definition at line 73 of file HadrontherapyDetectorHit.hh.

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

Definition at line 70 of file HadrontherapyDetectorHit.hh.

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

Definition at line 101 of file HadrontherapyDetectorHit.hh.

References G4Allocator< Type >::FreeSingle().

102 {
104 }
G4Allocator< HadrontherapyDetectorHit > HadrontherapyDetectorHitAllocator
void * HadrontherapyDetectorHit::operator new ( size_t  )
inline

Definition at line 94 of file HadrontherapyDetectorHit.hh.

References G4Allocator< Type >::MallocSingle().

95 {
96  void *aHit;
97  aHit = (void *) HadrontherapyDetectorHitAllocator.MallocSingle();
98  return aHit;
99 }
G4Allocator< HadrontherapyDetectorHit > HadrontherapyDetectorHitAllocator
const HadrontherapyDetectorHit & HadrontherapyDetectorHit::operator= ( const HadrontherapyDetectorHit right)

Definition at line 57 of file HadrontherapyDetectorHit.cc.

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

Definition at line 66 of file HadrontherapyDetectorHit.cc.

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

Definition at line 82 of file HadrontherapyDetectorHit.hh.

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

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