Skip to content

Commit

Permalink
Merge pull request #8480 from wmtan/CompilationFixesForCondFormatsAnd…
Browse files Browse the repository at this point in the history
…RecoBTag

Fixes for compilation errors in CondFormats and RecoBTag
  • Loading branch information
ktf committed Mar 24, 2015
2 parents 3891d4a + d195e6a commit 724ea6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CondFormats/BTauObjects/src/BTagCalibration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void BTagCalibration::readCSV(std::istream &s)
}
}

void BTagCalibration::makeCSV(ostream &s) const
void BTagCalibration::makeCSV(std::ostream &s) const
{
s << tagger_ << ";" << BTagEntry::makeCSVHeader();
for (std::map<std::string, std::vector<BTagEntry> >::const_iterator i
Expand Down
4 changes: 2 additions & 2 deletions CondFormats/BTauObjects/src/BTagEntry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ BTagEntry::BTagEntry(const TF1* func, BTagEntry::Parameters p):
// e.g. "x<0 ? 1 : x<1 ? 2 : x<2 ? 3 : 4"
std::string th1ToFormulaLin(const TH1* hist) {
int nbins = hist->GetNbinsX();
TAxis * axis = hist->GetXaxis();
TAxis const* axis = hist->GetXaxis();
std::stringstream buff;
buff << "x<" << axis->GetBinLowEdge(1) << " ? 0. : "; // default value
for (int i=1; i<nbins+1; ++i) {
Expand Down Expand Up @@ -187,7 +187,7 @@ BTagEntry::BTagEntry(const TH1* hist, BTagEntry::Parameters p):
params(p)
{
int nbins = hist->GetNbinsX();
TAxis * axis = hist->GetXaxis();
TAxis const* axis = hist->GetXaxis();

// overwrite bounds with histo values
if (params.operatingPoint == BTagEntry::OP_RESHAPING) {
Expand Down
6 changes: 3 additions & 3 deletions RecoBTag/PerformanceDB/test/BTagCalibrationStandalone.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ throw std::exception();
// e.g. "x<0 ? 1 : x<1 ? 2 : x<2 ? 3 : 4"
std::string th1ToFormulaLin(const TH1* hist) {
int nbins = hist->GetNbinsX();
TAxis * axis = hist->GetXaxis();
TAxis const* axis = hist->GetXaxis();
std::stringstream buff;
buff << "x<" << axis->GetBinLowEdge(1) << " ? 0. : "; // default value
for (int i=1; i<nbins+1; ++i) {
Expand Down Expand Up @@ -194,7 +194,7 @@ BTagEntry::BTagEntry(const TH1* hist, BTagEntry::Parameters p):
params(p)
{
int nbins = hist->GetNbinsX();
TAxis * axis = hist->GetXaxis();
TAxis const* axis = hist->GetXaxis();

// overwrite bounds with histo values
if (params.operatingPoint == BTagEntry::OP_RESHAPING) {
Expand Down Expand Up @@ -328,7 +328,7 @@ void BTagCalibration::readCSV(std::istream &s)
}
}

void BTagCalibration::makeCSV(ostream &s) const
void BTagCalibration::makeCSV(std::ostream &s) const
{
s << tagger_ << ";" << BTagEntry::makeCSVHeader();
for (std::map<std::string, std::vector<BTagEntry> >::const_iterator i
Expand Down

0 comments on commit 724ea6c

Please sign in to comment.