Projection Form C++ code

Hello Rooters

I’d like to get C++ code of projection form that we reach when we click right on a TH2.
( see snapshot in attachement)
I can’t find it in ROOT code.
It’s for using in a other application.

Thanks for you help.

Luc

Hi Luc,

[quote=“legeard”]Hello Rooters

I’d like to get C++ code of projection form that we reach when we click right on a TH2.
( see snapshot in attachement)
I can’t find it in ROOT code.
It’s for using in a other application.

Thanks for you help.

Luc[/quote]

As a general method that may work, make the plot you want by right-clicking on it and then save it as ‘canvas.C’. This macro should have the code needed to generate the plot. (Even if this doesn’t work in this particular case, it is a very nice feature for figuring out questions just like this).

Good luck,
Charles

Thanks for you answer, but i didn’t want plot code but the graphical form code that send in attachement.

Luc

The attachment do not accept *.jpg pictue !! so no attachment!

Luc