69 :outputFileName(
"xrayfluo"), phaseSpaceFlag(
false), physicFlag (
false),
70 gunParticleEnergies(0), gunParticleTypes(0)
141 man->
CreateH1(
"h1",
"Energy Deposit", 500,0.,10.);
142 man->
CreateH1(
"h2",
"Gamma born in the sample", 100,0.,10.);
143 man->
CreateH1(
"h3",
"Electrons born in the sample", 100,0.,10.);
144 man->
CreateH1(
"h4",
"Gammas leaving the sample", 300,0.,10.);
145 man->
CreateH1(
"h5",
"Electrons leaving the sample ",200000 ,0.,10.0);
146 man->
CreateH1(
"h6",
"Gammas reaching the detector", 100,0.,10.);
147 man->
CreateH1(
"h7",
"Spectrum of the incident particles", 100,0.,10.);
148 man->
CreateH1(
"h8",
"Protons reaching the detector", 100,0.,10.);
149 man->
CreateH1(
"h9",
"Protons leaving the sample", 100,0.,10.);
175 G4int particleID, processID;
183 if (raileighFlag ^ (!raileighFlag && (processID == 1 ||
189 else if (particleID == 0)
204 std::pair<G4double,G4String> result;
211 result.second =
name;
253 G4int isBornInTheSample=0;
275 if (creationPosVolume->
GetName() ==
"Sample" ) {
276 isBornInTheSample = 1;
292 if (parentProcess ==
"") parent = 0;
293 if (parentProcess ==
"ioni") parent = 1;
294 if (parentProcess ==
"LowEnPhotoElec") parent = 2;
295 if (parentProcess ==
"Transportation") parent = 3;
296 if (parentProcess ==
"initStep") parent = 4;
299 parentProcess =
"Not Known -- (primary generator + Rayleigh)";
305 if (sampleMaterial == (
"Dolorite" ||
"Anorthosite" ||
"Mars1" ||
"IceBasalt" ||
"HPGe")) sampleMat=1;
419 man->
FillH1(8,protonsAtTheDetPre);