Geant4  10.02.p03
SensitiveDetectorHit Class Reference

#include <SensitiveDetectorHit.hh>

Inheritance diagram for SensitiveDetectorHit:
Collaboration diagram for SensitiveDetectorHit:

Public Member Functions

 SensitiveDetectorHit ()
 
 SensitiveDetectorHit (const SensitiveDetectorHit &)
 
virtual ~SensitiveDetectorHit ()
 
const SensitiveDetectorHitoperator= (const SensitiveDetectorHit &)
 
G4int operator== (const SensitiveDetectorHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetEdep (G4double de)
 
G4double GetEdep () const
 
- 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

G4double fEdep
 

Detailed Description

Definition at line 40 of file SensitiveDetectorHit.hh.

Constructor & Destructor Documentation

◆ SensitiveDetectorHit() [1/2]

SensitiveDetectorHit::SensitiveDetectorHit ( )

Definition at line 43 of file SensitiveDetectorHit.cc.

44  : G4VHit(),
45  fEdep(0.)
46 {}
G4VHit()
Definition: G4VHit.cc:34

◆ SensitiveDetectorHit() [2/2]

SensitiveDetectorHit::SensitiveDetectorHit ( const SensitiveDetectorHit right)

Definition at line 50 of file SensitiveDetectorHit.cc.

51  : G4VHit()
52 {
53  fEdep = right.fEdep;
54 }
G4VHit()
Definition: G4VHit.cc:34

◆ ~SensitiveDetectorHit()

SensitiveDetectorHit::~SensitiveDetectorHit ( )
virtual

Definition at line 48 of file SensitiveDetectorHit.cc.

48 {}

Member Function Documentation

◆ Draw()

void SensitiveDetectorHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 68 of file SensitiveDetectorHit.cc.

69 {
70 
71 }

◆ GetEdep()

G4double SensitiveDetectorHit::GetEdep ( ) const
inline

Definition at line 61 of file SensitiveDetectorHit.hh.

61 { return fEdep; };

◆ operator delete()

void SensitiveDetectorHit::operator delete ( void *  hit)
inline

Definition at line 79 of file SensitiveDetectorHit.hh.

80 {
82 }
G4ThreadLocal G4Allocator< SensitiveDetectorHit > * SensitiveDetectorHitAllocator

◆ operator new()

void * SensitiveDetectorHit::operator new ( size_t  )
inline

Definition at line 72 of file SensitiveDetectorHit.hh.

73 {
76  return (void *) SensitiveDetectorHitAllocator->MallocSingle();
77 }
G4ThreadLocal G4Allocator< SensitiveDetectorHit > * SensitiveDetectorHitAllocator

◆ operator=()

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

Definition at line 56 of file SensitiveDetectorHit.cc.

57 {
58  fEdep = right.fEdep;
59 
60  return *this;
61 }

◆ operator==()

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

Definition at line 63 of file SensitiveDetectorHit.cc.

64 {
65  return ( this == &right ) ? 1 : 0;
66 }

◆ Print()

void SensitiveDetectorHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 73 of file SensitiveDetectorHit.cc.

74 {
75  G4cout
76  << "HIT: Edep: "
77  << std::setw(7) << G4BestUnit(fEdep,"Energy")
78  << G4endl;
79 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

◆ SetEdep()

void SensitiveDetectorHit::SetEdep ( G4double  de)
inline

Definition at line 59 of file SensitiveDetectorHit.hh.

59 { fEdep = de; };

Member Data Documentation

◆ fEdep

G4double SensitiveDetectorHit::fEdep
private

Definition at line 61 of file SensitiveDetectorHit.hh.


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