153 cout <<
" ------ ExGflashEventAction::End of event nr. " <<
fEventNo
159 int n_hit = hitsCollection->GetEntriesFast();
160 cout <<
" " << n_hit <<
" hits are stored in HitsCollection " << endl;
168 Double_t energyincrystal[100];
169 for (Int_t i = 0; i < 100; i++) energyincrystal[i] = 0.;
173 for (Int_t i = 0; i < n_hit; i++) {
174 Hit* hit =
static_cast<Hit*
>(hitsCollection->At(i));
176 Double_t estep = hit->
GetEdep();
180 energyincrystal[num] += estep;
183 TVector3 hitpos = hit->
GetPos();
186 l = l - vertexPosition;
188 TVector3 longitudinal(l);
190 TVector3 radial(vertexPosition.Cross(l));
197 for (Int_t i = 0; i < 100; i++) {
199 if (max < energyincrystal[i]) {
200 max = energyincrystal[i];
207 Double_t e3x3 = energyincrystal[index] + energyincrystal[index + 1] +
208 energyincrystal[index - 1] + energyincrystal[index - 10] +
209 energyincrystal[index - 9] + energyincrystal[index - 11] +
210 energyincrystal[index + 10] + energyincrystal[index + 11] +
211 energyincrystal[index + 9];
214 Double_t e5x5 = energyincrystal[index] + energyincrystal[index + 1] +
215 energyincrystal[index - 1] + energyincrystal[index + 2] +
216 energyincrystal[index - 2] + energyincrystal[index - 10] +
217 energyincrystal[index - 9] + energyincrystal[index - 11] +
218 energyincrystal[index - 8] + energyincrystal[index - 12] +
219 energyincrystal[index + 10] + energyincrystal[index + 11] +
220 energyincrystal[index + 9] + energyincrystal[index + 12] +
221 energyincrystal[index + 8];
223 cout <<
" e1 " << energyincrystal[index] <<
" e3x3 " << e3x3
224 <<
" e5x5 " << e5x5 <<
" GeV" << endl;
226 cout <<
" Total energy deposited in the calorimeter: " << totE <<
" (GeV)"