I’m trying to use TMarkers to draw a rolling average on top of a histogram while I scan over the values of the histogram to make sure my rolling average code is working. However, I can’t seem to draw multiple TMarkers in a ROOT macro and I am looking at a compiled program I wrote a year ago where I was able to get it to work (using TMarker::DrawMarker to draw multiple copies). Can someone point out why the following macro doesn’t produce any TMarkers on the canvas? Or how to fix it? Thanks you.
[code]{
TCanvas* c1 = new TCanvas();
TH1F* h1 = new TH1F("h1", "h1", 100, 0, 10);
h1->FillRandom("gaus");
h1->Draw();
TMarker* mark;
for(int i=0; i>10; i++) {
    mark = new TMarker(i, i*10, 23);   // Does this die outside the loop?
    mark->SetMarkerStyle(23);
    mark->SetMarkerColor(kRed);
    mark->Draw();
}
}[/code]

