TrackAssignment2Cell();
ResetCell();
- Float_t gain1,gain2;
+ Float_t gain1;
Float_t adc;
Float_t deltaE = 0.;
Int_t detno = 0;
{
if (idet == 0)
{
- gain1 =Gain(idet,ism,jrow,kcol);
- // cout<<"The gain Factor is"<<gain1<<endl;
+ gain1 = Gain(idet,ism,jrow,kcol);
+
deltaE = fPRE[ism][jrow][kcol]*gain1;
trno = fPRETrackNo[ism][jrow][kcol];
detno = 0;
}
else if (idet == 1)
{
- gain2 =Gain(idet,ism,jrow,kcol);
- // cout<<"The Gain factor is"<<gain2<<endl;
- deltaE = fCPV[ism][jrow][kcol]*gain2;
+ gain1 = Gain(idet,ism,jrow,kcol);
+ deltaE = fCPV[ism][jrow][kcol]*gain1;
trno = fCPVTrackNo[ism][jrow][kcol];
detno = 1;
}
fPMDLoader->WriteDigits("OVERWRITE");
ResetCellADC();
-
+
}
//____________________________________________________________________________
if(!fCalibData) {
AliError("No calibration data loaded from CDB!!!");
- return -1;
+ return 1;
}
Float_t GainFact;