(help) hist: change marker style to bin line

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.

Try the option HIST: root.cern.ch/root/html/THistPainter.html#HP01a

I have tried " m_hist->Draw(“L”), but nothing changed.

try:

m_hist->Draw(“HIST L”)

[quote=“couet”]try:

m_hist->Draw(“HIST L”)[/quote]

yes, it works, thanks! But the problem is the “L” is just the line connects all the events, what option I have to use to make a plot as shown in the article I attached?

put only HIST as I said 1st … remove the L

Thankssss, it works!
Unfortunately, a new problem arised. The events for m_hist in x-axis lie between 0-250, but for m_hist2 is only distribute from 0-30. When I did this for m_hist2, m_hist2->Draw(“HIST sames”), it draws the line I wanted but there is a tail lie on the x-axis from 30 to 250. How can I get rid of this tail line?

Draw m_hist2 1st

opps…The problem remain… :cry:

Send me a small macro I can run reproducing the problem.