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

#include <G4DNADamages.hh>

+ Inheritance diagram for G4DNAIndirectHit:

Public Member Functions

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

Protected Attributes

const G4MoleculefpMolecule
 
G4ThreeVector fPosition
 
G4double fTime
 
G4String fBaseName
 

Detailed Description

Definition at line 40 of file G4DNADamages.hh.

Constructor & Destructor Documentation

◆ G4DNAIndirectHit()

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

Definition at line 33 of file G4DNADamages.cc.

36 : G4VDNAHit(),
37 fpMolecule(molecule)
38{
39 fBaseName = baseName;
41 fTime = time;
42}
G4String fBaseName
Definition: G4DNADamages.hh:58
const G4Molecule * fpMolecule
Definition: G4DNADamages.hh:55
G4ThreeVector fPosition
Definition: G4DNADamages.hh:56
#define position
Definition: xmlparse.cc:605

◆ ~G4DNAIndirectHit()

G4DNAIndirectHit::~G4DNAIndirectHit ( )
virtual

Definition at line 45 of file G4DNADamages.cc.

46{
47 if(fpMolecule) delete fpMolecule;
48 fpMolecule = 0;
49}

Member Function Documentation

◆ GetBaseName()

const G4String & G4DNAIndirectHit::GetBaseName ( )
inline

Definition at line 49 of file G4DNADamages.hh.

49{return fBaseName;}

◆ GetMolecule()

const G4Molecule * G4DNAIndirectHit::GetMolecule ( )
inline

Definition at line 47 of file G4DNADamages.hh.

47{return fpMolecule;}

◆ GetPosition()

const G4ThreeVector & G4DNAIndirectHit::GetPosition ( )
inline

Definition at line 48 of file G4DNADamages.hh.

48{return fPosition;}

◆ GetTime()

double G4DNAIndirectHit::GetTime ( )
inline

Definition at line 50 of file G4DNADamages.hh.

50{return fTime;}

◆ Print()

void G4DNAIndirectHit::Print ( )

Definition at line 51 of file G4DNADamages.cc.

52{
53 G4cout << "Reaction : " << fpMolecule->GetName() << " + " << fBaseName
54 << " at position : " << G4BestUnit(fPosition,"Length")
55 << " and time : " << G4BestUnit(fTime,"Time") << G4endl;
56}
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetName() const
Definition: G4Molecule.cc:259

Member Data Documentation

◆ fBaseName

G4String G4DNAIndirectHit::fBaseName
protected

Definition at line 58 of file G4DNADamages.hh.

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

◆ fpMolecule

const G4Molecule* G4DNAIndirectHit::fpMolecule
protected

Definition at line 55 of file G4DNADamages.hh.

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

◆ fPosition

G4ThreeVector G4DNAIndirectHit::fPosition
protected

Definition at line 56 of file G4DNADamages.hh.

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

◆ fTime

G4double G4DNAIndirectHit::fTime
protected

Definition at line 57 of file G4DNADamages.hh.

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


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