35 #include "Analysis.hh"
37 #include "SteppingAction.hh"
38 #include "RunAction.hh"
39 #include "DetectorConstruction.hh"
40 #include "PrimaryGeneratorAction.hh"
46 #include "CommandLineParser.hh"
56 using namespace G4DNAPARSER;
107 if (partDef == instance->
GetIon(
"hydrogen"))
110 if (partDef == instance->
GetIon(
"alpha+"))
113 if (partDef == instance->
GetIon(
"helium"))
140 const G4String& processName = postStep->
141 GetProcessDefinedStep()->GetProcessName();
143 if (processName==
"eCapture") flagProcess =1;
146 else if (flagParticle == 1)
149 if (procID==58) flagProcess =10;
150 else if (procID==51) flagProcess =11;
151 else if (procID==52) flagProcess =12;
152 else if (procID==53) flagProcess =13;
153 else if (procID==55) flagProcess =14;
154 else if (procID==54) flagProcess =15;
155 else if (procID==10) flagProcess =110;
156 else if (procID==1) flagProcess =120;
157 else if (procID==2) flagProcess =130;
160 else if (flagParticle == 2)
163 if (procID==51) flagProcess =21;
164 else if (procID==52) flagProcess =22;
165 else if (procID==53) flagProcess =23;
166 else if (procID==56) flagProcess =24;
167 else if (procID==10) flagProcess =210;
168 else if (procID==1) flagProcess =220;
169 else if (procID==2) flagProcess =230;
170 else if (procID==8) flagProcess =240;
173 else if (flagParticle == 3)
176 if (procID==51) flagProcess =31;
177 else if (procID==52) flagProcess =32;
178 else if (procID==53) flagProcess =33;
179 else if (procID==57) flagProcess =35;
182 else if (flagParticle == 4)
185 if (procID==51) flagProcess =41;
186 else if (procID==52) flagProcess =42;
187 else if (procID==53) flagProcess =43;
188 else if (procID==56) flagProcess =44;
189 else if (procID==10) flagProcess =410;
190 else if (procID==1) flagProcess =420;
191 else if (procID==2) flagProcess =430;
192 else if (procID==8) flagProcess =440;
195 else if (flagParticle == 5)
198 if (procID==51) flagProcess =51;
199 else if (procID==52) flagProcess =52;
200 else if (procID==53) flagProcess =53;
201 else if (procID==56) flagProcess =54;
202 else if (procID==57) flagProcess =55;
203 else if (procID==10) flagProcess =510;
204 else if (procID==1) flagProcess =520;
205 else if (procID==2) flagProcess =530;
206 else if (procID==8) flagProcess =540;
209 else if (flagParticle == 6)
212 if (procID==51) flagProcess =61;
213 else if (procID==52) flagProcess =62;
214 else if (procID==53) flagProcess =63;
215 else if (procID==57) flagProcess =65;
218 else if (processName==
"GenericIon_G4DNAIonisation") flagProcess =73;
219 else if (processName==
"msc") flagProcess =710;
220 else if (processName==
"CoulombScat") flagProcess =720;
221 else if (processName==
"ionIoni") flagProcess =730;
222 else if (processName==
"nuclearStopping") flagProcess =740;
269 if (processName!=
"Transportation")
296 std::sqrt((x-xp)*(x-xp)+
297 (y-yp)*(y-yp)+(z-zp)*(z-zp)));
303 GetKineticEnergy())/
eV );
306 GetKineticEnergy()/
eV);
314 GetConstCurrentEvent()->GetEventID());