#include <G4PhysChemIO.hh>
Definition at line 40 of file G4PhysChemIO.hh.
◆ FormattedText()
| G4PhysChemIO::FormattedText::FormattedText |
( |
| ) |
|
◆ ~FormattedText()
| G4PhysChemIO::FormattedText::~FormattedText |
( |
| ) |
|
|
override |
◆ AddEmptyLineInOutputFile()
| void G4PhysChemIO::FormattedText::AddEmptyLineInOutputFile |
( |
| ) |
|
|
overridevirtual |
◆ CloseFile()
| void G4PhysChemIO::FormattedText::CloseFile |
( |
| ) |
|
|
overridevirtual |
◆ CreateSolvatedElectron()
| void G4PhysChemIO::FormattedText::CreateSolvatedElectron |
( |
const G4Track * | theIncomingTrack, |
|
|
G4ThreeVector * | finalPosition = nullptr ) |
|
overridevirtual |
Same idea as the previous method but for solvated electron. This method should be used by the physics model of the ElectronSolvatation process.
Implements G4VPhysChemIO.
Definition at line 129 of file G4PhysChemIO.cc.
131{
133
135 << "e_aq" << setw(14) << -1 << std::setprecision(2)
136 << std::fixed << setw(13)
138 << std::setprecision(6) << std::scientific << setw(22)
139 << (theIncomingTrack->
GetPosition().x()) / nanometer
140 << setw(22)
141 << (theIncomingTrack->
GetPosition().y()) / nanometer
142 << setw(22)
143 << (theIncomingTrack->
GetPosition().z()) / nanometer;
144
145 if (finalPosition != nullptr)
146 {
147 fOfstream << setw(14) << (finalPosition->
x()) / nanometer << setw(14)
148 << (finalPosition->
y()) / nanometer << setw(14)
149 << (finalPosition->
z()) / nanometer;
150 }
151
153}
void InitializeFile() override
const G4ThreeVector & GetPosition() const
G4double GetKineticEnergy() const
◆ CreateWaterMolecule()
| void G4PhysChemIO::FormattedText::CreateWaterMolecule |
( |
G4int | electronicModif, |
|
|
G4int | electronicLevel, |
|
|
G4double | energy, |
|
|
const G4Track * | theIncomingTrack ) |
|
overridevirtual |
When DNA physics model create a water molecule, you'll get a notification through this method. The ElectronicModification is a flag telling whether 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 (electron, proton...)
Implements G4VPhysChemIO.
Definition at line 106 of file G4PhysChemIO.cc.
110{
112
114 << setw(10) << "H2O" << left << modification << internal
115 << ":" << right << electronicLevel << left << setw(11) << ""
116 << std::setprecision(2) << std::fixed << setw(13)
117 <<
energy / eV << std::setprecision(6) << std::scientific
118 << setw(22)
119 << (theIncomingTrack->
GetPosition().x()) / nanometer
120 << setw(22)
121 << (theIncomingTrack->
GetPosition().y()) / nanometer
122 << setw(22)
123 << (theIncomingTrack->
GetPosition().z()) / nanometer
125}
G4double energy(const ThreeVector &p, const G4double m)
◆ InitializeFile()
| void G4PhysChemIO::FormattedText::InitializeFile |
( |
| ) |
|
|
overridevirtual |
Implements G4VPhysChemIO.
Definition at line 56 of file G4PhysChemIO.cc.
57{
59
60 fOfstream << std::setprecision(6) << std::scientific;
61 fOfstream << setw(11) << left <<
"#Parent ID" << setw(10) <<
"Molecule"
62 << setw(14) << "Elec Modif" << setw(13) << "Energy (eV)"
63 << setw(22) << "X pos of parent [nm]" << setw(22)
64 << "Y pos of parent [nm]" << setw(22) << "Z pos of parent [nm]"
65 << setw(14) << "X pos [nm]" << setw(14) << "Y pos [nm]"
66 << setw(14) <<
"Z pos [nm]" <<
G4endl<< setw(21) <<
"#"
67 << setw(13) << "1)io/ex=0/1"
69 << setw(21) << "#"
70 << setw(13) << "2)level=0...5"
72
74}
Referenced by CreateSolvatedElectron(), and CreateWaterMolecule().
◆ InitializeMaster()
| void G4PhysChemIO::FormattedText::InitializeMaster |
( |
| ) |
|
|
inlineoverridevirtual |
◆ InitializeThread()
| void G4PhysChemIO::FormattedText::InitializeThread |
( |
| ) |
|
|
inlineoverridevirtual |
◆ NewEvent()
| void G4PhysChemIO::FormattedText::NewEvent |
( |
| ) |
|
|
inlineoverridevirtual |
◆ NewRun()
| void G4PhysChemIO::FormattedText::NewRun |
( |
| ) |
|
|
inlineoverridevirtual |
◆ WriteInto()
| void G4PhysChemIO::FormattedText::WriteInto |
( |
const G4String & | , |
|
|
std::ios_base::openmode | mode = std::ios_base::out ) |
|
overridevirtual |
Tells the chemistry manager to write into a file the position and electronic state of the water molecule and the position thermalized or not of the solvated electron
Implements G4VPhysChemIO.
Definition at line 78 of file G4PhysChemIO.cc.
◆ fEventID
| G4int G4PhysChemIO::FormattedText::fEventID |
|
protected |
◆ fFileInitialized
| G4bool G4PhysChemIO::FormattedText::fFileInitialized |
|
protected |
◆ fOfstream
| std::ofstream G4PhysChemIO::FormattedText::fOfstream |
|
protected |
◆ fRunID
| G4int G4PhysChemIO::FormattedText::fRunID |
|
protected |
The documentation for this class was generated from the following files: