#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 131 of file G4PhysChemIO.cc.
133{
135
137 << "e_aq" << setw(14) << -1 << std::setprecision(2)
138 << std::fixed << setw(13)
140 << std::setprecision(6) << std::scientific << setw(22)
141 << (theIncomingTrack->
GetPosition().x()) / nanometer
142 << setw(22)
143 << (theIncomingTrack->
GetPosition().y()) / nanometer
144 << setw(22)
145 << (theIncomingTrack->
GetPosition().z()) / nanometer;
146
147 if (finalPosition != nullptr)
148 {
149 fOfstream << setw(14) << (finalPosition->
x()) / nanometer << setw(14)
150 << (finalPosition->
y()) / nanometer << setw(14)
151 << (finalPosition->
z()) / nanometer;
152 }
153
155}
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 108 of file G4PhysChemIO.cc.
112{
114
116 << setw(10) << "H2O" << left << modification << internal
117 << ":" << right << electronicLevel << left << setw(11) << ""
118 << std::setprecision(2) << std::fixed << setw(13)
119 <<
energy / eV << std::setprecision(6) << std::scientific
120 << setw(22)
121 << (theIncomingTrack->
GetPosition().x()) / nanometer
122 << setw(22)
123 << (theIncomingTrack->
GetPosition().y()) / nanometer
124 << setw(22)
125 << (theIncomingTrack->
GetPosition().z()) / nanometer
127}
G4double energy(const ThreeVector &p, const G4double m)
◆ InitializeFile()
void G4PhysChemIO::FormattedText::InitializeFile |
( |
| ) |
|
|
overridevirtual |
Implements G4VPhysChemIO.
Definition at line 58 of file G4PhysChemIO.cc.
59{
61
62 fOfstream << std::setprecision(6) << std::scientific;
63 fOfstream << setw(11) << left <<
"#Parent ID" << setw(10) <<
"Molecule"
64 << setw(14) << "Elec Modif" << setw(13) << "Energy (eV)"
65 << setw(22) << "X pos of parent [nm]" << setw(22)
66 << "Y pos of parent [nm]" << setw(22) << "Z pos of parent [nm]"
67 << setw(14) << "X pos [nm]" << setw(14) << "Y pos [nm]"
68 << setw(14) <<
"Z pos [nm]" <<
G4endl<< setw(21) <<
"#"
69 << setw(13) << "1)io/ex=0/1"
71 << setw(21) << "#"
72 << setw(13) << "2)level=0...5"
74
76}
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 80 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: