Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
RadioBio::Hit Class Reference

Detector hit class. More...

#include <Doxymodules_medical.h>

Inheritance diagram for RadioBio::Hit:
G4VHit

Public Member Functions

 Hit ()
 
 Hit (const Hit &)
 
 ~Hit () override=default
 
const Hitoperator= (const Hit &)
 
G4int operator== (const Hit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw () override
 
void Print () override
 
void SetTrackID (G4int track)
 
void SetPartType (const G4ParticleDefinition *part)
 
void SetEkinMean (double EkinMean)
 
void SetDeltaE (double DeltaE)
 
void SetEinit (G4double e)
 
void SetTrackLength (G4double x)
 
void SetElectronEnergy (G4double elEnergy)
 
void SetPhysicalVolume (G4VPhysicalVolume *PV)
 
void SetVoxelIndexes (const G4TouchableHandle &TH)
 
G4int GetTrackID () const
 
const G4ParticleDefinitionGetPartType () const
 
G4double GetEkinMean ()
 
G4double GetDeltaE ()
 
G4double GetEinit () const
 
G4double GetTrackLength () const
 
G4double GetElectronEnergy () const
 
G4VPhysicalVolumeGetPhysicalVolume () const
 
G4int GetXindex ()
 
G4int GetYindex ()
 
G4int GetZindex ()
 

Private Attributes

G4int fTrackID = -1
 
const G4ParticleDefinitionfParticleType = nullptr
 
G4double fEkinMean = 0.
 
G4double fDeltaE = 0.
 
G4double fEinit = 0.
 
G4double fTrackLength = 0.
 
G4double fElectronEnergy = 0.
 
G4VPhysicalVolumefPhysicalVolume = nullptr
 
G4int fxIndex = -1
 
G4int fyIndex = -1
 
G4int fzIndex = -1
 

Detailed Description

Detector hit class.

It defines data members to store the trackID, particle type, mean kinetic energy, energy deposit, initial energy, track length, electronic energy, physical volume and voxel index

Definition at line 132 of file Doxymodules_medical.h.

Constructor & Destructor Documentation

◆ Hit() [1/2]

RadioBio::Hit::Hit ( )

Definition at line 50 of file Hit.cc.

50: G4VHit() {}

◆ Hit() [2/2]

RadioBio::Hit::Hit ( const Hit right)

Definition at line 54 of file Hit.cc.

54 : G4VHit()
55{
56 fTrackID = right.fTrackID;
57 fParticleType = right.fParticleType;
58 fEkinMean = right.fEkinMean;
59 fDeltaE = right.fDeltaE;
60 fEinit = right.fEinit;
61 fTrackLength = right.fTrackLength;
62 fPhysicalVolume = right.fPhysicalVolume;
63 fxIndex = right.fxIndex;
64 fyIndex = right.fyIndex;
65 fzIndex = right.fzIndex;
66}
G4int fzIndex
Definition Hit.hh:106
G4VPhysicalVolume * fPhysicalVolume
Definition Hit.hh:103
G4int fyIndex
Definition Hit.hh:105
G4double fEinit
Definition Hit.hh:100
const G4ParticleDefinition * fParticleType
Definition Hit.hh:97
G4double fDeltaE
Definition Hit.hh:99
G4double fEkinMean
Definition Hit.hh:98
G4int fxIndex
Definition Hit.hh:104
G4int fTrackID
Definition Hit.hh:96
G4double fTrackLength
Definition Hit.hh:101

◆ ~Hit()

RadioBio::Hit::~Hit ( )
overridedefault

Member Function Documentation

◆ operator=()

const Hit & RadioBio::Hit::operator= ( const Hit right)

Definition at line 70 of file Hit.cc.

71{
72 fTrackID = right.fTrackID;
73 fParticleType = right.fParticleType;
74 fEkinMean = right.fEkinMean;
75 fDeltaE = right.fDeltaE;
76 fEinit = right.fEinit;
77 fTrackLength = right.fTrackLength;
78 fPhysicalVolume = right.fPhysicalVolume;
79 fxIndex = right.fxIndex;
80 fyIndex = right.fyIndex;
81 fzIndex = right.fzIndex;
82
83 return *this;
84}

◆ operator==()

G4int RadioBio::Hit::operator== ( const Hit right) const

Definition at line 88 of file Hit.cc.

89{
90 return (this == &right) ? 1 : 0;
91}

◆ operator new()

void * RadioBio::Hit::operator new ( size_t  )
inline

Definition at line 115 of file Hit.hh.

116{
118 return (void*)RadioBioHitAllocator->MallocSingle();
119}
G4ThreadLocal G4Allocator< Hit > * RadioBioHitAllocator
Definition Hit.cc:48

◆ operator delete()

void RadioBio::Hit::operator delete ( void *  hit)
inline

Definition at line 121 of file Hit.hh.

122{
123 RadioBioHitAllocator->FreeSingle((Hit*)hit);
124}

◆ Draw()

void RadioBio::Hit::Draw ( )
override

Definition at line 95 of file Hit.cc.

96{
97 // Not implemented
98}

◆ Print()

void RadioBio::Hit::Print ( )
override

Definition at line 102 of file Hit.cc.

103{
104 // Not implemented
105}

◆ SetTrackID()

void RadioBio::Hit::SetTrackID ( G4int  track)
inline

Definition at line 71 of file Hit.hh.

71{ fTrackID = track; }

◆ SetPartType()

void RadioBio::Hit::SetPartType ( const G4ParticleDefinition part)
inline

Definition at line 72 of file Hit.hh.

72{ fParticleType = part; }

◆ SetEkinMean()

void RadioBio::Hit::SetEkinMean ( double  EkinMean)
inline

Definition at line 73 of file Hit.hh.

73{ fEkinMean = EkinMean; }

◆ SetDeltaE()

void RadioBio::Hit::SetDeltaE ( double  DeltaE)
inline

Definition at line 74 of file Hit.hh.

74{ fDeltaE = DeltaE; }

◆ SetEinit()

void RadioBio::Hit::SetEinit ( G4double  e)
inline

Definition at line 75 of file Hit.hh.

75{ fEinit = e; }

◆ SetTrackLength()

void RadioBio::Hit::SetTrackLength ( G4double  x)
inline

Definition at line 76 of file Hit.hh.

76{ fTrackLength = x; }

◆ SetElectronEnergy()

void RadioBio::Hit::SetElectronEnergy ( G4double  elEnergy)
inline

Definition at line 77 of file Hit.hh.

77{ fElectronEnergy = elEnergy; }
G4double fElectronEnergy
Definition Hit.hh:102

◆ SetPhysicalVolume()

void RadioBio::Hit::SetPhysicalVolume ( G4VPhysicalVolume PV)
inline

Definition at line 78 of file Hit.hh.

78{ fPhysicalVolume = PV; }

◆ SetVoxelIndexes()

void RadioBio::Hit::SetVoxelIndexes ( const G4TouchableHandle &  TH)

Definition at line 109 of file Hit.cc.

110{
111 // Calculation of voxel number
112 fxIndex = TH->GetReplicaNumber(2);
113 fyIndex = TH->GetReplicaNumber(1);
114 fzIndex = TH->GetReplicaNumber();
115}

◆ GetTrackID()

G4int RadioBio::Hit::GetTrackID ( ) const
inline

Definition at line 82 of file Hit.hh.

82{ return fTrackID; }

◆ GetPartType()

const G4ParticleDefinition * RadioBio::Hit::GetPartType ( ) const
inline

Definition at line 83 of file Hit.hh.

83{ return fParticleType; }

◆ GetEkinMean()

G4double RadioBio::Hit::GetEkinMean ( )
inline

Definition at line 84 of file Hit.hh.

84{ return fEkinMean; }

◆ GetDeltaE()

G4double RadioBio::Hit::GetDeltaE ( )
inline

Definition at line 85 of file Hit.hh.

85{ return fDeltaE; }

◆ GetEinit()

G4double RadioBio::Hit::GetEinit ( ) const
inline

Definition at line 86 of file Hit.hh.

86{ return fEinit; }

◆ GetTrackLength()

G4double RadioBio::Hit::GetTrackLength ( ) const
inline

Definition at line 87 of file Hit.hh.

87{ return fTrackLength; }

◆ GetElectronEnergy()

G4double RadioBio::Hit::GetElectronEnergy ( ) const
inline

Definition at line 88 of file Hit.hh.

88{ return fElectronEnergy; }

◆ GetPhysicalVolume()

G4VPhysicalVolume * RadioBio::Hit::GetPhysicalVolume ( ) const
inline

Definition at line 89 of file Hit.hh.

89{ return fPhysicalVolume; }

◆ GetXindex()

G4int RadioBio::Hit::GetXindex ( )
inline

Definition at line 90 of file Hit.hh.

90{ return fxIndex; }

◆ GetYindex()

G4int RadioBio::Hit::GetYindex ( )
inline

Definition at line 91 of file Hit.hh.

91{ return fyIndex; }

◆ GetZindex()

G4int RadioBio::Hit::GetZindex ( )
inline

Definition at line 92 of file Hit.hh.

92{ return fzIndex; }

Member Data Documentation

◆ fTrackID

G4int RadioBio::Hit::fTrackID = -1
private

Definition at line 96 of file Hit.hh.

◆ fParticleType

const G4ParticleDefinition* RadioBio::Hit::fParticleType = nullptr
private

Definition at line 97 of file Hit.hh.

◆ fEkinMean

G4double RadioBio::Hit::fEkinMean = 0.
private

Definition at line 98 of file Hit.hh.

◆ fDeltaE

G4double RadioBio::Hit::fDeltaE = 0.
private

Definition at line 99 of file Hit.hh.

◆ fEinit

G4double RadioBio::Hit::fEinit = 0.
private

Definition at line 100 of file Hit.hh.

◆ fTrackLength

G4double RadioBio::Hit::fTrackLength = 0.
private

Definition at line 101 of file Hit.hh.

◆ fElectronEnergy

G4double RadioBio::Hit::fElectronEnergy = 0.
private

Definition at line 102 of file Hit.hh.

◆ fPhysicalVolume

G4VPhysicalVolume* RadioBio::Hit::fPhysicalVolume = nullptr
private

Definition at line 103 of file Hit.hh.

◆ fxIndex

G4int RadioBio::Hit::fxIndex = -1
private

Definition at line 104 of file Hit.hh.

◆ fyIndex

G4int RadioBio::Hit::fyIndex = -1
private

Definition at line 105 of file Hit.hh.

◆ fzIndex

G4int RadioBio::Hit::fzIndex = -1
private

Definition at line 106 of file Hit.hh.


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

Applications | User Support | Publications | Collaboration