Content in pad changes after left clicking

Excatly I just noticed it too.

you should do:

   TH1D *hpx = h2->ProjectionX("px", 1, 40);
...
   TH1D *hpy = h2->ProjectionY("py", 1, 40);
...
1 Like