Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4DNAIndirectHit Class Reference

#include <G4DNADamage.hh>

Inheritance diagram for G4DNAIndirectHit:
Collaboration 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 59 of file G4DNADamage.hh.

Constructor & Destructor Documentation

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

Definition at line 33 of file G4DNADamage.cc.

36  :
37  G4VDNAHit(), fpMolecule(molecule)
38 {
39  fBaseName = baseName;
41  fTime = time;
42 }
G4ThreeVector fPosition
Definition: G4DNADamage.hh:75
G4String fBaseName
Definition: G4DNADamage.hh:77
const G4Molecule * fpMolecule
Definition: G4DNADamage.hh:74
#define position
Definition: xmlparse.cc:622
G4DNAIndirectHit::~G4DNAIndirectHit ( )
virtual

Definition at line 44 of file G4DNADamage.cc.

45 {
46  if (fpMolecule) delete fpMolecule;
47  fpMolecule = 0;
48 }
const G4Molecule * fpMolecule
Definition: G4DNADamage.hh:74

Member Function Documentation

const G4String& G4DNAIndirectHit::GetBaseName ( )
inline

Definition at line 68 of file G4DNADamage.hh.

68 {return fBaseName;}
G4String fBaseName
Definition: G4DNADamage.hh:77
const G4Molecule* G4DNAIndirectHit::GetMolecule ( )
inline

Definition at line 66 of file G4DNADamage.hh.

66 {return fpMolecule;}
const G4Molecule * fpMolecule
Definition: G4DNADamage.hh:74
const G4ThreeVector& G4DNAIndirectHit::GetPosition ( )
inline

Definition at line 67 of file G4DNADamage.hh.

67 {return fPosition;}
G4ThreeVector fPosition
Definition: G4DNADamage.hh:75
double G4DNAIndirectHit::GetTime ( )
inline

Definition at line 69 of file G4DNADamage.hh.

69 {return fTime;}
void G4DNAIndirectHit::Print ( void  )

Definition at line 50 of file G4DNADamage.cc.

51 {
52  G4cout << "Reaction : " << fpMolecule->GetName() << " + " << fBaseName
53  << " at position : " << G4BestUnit(fPosition, "Length")
54  << " and time : " << G4BestUnit(fTime, "Time") << G4endl;
55 }
G4ThreeVector fPosition
Definition: G4DNADamage.hh:75
G4String fBaseName
Definition: G4DNADamage.hh:77
const G4Molecule * fpMolecule
Definition: G4DNADamage.hh:74
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
const G4String & GetName() const
Definition: G4Molecule.cc:356
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Member Data Documentation

G4String G4DNAIndirectHit::fBaseName
protected

Definition at line 77 of file G4DNADamage.hh.

const G4Molecule* G4DNAIndirectHit::fpMolecule
protected

Definition at line 74 of file G4DNADamage.hh.

G4ThreeVector G4DNAIndirectHit::fPosition
protected

Definition at line 75 of file G4DNADamage.hh.

G4double G4DNAIndirectHit::fTime
protected

Definition at line 76 of file G4DNADamage.hh.


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