I am just learing to use ROOT and I am plotting a histogram with comparing two different graphs. The graphs were read from the root file and I apply atlas style in this plot. The histogram I created was in marker style, however what I really want is make this histogram to a bin line. An example of the histogram I wanna created can be seen from article: cdsweb.cern.ch/record/1303610/fi … 09-153.pdf . page 32, figure 4.2. How can I change the marker style to the bin line? Following is my code:
{
gROOT->LoadMacro(“AtlasStyle.C”);
gROOT->LoadMacro(“AtlasUtils.C”);
SetAtlasStyle();
TFile myFile(“test.root”);
TH1F* m_Hist = (TH1F*)myFile.Get(“testplot0”);
TCanvas c1;
c1.SetLogy();
c1.SetGridx();
c1.SetGridy();
m_Hist->SetTitle(“test; GeV; entries”);
m_Hist->SetMarkerColor(1);
m_Hist->SetLineColor(1);
m_Hist->Rebin(4);
m_Hist->GetXaxis()->SetRangeUser(0.0,250.0);
m_Hist->Draw();
TH1F* m_Hist2 = (TH1F*)myFile.Get(“testplot1”);
m_Hist2->SetMarkerColor(2);
m_Hist2->SetLineColor(2);
m_Hist2->Draw(“sames”);
}
Thanks.