Skip to content

Commit

Permalink
return error message if input beta is >= 1
Browse files Browse the repository at this point in the history
  • Loading branch information
stahlleiton committed May 2, 2017
1 parent 22ccc08 commit 28286f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GeneratorInterface/GenFilters/src/MCSingleParticleFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ betaBoost(iConfig.getUntrackedParameter("BetaBoost",0.))
status = defstat2;
}


// check if beta is smaller than 1
if (abs(betaBoost) >= 1 ){
edm::LogError("MCSingleParticleFilter") << "Input beta boost is >= 1 !";
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ betaBoost(iConfig.getUntrackedParameter("BetaBoost",0.))
decayZMax = decayZmax2;
}

// check if beta is smaller than 1
if (abs(betaBoost) >= 1 ){
edm::LogError("MCSmartSingleParticleFilter") << "Input beta boost is >= 1 !";
}

}

Expand Down

0 comments on commit 28286f1

Please sign in to comment.