34 #include "DetectorConstruction.hh"
35 #include "PrimaryGeneratorAction.hh"
36 #include "HistoManager.hh"
45 fDetector(det), fParticle(0), fEkin(0.),
46 fNbStep1(0), fNbStep2(0),
47 fTrackLen1(0.), fTrackLen2(0.),
68 std::map<G4String,G4int>::iterator
it =
fProcCounter.find(procName);
86 ParticleData&
data = it->second;
91 if (Ekin < emin) data.fEmin = Ekin;
93 if (Ekin > emax) data.fEmax = Ekin;
112 const Run* localRun =
static_cast<const Run*
>(run);
129 std::map<G4String,G4int>::const_iterator itp;
134 G4int localCount = itp->second;
144 std::map<G4String,ParticleData>::const_iterator itn;
149 const ParticleData& localData = itn->second;
152 = ParticleData(localData.fCount,
159 data.fCount += localData.fCount;
160 data.fEmean += localData.fEmean;
162 if (emin < data.fEmin) data.fEmin =
emin;
164 if (emax > data.fEmax) data.fEmax =
emax;
187 << material->
GetName() <<
" (density: "
196 std::map<G4String,G4int>::iterator
it;
199 G4int count = it->second;
200 G4cout <<
"\t" << procName <<
"= " << count;
201 if (procName ==
"Transportation") survive = count;
206 G4cout <<
"\n Nb of incident particles surviving after "
213 G4cout <<
"\n Parcours of incident neutron:";
217 G4double meanCollisTota = meanCollision1 + meanCollision2;
219 G4cout <<
"\n nb of collisions E>1*eV= " << meanCollision1
220 <<
" E<1*eV= " << meanCollision2
221 <<
" total= " << meanCollisTota;
225 G4double meanTrackLtot = meanTrackLen1 + meanTrackLen2;
228 <<
"\n track length E>1*eV= " <<
G4BestUnit(meanTrackLen1,
"Length")
229 <<
" E<1*eV= " <<
G4BestUnit(meanTrackLen2,
"Length")
230 <<
" total= " <<
G4BestUnit(meanTrackLtot,
"Length");
234 G4double meanTimeTo = meanTime1 + meanTime2;
237 <<
"\n time of flight E>1*eV= " <<
G4BestUnit(meanTime1,
"Time")
238 <<
" E<1*eV= " <<
G4BestUnit(meanTime2,
"Time")
245 std::map<G4String,ParticleData>::iterator itn;
248 ParticleData data = itn->second;
249 G4int count = data.fCount;
254 G4cout <<
" " << std::setw(13) << name <<
": " << std::setw(7) << count
255 <<
" Emean = " << std::setw(wid) <<
G4BestUnit(eMean,
"Energy")