43 G4HCofThisEvent* HCE = evt->GetHCofThisEvent();
54 fNHits = CHC->entries();
56 for (i=0;i<fNHits;i++)
58 fTotECrystal += (*CHC)[i]->GetEdepCrystal();
59 fTotLCrystal += (*CHC)[i]->GetTrakCrystal();
60 G4int nTheta=45-(*CHC)[i]->GetNumThetaCrystal();
61 G4int
nPhi =(*CHC)[i]->GetNumPhiCrystal();
62 if(nTheta>0&&nTheta<50&&nPhi>0&&
nPhi<150)
64 fSingleECrystal[nTheta][
nPhi]+=(*CHC)[i]->GetEdepCrystal();
70 G4cout <<
"EMC Hit out range:"
71 << nTheta <<
','<<
nPhi << G4endl;
81 if(fSingleECrystal[i][j]>ecut)
87 if((fEnergySignal=
new G4double[fNCrystalSignal+1])==
NULL||
88 (fNThetaSignal=
new G4int[fNCrystalSignal+1])==
NULL||
89 (fNPhiSignal=
new G4int[fNCrystalSignal+1])==
NULL)
92 G4cout<<
"BesEmcDigitization:can't allocate memory for Signal"<<G4endl;
99 if(fSingleECrystal[i][j]>ecut)
102 fEnergySignal[
n]=fSingleECrystal[i][j];
103 fNThetaSignal[
n]=45-i;