52 #include "G4HCofThisEvent.hh"
53 #include "G4VHitsCollection.hh"
120 delete eventMessenger;
133 if ( eventNumber == 1){
136 G4cout <<
"1--------+---------+---------+---------+---------5e6"<<
G4endl;
139 if ( ((eventNumber) % 100000) == 0 ) {
141 if ( eventNumber % (
G4int)5e6 != 0 )
G4cout <<
"#" << std::flush;
144 #ifdef G4ANALYSIS_USE
145 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
146 analysis->PlotCurrentResults();
172 G4double totEnergyDetect=0., totEnergy=0., energyD=0.;
183 for (
G4int i=0;i<n_hit;i++)
186 totEnergy += (*HPGeHC)[i]->GetEdepTot();
193 #ifdef G4ANALYSIS_USE
194 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
195 analysis->analyseEnergyDep(energyD);
197 totEnergyDetect += energyD;
225 if ( Random<efficiency )
227 G4double sigma = std::sqrt(F*epsilon*energy+std::pow(deltaE/2355,2));
229 EdepDetect = G4RandGauss::shoot(energy, sigma );
232 else {EdepDetect = 0.;}