Geant4  10.02.p03
G4HumanPhantomHit Class Reference

#include <G4HumanPhantomHit.hh>

Inheritance diagram for G4HumanPhantomHit:
Collaboration diagram for G4HumanPhantomHit:

Public Member Functions

 G4HumanPhantomHit ()
 
 ~G4HumanPhantomHit ()
 
 G4HumanPhantomHit (const G4HumanPhantomHit &)
 
const G4HumanPhantomHitoperator= (const G4HumanPhantomHit &)
 
G4int operator== (const G4HumanPhantomHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetBodyPartID (G4String bodyPartName)
 
void SetEdep (G4double de)
 
G4String GetBodyPartID ()
 
G4double GetEdep ()
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map< G4String, G4AttDef > * GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Private Attributes

G4String bodyPartID
 
G4double edep
 

Detailed Description

Definition at line 39 of file G4HumanPhantomHit.hh.

Constructor & Destructor Documentation

◆ G4HumanPhantomHit() [1/2]

G4HumanPhantomHit::G4HumanPhantomHit ( )

Definition at line 41 of file G4HumanPhantomHit.cc.

41 {}

◆ ~G4HumanPhantomHit()

G4HumanPhantomHit::~G4HumanPhantomHit ( )

Definition at line 43 of file G4HumanPhantomHit.cc.

43 {}

◆ G4HumanPhantomHit() [2/2]

G4HumanPhantomHit::G4HumanPhantomHit ( const G4HumanPhantomHit right)

Definition at line 45 of file G4HumanPhantomHit.cc.

46  : G4VHit()
47 {
48  bodyPartID = right.bodyPartID;
49  edep = right.edep;
50 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

◆ Draw()

void G4HumanPhantomHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 64 of file G4HumanPhantomHit.cc.

65 {
66 }

◆ GetBodyPartID()

G4String G4HumanPhantomHit::GetBodyPartID ( )
inline

Definition at line 59 of file G4HumanPhantomHit.hh.

59 { return bodyPartID; };

◆ GetEdep()

G4double G4HumanPhantomHit::GetEdep ( )
inline

Definition at line 60 of file G4HumanPhantomHit.hh.

60 { return edep; };

◆ operator delete()

void G4HumanPhantomHit::operator delete ( void *  aHit)
inline

Definition at line 78 of file G4HumanPhantomHit.hh.

79 {
80  G4HumanPhantomHitAllocator -> FreeSingle((G4HumanPhantomHit*) aHit);
81 }
G4ThreadLocal G4Allocator< G4HumanPhantomHit > * G4HumanPhantomHitAllocator

◆ operator new()

void * G4HumanPhantomHit::operator new ( size_t  )
inline

Definition at line 71 of file G4HumanPhantomHit.hh.

72 {
75  return (void *) G4HumanPhantomHitAllocator->MallocSingle();
76 }
G4ThreadLocal G4Allocator< G4HumanPhantomHit > * G4HumanPhantomHitAllocator

◆ operator=()

const G4HumanPhantomHit & G4HumanPhantomHit::operator= ( const G4HumanPhantomHit right)

Definition at line 52 of file G4HumanPhantomHit.cc.

53 {
54  bodyPartID = right.bodyPartID;
55  edep = right.edep;
56  return *this;
57 }

◆ operator==()

G4int G4HumanPhantomHit::operator== ( const G4HumanPhantomHit right) const

Definition at line 59 of file G4HumanPhantomHit.cc.

60 {
61  return (this==&right) ? 1 : 0;
62 }

◆ Print()

void G4HumanPhantomHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 68 of file G4HumanPhantomHit.cc.

69 {
70  G4cout << "Energy deposit: " << G4BestUnit(edep,"Energy")
71  << "BodyPartID: " << bodyPartID << G4endl;
72 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

◆ SetBodyPartID()

void G4HumanPhantomHit::SetBodyPartID ( G4String  bodyPartName)
inline

Definition at line 56 of file G4HumanPhantomHit.hh.

56 { bodyPartID = bodyPartName;};
Here is the caller graph for this function:

◆ SetEdep()

void G4HumanPhantomHit::SetEdep ( G4double  de)
inline

Definition at line 57 of file G4HumanPhantomHit.hh.

57 { edep = de; };
Here is the caller graph for this function:

Member Data Documentation

◆ bodyPartID

G4String G4HumanPhantomHit::bodyPartID
private

Definition at line 60 of file G4HumanPhantomHit.hh.

◆ edep

G4double G4HumanPhantomHit::edep
private

Definition at line 64 of file G4HumanPhantomHit.hh.


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