ContourList.C

Hello,

I need to extract contours from a TH2 histogram, and I learnt how to do it, through the tutorial ContourList.C.
My question is if it’s possible to get the contour as a TGraph without physically drawing the contours on a canvas. I need to get the contours not for plotting purposes, but to use the information they enclose, and I have to run on a large number of events.
Is that possible?

Thank you

Paola

Before drawing (i.e. before creating the canvas), you could try to:
gROOT->SetBatch(kTRUE);
and afterwards (i.e. after deleting the canvas):
gROOT->SetBatch(kFALSE);

It works, thank you!

Paola