Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DNAIndirectHit Class Reference

#include <G4DNADamage.hh>

+ Inheritance diagram for G4DNAIndirectHit:

Public Member Functions

 G4DNAIndirectHit (const G4String &baseName, const G4Molecule *molecule, const G4ThreeVector &position, G4double time)
 
 ~G4DNAIndirectHit () override
 
const G4MoleculeGetMolecule ()
 
const G4ThreeVectorGetPosition ()
 
const G4StringGetBaseName ()
 
double GetTime ()
 
void Print ()
 
- Public Member Functions inherited from G4VDNAHit
 G4VDNAHit ()=default
 
virtual ~G4VDNAHit ()=default
 

Protected Attributes

const G4MoleculefpMolecule
 
G4ThreeVector fPosition
 
G4double fTime
 
G4String fBaseName
 

Detailed Description

Definition at line 58 of file G4DNADamage.hh.

Constructor & Destructor Documentation

◆ G4DNAIndirectHit()

G4DNAIndirectHit::G4DNAIndirectHit ( const G4String & baseName,
const G4Molecule * molecule,
const G4ThreeVector & position,
G4double time )

Definition at line 32 of file G4DNADamage.cc.

35 :
36 fpMolecule(molecule)
37{
38 fBaseName = baseName;
40 fTime = time;
41}
const G4Molecule * fpMolecule
G4ThreeVector fPosition

◆ ~G4DNAIndirectHit()

G4DNAIndirectHit::~G4DNAIndirectHit ( )
override

Definition at line 43 of file G4DNADamage.cc.

44{
45 delete fpMolecule;
46 fpMolecule = nullptr;
47}

Member Function Documentation

◆ GetBaseName()

const G4String & G4DNAIndirectHit::GetBaseName ( )
inline

Definition at line 67 of file G4DNADamage.hh.

67{return fBaseName;}

◆ GetMolecule()

const G4Molecule * G4DNAIndirectHit::GetMolecule ( )
inline

Definition at line 65 of file G4DNADamage.hh.

65{return fpMolecule;}

◆ GetPosition()

const G4ThreeVector & G4DNAIndirectHit::GetPosition ( )
inline

Definition at line 66 of file G4DNADamage.hh.

66{return fPosition;}

◆ GetTime()

double G4DNAIndirectHit::GetTime ( )
inline

Definition at line 68 of file G4DNADamage.hh.

68{return fTime;}

◆ Print()

void G4DNAIndirectHit::Print ( )

Definition at line 49 of file G4DNADamage.cc.

50{
51 G4cout << "Reaction : " << fpMolecule->GetName() << " + " << fBaseName
52 << " at position : " << G4BestUnit(fPosition, "Length")
53 << " and time : " << G4BestUnit(fTime, "Time") << G4endl;
54}
#define G4BestUnit(a, b)
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const override

Member Data Documentation

◆ fBaseName

G4String G4DNAIndirectHit::fBaseName
protected

Definition at line 76 of file G4DNADamage.hh.

Referenced by G4DNAIndirectHit(), GetBaseName(), and Print().

◆ fpMolecule

const G4Molecule* G4DNAIndirectHit::fpMolecule
protected

Definition at line 73 of file G4DNADamage.hh.

Referenced by GetMolecule(), Print(), and ~G4DNAIndirectHit().

◆ fPosition

G4ThreeVector G4DNAIndirectHit::fPosition
protected

Definition at line 74 of file G4DNADamage.hh.

Referenced by G4DNAIndirectHit(), GetPosition(), and Print().

◆ fTime

G4double G4DNAIndirectHit::fTime
protected

Definition at line 75 of file G4DNADamage.hh.

Referenced by G4DNAIndirectHit(), GetTime(), and Print().


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