Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 
voidoperator 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
 

Detailed Description

Definition at line 39 of file G4HumanPhantomHit.hh.

Constructor & Destructor Documentation

G4HumanPhantomHit::G4HumanPhantomHit ( )

Definition at line 41 of file G4HumanPhantomHit.cc.

41 {}
G4HumanPhantomHit::~G4HumanPhantomHit ( )

Definition at line 43 of file G4HumanPhantomHit.cc.

43 {}
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

void G4HumanPhantomHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 64 of file G4HumanPhantomHit.cc.

65 {
66 }
G4String G4HumanPhantomHit::GetBodyPartID ( )
inline

Definition at line 59 of file G4HumanPhantomHit.hh.

59 { return bodyPartID; };
G4double G4HumanPhantomHit::GetEdep ( )
inline

Definition at line 60 of file G4HumanPhantomHit.hh.

60 { return edep; };
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
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
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 }
G4int G4HumanPhantomHit::operator== ( const G4HumanPhantomHit right) const

Definition at line 59 of file G4HumanPhantomHit.cc.

60 {
61  return (this==&right) ? 1 : 0;
62 }
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
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:

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:


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