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));
232 else {EdepDetect = 0.;}
ThreeVector shoot(const G4int Ap, const G4int Af)
XrayFluoVDetectorType * GetDetectorType()
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
XrayFluoEventAction(XrayFluoDetectorConstruction *)
XrayFluoVDetectorType * GetDetectorType()
virtual G4double ResponseFunction(G4double)=0
G4GLOB_DLL std::ostream G4cout
virtual ~XrayFluoEventAction()
XrayFluoVDetectorType * GetDetectorType()
G4bool GetPhaseSpaceFlag()
static G4SDManager * GetSDMpointer()
virtual void BeginOfEventAction(const G4Event *)
G4HCofThisEvent * GetHCofThisEvent() const
virtual void EndOfEventAction(const G4Event *)
double Random(double min=0.0, double max=1.0)