{ //=========Macro generated from canvas: Spacepoint_Types_in_Stations/Spacepoint_Types_in_Stations //========= (Thu Jun 30 00:13:16 2016) by ROOT version5.34/30 TCanvas *Spacepoint_Types_in_Stations = new TCanvas("Spacepoint_Types_in_Stations", "Spacepoint_Types_in_Stations",65,52,800,600); Spacepoint_Types_in_Stations->SetHighLightColor(2); Spacepoint_Types_in_Stations->Range(1.75,-14807.41,4.25,234232.2); Spacepoint_Types_in_Stations->SetFillColor(0); Spacepoint_Types_in_Stations->SetBorderMode(0); Spacepoint_Types_in_Stations->SetBorderSize(2); Spacepoint_Types_in_Stations->SetFrameBorderMode(0); Spacepoint_Types_in_Stations->SetFrameBorderMode(0); TH1D *SP_Type = new TH1D("SP_Type","Space Point Type Across All Stations",3,1,4); SP_Type->SetBinContent(2,19132); SP_Type->SetBinContent(3,199841); SP_Type->SetEntries(218973); TPaveStats *ptstats = new TPaveStats(0.78,0.775,0.98,0.935,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); TText *text = ptstats->AddText("SP_Type"); text->SetTextSize(0.0368); text = ptstats->AddText("Entries = 218973 "); text = ptstats->AddText("Mean = 3.413"); text = ptstats->AddText("RMS = 0.2824"); ptstats->SetOptStat(1111); ptstats->SetOptFit(0); ptstats->Draw(); SP_Type->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(SP_Type); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); SP_Type->SetLineColor(ci); SP_Type->GetXaxis()->SetRange(2,3); SP_Type->GetXaxis()->SetLabelFont(42); SP_Type->GetXaxis()->SetLabelSize(0.035); SP_Type->GetXaxis()->SetTitleSize(0.035); SP_Type->GetXaxis()->SetTitleFont(42); SP_Type->GetYaxis()->SetLabelFont(42); SP_Type->GetYaxis()->SetLabelSize(0.035); SP_Type->GetYaxis()->SetTitleSize(0.035); SP_Type->GetYaxis()->SetTitleFont(42); SP_Type->GetZaxis()->SetLabelFont(42); SP_Type->GetZaxis()->SetLabelSize(0.035); SP_Type->GetZaxis()->SetTitleSize(0.035); SP_Type->GetZaxis()->SetTitleFont(42); SP_Type->Draw(""); TPaveText *pt = new TPaveText(0.1665075,0.9343728,0.8334925,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); text = pt->AddText("Space Point Type Across All Stations"); pt->Draw(); Spacepoint_Types_in_Stations->Modified(); Spacepoint_Types_in_Stations->cd(); Spacepoint_Types_in_Stations->SetSelected(Spacepoint_Types_in_Stations); }