Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4DNAChemistryManager.hh>
Public Member Functions | |
void | WriteInto (const G4String &, std::ios_base::openmode mode=std::ios_base::out) |
void | CloseFile () |
G4bool | IsChemistryActived () |
void | SetChemistryActivation (G4bool) |
void | CreateWaterMolecule (ElectronicModification, G4int, const G4Track *) |
void | CreateSolvatedElectron (const G4Track *, G4ThreeVector *finalPosition=0) |
void | PushMolecule (G4Molecule *&molecule, double time, const G4ThreeVector &position, int parentID) |
void | PushMoleculeAtParentTimeAndPlace (G4Molecule *&molecule, const G4Track *) |
Static Public Member Functions | |
static G4DNAChemistryManager * | Instance () |
static void | DeleteInstance () |
Protected Member Functions | |
G4DNAWaterExcitationStructure * | GetExcitationLevel () |
G4DNAWaterIonisationStructure * | GetIonisationLevel () |
Friends | |
class | std::auto_ptr< G4DNAChemistryManager > |
G4DNAChemistryManager is called from the physics models. It creates the water molecules and the solvated electrons and and send them to G4ITStepManager to be treated in the chemistry stage. For this, the fActiveChemistry flag needs to be on. It is also possible to give already molecule's pointers already built. G4DNAChemistryManager will then be in charge of creating the track and loading it to the IT system. The user can also ask to create a file containing a information about the creation of water molecules and solvated electrons.
Definition at line 71 of file G4DNAChemistryManager.hh.
void G4DNAChemistryManager::CloseFile | ( | ) |
Close the file specified with WriteInto
Definition at line 117 of file G4DNAChemistryManager.cc.
void G4DNAChemistryManager::CreateSolvatedElectron | ( | const G4Track * | theIncomingTrack, |
G4ThreeVector * | finalPosition = 0 |
||
) |
On the same idea as the previous method but for solvated electron. This method should be used by the physics model of the ElectronSolvatation process.
Definition at line 209 of file G4DNAChemistryManager.cc.
Referenced by G4DNASancheSolvatationModel::SampleSecondaries(), and G4DNATransformElectronModel::SampleSecondaries().
void G4DNAChemistryManager::CreateWaterMolecule | ( | ElectronicModification | modification, |
G4int | electronicLevel, | ||
const G4Track * | theIncomingTrack | ||
) |
Method used by DNA physics model to create a water molecule. The ElectronicModification is a flag telling wheter the molecule is ionized or excited, the electronic level is calculated by the model and the IncomingTrack is the track responsible for the creation of this molecule, for instance an electron.
Definition at line 144 of file G4DNAChemistryManager.cc.
Referenced by G4DNABornExcitationModel::SampleSecondaries(), G4DNABornIonisationModel::SampleSecondaries(), G4DNAEmfietzoglouExcitationModel::SampleSecondaries(), G4DNAMeltonAttachmentModel::SampleSecondaries(), G4DNAMillerGreenExcitationModel::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), and G4DNARuddIonisationModel::SampleSecondaries().
|
static |
You should rather use DeleteInstance than the destructor of this class
Definition at line 85 of file G4DNAChemistryManager.cc.
Referenced by G4EmDNAPhysicsChemistry::~G4EmDNAPhysicsChemistry().
|
protected |
Definition at line 126 of file G4DNAChemistryManager.cc.
Referenced by CreateWaterMolecule().
|
protected |
Definition at line 135 of file G4DNAChemistryManager.cc.
Referenced by CreateWaterMolecule().
|
static |
Definition at line 64 of file G4DNAChemistryManager.cc.
Referenced by G4EmDNAPhysicsChemistry::ConstructProcess(), G4DNABornExcitationModel::SampleSecondaries(), G4DNABornIonisationModel::SampleSecondaries(), G4DNAEmfietzoglouExcitationModel::SampleSecondaries(), G4DNAMeltonAttachmentModel::SampleSecondaries(), G4DNAMillerGreenExcitationModel::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), G4DNARuddIonisationModel::SampleSecondaries(), G4DNASancheSolvatationModel::SampleSecondaries(), and G4DNATransformElectronModel::SampleSecondaries().
|
inline |
Definition at line 154 of file G4DNAChemistryManager.hh.
void G4DNAChemistryManager::PushMolecule | ( | G4Molecule *& | molecule, |
double | time, | ||
const G4ThreeVector & | position, | ||
int | parentID | ||
) |
WARNING : In case chemistry is not activated, PushMolecule will take care of deleting the transfered molecule. Before calling this method, it is also possible to check if the chemistry is activated through IsChemistryActived(). This method will create the track corresponding to the transfered molecule and will be in charge of loading the new track to the system.
Definition at line 255 of file G4DNAChemistryManager.cc.
void G4DNAChemistryManager::PushMoleculeAtParentTimeAndPlace | ( | G4Molecule *& | molecule, |
const G4Track * | theIncomingTrack | ||
) |
WARNING : In case chemistry is not activated, PushMoleculeAtParentTimeAndPlace will take care of deleting the transfered molecule. Before calling this method, it is also possible to check if the chemistry is activated through IsChemistryActived(). This method will create the track corresponding to the transfered molecule and will be in charge of loading the new track to the system.
Definition at line 287 of file G4DNAChemistryManager.cc.
|
inline |
Definition at line 159 of file G4DNAChemistryManager.hh.
Referenced by G4EmDNAPhysicsChemistry::ConstructProcess().
void G4DNAChemistryManager::WriteInto | ( | const G4String & | , |
std::ios_base::openmode | mode = std::ios_base::out |
||
) |
Tells the chemMan to write into a file the position and electronic state of the water molecule and the position thermalized or not of the solvated electron
Definition at line 91 of file G4DNAChemistryManager.cc.
|
friend |
Definition at line 159 of file G4DNAChemistryManager.hh.
Referenced by Instance().