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() <<
", "
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);
112 sim_errors->Draw(
"e2same");