G4DNAIndirectHit Class Reference

#include <G4DNADamages.hh>

Inheritance diagram for G4DNAIndirectHit:

G4VDNAHit

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 ()

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 ( const G4String baseName,
const G4Molecule molecule,
const G4ThreeVector position,
G4double  time 
)

Definition at line 33 of file G4DNADamages.cc.

References fBaseName, fPosition, and fTime.

00036                                                   : G4VDNAHit(),
00037     fpMolecule(molecule)
00038 {
00039     fBaseName = baseName;
00040     fPosition = position;
00041     fTime = time;
00042 }

G4DNAIndirectHit::~G4DNAIndirectHit (  )  [virtual]

Definition at line 45 of file G4DNADamages.cc.

References fpMolecule.

00046 {
00047     if(fpMolecule) delete fpMolecule;
00048     fpMolecule = 0;
00049 }


Member Function Documentation

const G4String& G4DNAIndirectHit::GetBaseName (  )  [inline]

Definition at line 49 of file G4DNADamages.hh.

References fBaseName.

00049 {return fBaseName;}

const G4Molecule* G4DNAIndirectHit::GetMolecule (  )  [inline]

Definition at line 47 of file G4DNADamages.hh.

References fpMolecule.

00047 {return fpMolecule;}

const G4ThreeVector& G4DNAIndirectHit::GetPosition (  )  [inline]

Definition at line 48 of file G4DNADamages.hh.

References fPosition.

00048 {return fPosition;}

double G4DNAIndirectHit::GetTime (  )  [inline]

Definition at line 50 of file G4DNADamages.hh.

References fTime.

00050 {return fTime;}

void G4DNAIndirectHit::Print (  ) 

Definition at line 51 of file G4DNADamages.cc.

References fBaseName, fpMolecule, fPosition, fTime, G4BestUnit, G4cout, G4endl, and G4Molecule::GetName().

00052 {
00053     G4cout << "Reaction : " << fpMolecule->GetName() << " + " << fBaseName
00054            << " at position : " << G4BestUnit(fPosition,"Length")
00055            << " and time : " << G4BestUnit(fTime,"Time") << G4endl;
00056 }


Field Documentation

G4String G4DNAIndirectHit::fBaseName [protected]

Definition at line 58 of file G4DNADamages.hh.

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

const G4Molecule* G4DNAIndirectHit::fpMolecule [protected]

Definition at line 55 of file G4DNADamages.hh.

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

G4ThreeVector G4DNAIndirectHit::fPosition [protected]

Definition at line 56 of file G4DNADamages.hh.

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

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:
Generated on Mon May 27 17:51:47 2013 for Geant4 by  doxygen 1.4.7