Skip to content

Commit e5d4913

Browse files
committed
Fix sign error introduced when turning magic numbers into named parameters
1 parent 5244916 commit e5d4913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimMuon/GEMDigitizer/src/GEMSignalModel.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ void GEMSignalModel::simulate(const GEMEtaPartition* roll,
5757
if (partMom <= elecMomCut1)
5858
elecEff = elecEffLowCoeff * std::exp(elecEffLowParam0 * partMom * momConvFact);
5959
if (partMom > elecMomCut1 && partMom < elecMomCut2)
60-
elecEff = elecEffMidCoeff * log(elecEffMidParam1 * partMom * momConvFact - elecEffMidParam0) /
61-
(elecEffMidCoeff + log(elecEffMidParam1 * partMom * momConvFact - elecEffMidParam0));
60+
elecEff = elecEffMidCoeff * log(elecEffMidParam1 * partMom * momConvFact + elecEffMidParam0) /
61+
(elecEffMidCoeff + log(elecEffMidParam1 * partMom * momConvFact + elecEffMidParam0));
6262
if (partMom > elecMomCut2)
6363
elecEff = 1.;
6464
if (checkElecEff < elecEff)

0 commit comments

Comments
 (0)