39 #include "SteppingAction.hh"
47 #include "Analysis.hh"
48 #include "CommandLineParser.hh"
50 using namespace G4DNAPARSER;
85 if (particleName ==
"e-") flagParticle = 10;
86 else if (particleName ==
"proton") flagParticle = 20;
87 else if (particleName ==
"hydrogen") flagParticle = 30;
88 else if (particleName ==
"alpha") flagParticle = 40;
89 else if (particleName ==
"alpha+") flagParticle = 50;
90 else if (particleName ==
"helium") flagParticle = 60;
92 if (processName ==
"e-_G4DNAElastic") flagProcess = 11;
93 else if (processName ==
"e-_G4DNAExcitation") flagProcess = 12;
94 else if (processName ==
"e-_G4DNAIonisation") flagProcess = 13;
95 else if (processName ==
"e-_G4DNAAttachment") flagProcess = 14;
96 else if (processName ==
"e-_G4DNAVibExcitation") flagProcess = 15;
97 else if (processName ==
"eCapture") flagProcess = 16;
101 else if (processName ==
"proton_G4DNAExcitation") flagProcess = 21;
102 else if (processName ==
"proton_G4DNAIonisation") flagProcess = 22;
103 else if (processName ==
"proton_G4DNAChargeDecrease") flagProcess = 23;
105 else if (processName ==
"hydrogen_G4DNAExcitation") flagProcess = 31;
106 else if (processName ==
"hydrogen_G4DNAIonisation") flagProcess = 32;
107 else if (processName ==
"hydrogen_G4DNAChargeIncrease") flagProcess = 33;
109 else if (processName ==
"alpha_G4DNAExcitation") flagProcess = 41;
110 else if (processName ==
"alpha_G4DNAIonisation") flagProcess = 42;
111 else if (processName ==
"alpha_G4DNAChargeDecrease") flagProcess = 43;
113 else if (processName ==
"alpha+_G4DNAExcitation") flagProcess = 51;
114 else if (processName ==
"alpha+_G4DNAIonisation") flagProcess = 52;
115 else if (processName ==
"alpha+_G4DNAChargeDecrease") flagProcess = 53;
116 else if (processName ==
"alpha+_G4DNAChargeIncrease") flagProcess = 54;
118 else if (processName ==
"helium_G4DNAExcitation") flagProcess = 61;
119 else if (processName ==
"helium_G4DNAIonisation") flagProcess = 62;
120 else if (processName ==
"helium_G4DNAChargeIncrease") flagProcess = 63;
127 if (volumeName ==
"physi sugar 2") flagVolume = 1;
128 else if (volumeName ==
"physi sugar 4") flagVolume = 2;
130 if (flagVolume != 0 && dE != 0)
150 analysisManager->FillNtupleDColumn(0, flagParticle);
151 analysisManager->FillNtupleDColumn(1, flagProcess);
152 analysisManager->FillNtupleDColumn(2, flagVolume);
153 analysisManager->FillNtupleDColumn(3, xp);
154 analysisManager->FillNtupleDColumn(4, yp);
155 analysisManager->FillNtupleDColumn(5, zp);
156 analysisManager->FillNtupleDColumn(6, dE);
157 analysisManager->FillNtupleDColumn(7,
158 std::sqrt((x - xp) * (x - xp)
159 + (y - yp) * (y - yp)
160 + (z - zp) * (z - zp)));
162 analysisManager->AddNtupleRow();
G4StepPoint * GetPreStepPoint() const
const G4String & GetParticleName() const
G4VPhysicalVolume * GetPhysicalVolume() const
G4ParticleDefinition * GetDefinition() const
const G4ThreeVector & GetPosition() const
G4Track * GetTrack() const
const G4String & GetProcessName() const
G4double GetTotalEnergyDeposit() const
static constexpr double eV
G4CsvAnalysisManager G4AnalysisManager
CommandLineParser * parser(0)
G4StepPoint * GetPostStepPoint() const
void UserSteppingAction(const G4Step *)
Command * GetCommandIfActive(const G4String &marker)
const G4VProcess * GetProcessDefinedStep() const
const G4DynamicParticle * GetDynamicParticle() const
const G4String & GetName() const
static constexpr double nanometer