42 G4HCofThisEvent* HCE = evt->GetHCofThisEvent();
53 fNHits = CHC->entries();
55 for (i=0;i<fNHits;i++)
57 fTotECrystal += (*CHC)[i]->GetEdepCrystal();
58 fTotLCrystal += (*CHC)[i]->GetTrakCrystal();
59 G4int nTheta=45-(*CHC)[i]->GetNumThetaCrystal();
60 G4int
nPhi =(*CHC)[i]->GetNumPhiCrystal();
61 if(nTheta>0&&nTheta<50&&nPhi>0&&
nPhi<150)
63 fSingleECrystal[nTheta][
nPhi]+=(*CHC)[i]->GetEdepCrystal();
69 G4cout <<
"EMC Hit out range:"
70 << nTheta <<
','<<
nPhi << G4endl;
80 if(fSingleECrystal[i][j]>ecut)
86 if((fEnergySignal=
new G4double[fNCrystalSignal+1])==NULL||
87 (fNThetaSignal=
new G4int[fNCrystalSignal+1])==NULL||
88 (fNPhiSignal=
new G4int[fNCrystalSignal+1])==NULL)
90 G4Exception(
"BesEmcDigitization:can't allocate memory for Signal");
96 if(fSingleECrystal[i][j]>ecut)
99 fEnergySignal[
n]=fSingleECrystal[i][j];
100 fNThetaSignal[
n]=45-i;