Drawing x = const

Hi,

I want to draw a simple line parallel to the y axis at a given x value on top my TH1 histogram + TF1 function showing where my cut is. How can I achieve this?

Thanks in advance,
Ivan

One possible way:

TLine *l = new TLine(x,y1,x,y2);
l->Draw();

Thanks for the reply.
I realized a few minutes after I sent the post that the reason of not seeing the line is in other part of my script. Anyway, I tried to delete the post (as a stupid one I admit :blush:), but hitting the edit button did not give me an option to do so. Is it possible to delete an initial post + the whole topic?

In principle clicking the X button should make it. But that’s fine leave it. It may help some other users.