15 :
file_(
new TFile(filename.c_str(),
"READ")),
55 std::cout <<
"find " << name <<
"\t" << std::flush;
63 std::cout <<
"legend: " << (state?
"true\t":
"false\t") << std::flush;
64 if(!state) {
legend_=0;
return *
this;}
69 std::max( data_stats.size(), sim_stats.size()) );
71 if(
left_)
legend_ =
new TLegend(0,0.75,maxlength*0.015,1.0);
72 else legend_ =
new TLegend(1.0-maxlength*0.015,0.75,1.0,1.0);
83 ss <<
"N: " << hist->GetEntries() <<
", "
84 <<
"#mu: " <<
round_string()(std::make_pair(hist->GetMean(),hist->GetMeanError())) <<
", "
85 <<
"#sigma: " <<
round_string()(std::make_pair(hist->GetRMS(),hist->GetRMSError()));
86 return ss.str().c_str();
93 sim_->GetXaxis()->SetLabelSize(0.05);
sim_->GetXaxis()->SetTitleSize(0.05);
94 sim_->GetYaxis()->SetLabelSize(0.05);
sim_->GetYaxis()->SetTitleSize(0.05);
102 TH1* sim_errors = (TH1*)
sim_->Clone((
histName_+
"_clone").c_str());
103 sim_->SetLineColor(kRed);
104 sim_errors->SetFillColor(kRed);
105 sim_errors->SetFillStyle(3244);
106 data_->SetMarkerStyle(20);
108 TCanvas
c(
"c",
"",800,600);
109 if(
logy_) c.SetLogy();
112 sim_errors->Draw(
"e2same");
const std::string simLocation_
Overlayer & logy(bool state=true)
Overlayer & find(std::string)
const TString datadir("/src/Fireworks/Core/")
const std::string dataLocation_
Overlayer & withLegend(bool state=true)
Overlayer & xlabel(std::string s)
Overlayer(std::string filename, std::string datadir, std::string simdir, Color_t color)
std::string getStats(const TH1 *const) const
Overlayer & legendLeft(bool state=true)
Overlayer & ylabel(std::string s)