From 5f78c61fac73eb342fc1e99cfbb114c0fb10fec8 Mon Sep 17 00:00:00 2001 From: UAEDF-tomc Date: Thu, 8 May 2014 22:03:12 +0200 Subject: [PATCH] Fixed typo + end loop before end of file --- .../Modules/plugins/QGLikelihoodSystematicsDBWriter.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/JetMETCorrections/Modules/plugins/QGLikelihoodSystematicsDBWriter.cc b/JetMETCorrections/Modules/plugins/QGLikelihoodSystematicsDBWriter.cc index 66c6884756677..0545d4f39fc0c 100644 --- a/JetMETCorrections/Modules/plugins/QGLikelihoodSystematicsDBWriter.cc +++ b/JetMETCorrections/Modules/plugins/QGLikelihoodSystematicsDBWriter.cc @@ -44,8 +44,7 @@ void QGLikelihoodSystematicsDBWriter::beginJob(){ database.open(edm::FileInPath(fileName.c_str()).fullPath().c_str(),std::ios::in); if(!database.is_open()){ edm::LogError("FileNotFound") << "Could not open file "<< fileName << std::endl; return;} std::string line; - while(database.good()){ - std::getline(database,line); + while(std::getline(database,line)){ float ptMin, ptMax, etaMin, etaMax, rhoMin, rhoMax, a_q, b_q, a_g, b_g, lmin, lmax; char tag[1023],leadchar; sscanf(line.c_str(),"%c",&leadchar); @@ -66,7 +65,7 @@ void QGLikelihoodSystematicsDBWriter::beginJob(){ QGLikelihoodSystematicsObject::Entry quarkEntry; quarkEntry.systCategory = category; quarkEntry.a = a_q; - quarkEntry.b = a_q; + quarkEntry.b = b_q; quarkEntry.lmin = lmin; quarkEntry.lmax = lmax;