142 |
// find energy released along the strip of maximum on the first plane and on the two neighbour strips |
// find energy released along the strip of maximum on the first plane and on the two neighbour strips |
143 |
// |
// |
144 |
if ( indx > 0 ){ |
if ( indx > 0 ){ |
145 |
Int_t mindx = (Int_t)TMath::LocMax(indx,stfpl); |
Int_t mindx = (Int_t)TMath::LocMax(indx,vfpl); |
146 |
for (Int_t ii=0; ii<indx; ii++){ |
for (Int_t ii=0; ii<indx; ii++){ |
147 |
if ( stfpl[ii] == stfpl[mindx] ) stdedx1 += vfpl[ii]; |
if ( stfpl[ii] == stfpl[mindx] ) stdedx1 += vfpl[ii]; |
148 |
if ( (mindx-1)>=0 && stfpl[ii] == stfpl[mindx-1] ) stdedx1 += vfpl[ii]; |
if ( (mindx-1)>=0 && stfpl[ii] == stfpl[mindx-1] ) stdedx1 += vfpl[ii]; |