Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interface/HiggsCSandWidth.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion interface/HiggsCSandWidthSM4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion macros/compareThetaCombine.C
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion macros/plotTanb.C
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TH2D* higgsConstraint(const char* model, const char* type)
for(double mass=masslow; mass<masshigh+1; mass=mass+massstep){
std::string line;
float tanb, mh, mA, mH, mHp;
ifstream higgs (TString::Format("HiggsAnalysis/HiggsToTauTau/data/Higgs125/%s/higgs_%d.dat", model, (int)mass));
std::ifstream higgs (TString::Format("HiggsAnalysis/HiggsToTauTau/data/Higgs125/%s/higgs_%d.dat", model, (int)mass));
if(higgs.is_open()){
while(higgs.good()){
getline(higgs,line);
Expand Down
2 changes: 1 addition & 1 deletion src/PlotLimits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ PlotLimits::higgsConstraint(const char* model, const char* type)
for(double mass=masslow; mass<masshigh+1; mass=mass+massstep){
std::string line;
float tanb, mh, mA, mH, mHp;
ifstream higgs (TString::Format("HiggsAnalysis/HiggsToTauTau/data/Higgs125/%s/higgs_%d.dat", model, (int)mass));
std::ifstream higgs (TString::Format("HiggsAnalysis/HiggsToTauTau/data/Higgs125/%s/higgs_%d.dat", model, (int)mass));
//std::cout << TString::Format("HiggsAnalysis/HiggsToTauTau/data/Higgs125/%s/higgs_%d.dat", model, (int)mass) << std::endl;
if(higgs.is_open()){
while(higgs.good()){
Expand Down
18 changes: 9 additions & 9 deletions src/PrintLimits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PlotLimits::print(const char* filename, std::string& xval, std::string& yval, std::vector<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) "
Expand All @@ -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
Expand All @@ -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) "
Expand All @@ -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
Expand All @@ -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}$";
Expand Down Expand Up @@ -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
<< "#"
Expand Down Expand Up @@ -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}$"
Expand Down Expand Up @@ -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
<< "#"
Expand Down Expand Up @@ -301,7 +301,7 @@ PlotLimits::print(const char* filename, TGraph* expected, TGraph* observed, cons
void
PlotLimits::print(const char* filename, std::vector<TGraph*> minus2sigma, std::vector<TGraph*> minus1sigma, std::vector<TGraph*> expected, std::vector<TGraph*> plus1sigma, std::vector<TGraph*> plus2sigma, std::vector<TGraph*> 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
Expand Down