Skip to content

Commit

Permalink
code format which was applied but seems it was not taken
Browse files Browse the repository at this point in the history
  • Loading branch information
jainshilpi committed Apr 23, 2020
1 parent c42e614 commit 5f6a5e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions RecoEgamma/EgammaTools/src/EnergyScaleCorrection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ void EnergyScaleCorrection::addScale(int runMin,
double energyScaleErrStat,
double energyScaleErrSyst,
double energyScaleErrGain) {
CorrectionCategory cat(
runMin, runMax, etaMin, etaMax, r9Min, r9Max, etMin, etMax, gain);
CorrectionCategory cat(runMin, runMax, etaMin, etaMax, r9Min, r9Max, etMin, etMax, gain);

auto result = std::equal_range(scales_.begin(), scales_.end(), cat, Sorter<CorrectionCategory, ScaleCorrection>());
if (result.first != result.second) {
Expand Down Expand Up @@ -222,7 +221,7 @@ void EnergyScaleCorrection::readScalesFromFile(const std::string& filename) {
double r9Min; ///< Min R9 vaule for the bin
double r9Max; ///< Max R9 value for the bin
double etMin; ///< Min Et value for the bin
double etMax; ///< Max Et value for the bin
double etMax; ///< Max Et value for the bin
unsigned int gain; ///< 12, 6, 1, 61 (double gain switch)

// TO count the #columns in that txt file and decide based on that the version to read
Expand Down Expand Up @@ -487,9 +486,9 @@ EnergyScaleCorrection::CorrectionCategory::CorrectionCategory(unsigned int runMi
etMin_(etMin),
etMax_(etMax),
gain_(gainSeed) {
///Same logic as the above constructor to avoid problems at the bin
///Same logic as the above constructor to avoid problems at the bin
///boundary of et/eta/R9 - just decrement the maxValues
///ever so slightly to ensure that they are different
///ever so slightly to ensure that they are different
///from the next bins min value
etMax_ = std::nextafterf(etMax_, std::numeric_limits<float>::min());
etaMax_ = std::nextafterf(etaMax_, std::numeric_limits<float>::min());
Expand Down

0 comments on commit 5f6a5e0

Please sign in to comment.