50 #include "G4HCofThisEvent.hh"
51 #include "G4VHitsCollection.hh"
60 :UltraRun(run),OpticalHitsCollID(-1)
71 G4int printModulo = 100;
78 if(OpticalHitsCollID==-1) {
83 if (evtNb%printModulo == 0)
97 if(OpticalHitsCollID != -1) OpticalHitsColl =
105 nOptHits = OpticalHitsColl->
entries();
109 G4cout <<
" Optical Hit # " <<
" " <<
"Energy (eV)" <<
" " <<
"x,y,z (cm)" <<
G4endl ;
113 for(
G4int iHit=0; iHit<nOptHits; iHit++){
115 #ifdef G4ANALYSIS_USE
117 HitEnergy = (*OpticalHitsColl)[iHit]->GetEnergy() ;
118 UltraAnalysisManager* analysis = UltraAnalysisManager::getInstance();
119 analysis->FillHistogram(1,HitEnergy/
eV);
126 #ifdef G4ANALYSIS_USE
127 UltraAnalysisManager* analysis = UltraAnalysisManager::getInstance();
128 analysis->FillHistogram(2,nOptHits);