53 nevent(0),dtime(0.0),calorimeterCollectionId(-1)
59 G4cout <<
"Internal Real Elapsed Time /event is: "<< dtime /nevent<<
G4endl;
65 G4cout<<
" ------ Start ExGflashEventAction ----- "<<
G4endl;
67 G4cout<<
" Start generating event Nr "<<nevent<<G4endl<<
G4endl;
74 G4cout <<
"******************************************";
82 G4cout <<
"******************************************"<<
G4endl;
84 G4cout<<
" ------ ExGflashEventAction::End of event nr. "<<nevent<<
" -----"<<
G4endl;
88 calorimeterCollectionId=SDman->
GetCollectionID(colNam=
"ExGflashCollection");
89 if (calorimeterCollectionId<0)
return;
98 G4cout<<
" " << n_hit<<
" hits are stored in ExGflashHitsCollection "<<
G4endl;
108 for (
int i=0;i<100;i++) energyincrystal[i]=0.;
112 for (
int i=0;i<n_hit;i++)
117 totE += (*THC)[i]->GetEdep()/
GeV;
118 G4int num=(*THC)[i]->GetCrystalNum();
120 energyincrystal[num]+=(*THC)[i]->GetEdep()/
GeV;
138 for (
int i=0;i<100;i++)
141 if (max <energyincrystal[i])
143 max=energyincrystal[i];
150 G4double e3x3 = energyincrystal[
index]+energyincrystal[index+1]+energyincrystal[index-1]+
151 energyincrystal[index-10]+energyincrystal[index-9]+energyincrystal[index-11]+
152 energyincrystal[index+10]+energyincrystal[index+11]+energyincrystal[index+9];
155 G4double e5x5 = energyincrystal[
index]+energyincrystal[index+1]+energyincrystal[index-1]+energyincrystal[index+2]+energyincrystal[index-2]+
156 energyincrystal[index-10]+energyincrystal[index-9]+energyincrystal[index-11]+energyincrystal[index-8]+energyincrystal[index-12]+
157 energyincrystal[index+10]+energyincrystal[index+11]+energyincrystal[index+9]+energyincrystal[index+12]+energyincrystal[index+8];
159 G4cout <<
" e1 " << energyincrystal[
index] <<
" e3x3 " << e3x3<<
" GeV e5x5 " <<e5x5 <<
G4endl;
162 G4cout <<
" Total energy deposited in the calorimeter: " << totE <<
" (GeV)" <<
G4endl;
164 G4int n_trajectories = 0;
165 if(trajectoryContainer){ n_trajectories = trajectoryContainer->
entries(); }
166 G4cout <<
" " << n_trajectories <<
" trajectories stored in this event." <<
G4endl;