Skip to content

Commit 795d681

Browse files
MartinaFeijoojose-luis-rs
authored andcommitted
totcal = 0 if totmap = 0 to avoid artifact in cal level
1 parent 1aa62fd commit 795d681

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

califa/calibration/R3BCalifaMapped2CrystalCal.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ void R3BCalifaMapped2CrystalCal::Exec(Option_t* /*option*/)
259259
{
260260
double a0 = params_tot.at(fNumTotParams * (crystalId - 1));
261261
double a1 = params_tot.at(fNumTotParams * (crystalId - 1) + 1);
262-
TotCal = a0 * TMath::Exp(Tot / a1);
262+
// TotCal = a0 * TMath::Exp(Tot / a1);
263+
TotCal = (Tot == 0) ? 0 : a0 * TMath::Exp(Tot / a1);
263264
}
264265
AddCalData(crystalId, cal[en], cal[Nf], cal[Ns], wrts, TotCal);
265266
}

0 commit comments

Comments
 (0)