diff --git a/interface/HiggsCSandWidth.h b/interface/HiggsCSandWidth.h index 27658eaf..e4b3b3cd 100644 --- a/interface/HiggsCSandWidth.h +++ b/interface/HiggsCSandWidth.h @@ -98,7 +98,7 @@ HiggsCSandWidth::HiggsCSandWidth() N_BR = 217; N_CS = 197; - ifstream file; + std::ifstream file; // Read Widths into memory FileLoc = std::string(getenv("CMSSW_BASE"))+std::string("/src/HiggsAnalysis/HiggsToTauTau/data/SM4/HiggsBR_7TeV_Official.txt"); //directory of input file diff --git a/interface/HiggsCSandWidthSM4.h b/interface/HiggsCSandWidthSM4.h index 1f49021b..de7620f2 100644 --- a/interface/HiggsCSandWidthSM4.h +++ b/interface/HiggsCSandWidthSM4.h @@ -121,7 +121,7 @@ HiggsCSandWidthSM4::HiggsCSandWidthSM4() N_CSE = 175; N_BR_gg = 6; - ifstream file; + std::ifstream file; double scratchHgg; // Read Widths into memory file.open((std::string(getenv("CMSSW_BASE"))+std::string("/src/HiggsAnalysis/HiggsToTauTau/data/SM4/Higgs_BR_SM4.txt")).c_str()); diff --git a/macros/compareThetaCombine.C b/macros/compareThetaCombine.C index fca5eefb..f3296b41 100644 --- a/macros/compareThetaCombine.C +++ b/macros/compareThetaCombine.C @@ -383,7 +383,7 @@ void compareThetaCombine(const char* filename, const char* channelstr, double mi TGraph* theta_graph = new TGraph(); int n=-1; // first entry is off - ifstream in ("theta/htt/nll.txt"); + std::ifstream in ("theta/htt/nll.txt"); while (in) { string line; getline (in, line); diff --git a/macros/plotTanb.C b/macros/plotTanb.C index 47ccce49..f31c271e 100644 --- a/macros/plotTanb.C +++ b/macros/plotTanb.C @@ -28,7 +28,7 @@ TH2D* higgsConstraint(const char* model, const char* type) for(double mass=masslow; mass contour, const char* type) { if(std::string(type) == std::string("tex")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".tex").c_str()); file << " " << std::setw(15) << std::right << xval << " (pb) " @@ -23,7 +23,7 @@ PlotLimits::print(const char* filename, std::string& xval, std::string& yval, st } } if(std::string(type) == std::string("txt")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".txt").c_str()); file << " " << std::setw(15) << std::right << xval @@ -45,7 +45,7 @@ void PlotLimits::print(const char* filename, std::string& xval, std::string& yval, TGraph* contour, const char* type) { if(std::string(type) == std::string("tex")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".tex").c_str()); file << " " << std::setw(15) << std::right << xval << " (pb) " @@ -62,7 +62,7 @@ PlotLimits::print(const char* filename, std::string& xval, std::string& yval, TG } } if(std::string(type) == std::string("txt")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".txt").c_str()); file << " " << std::setw(15) << std::right << xval @@ -82,7 +82,7 @@ void PlotLimits::print(const char* filename, TGraphAsymmErrors* outerBand, TGraphAsymmErrors* innerBand, TGraph* expected, TGraph* observed, const char* type) { if(std::string(type) == std::string("tex")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".tex").c_str()); file << " " << std::setw(15) << std::right << " $m_{\\mathrm H}$"; @@ -185,7 +185,7 @@ PlotLimits::print(const char* filename, TGraphAsymmErrors* outerBand, TGraphAsym file.close(); } if(std::string(type) == std::string("txt")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".txt").c_str()); file << "#" @@ -235,7 +235,7 @@ void PlotLimits::print(const char* filename, TGraph* expected, TGraph* observed, const char* type) { if(std::string(type) == std::string("tex")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".tex").c_str()); file << " " << std::setw(15) << std::right << " $m_{\\mathrm H}$" @@ -267,7 +267,7 @@ PlotLimits::print(const char* filename, TGraph* expected, TGraph* observed, cons file.close(); } if(std::string(type) == std::string("txt")){ - ofstream file; + std::ofstream file; file.open (std::string(filename).append(".txt").c_str()); file << "#" @@ -301,7 +301,7 @@ PlotLimits::print(const char* filename, TGraph* expected, TGraph* observed, cons void PlotLimits::print(const char* filename, std::vector minus2sigma, std::vector minus1sigma, std::vector expected, std::vector plus1sigma, std::vector plus2sigma, std::vector observed, double tanbLow, double tanbHigh, float *mass, const char* type) { - ofstream file; + std::ofstream file; if(std::string(type) == std::string("tex")){ file.open (std::string(filename).append(".tex").c_str()); file