Hello,
if I use the “Graphical Cut” tool from a pad’s toolbar, I can “see” the created cut by using
root [23] gPad->ls()
Canvas Name=c1 Title=c1 Option=
TCanvas fXlowNDC=0 fYlowNDC=0 fWNDC=1 fHNDC=1 Name= c1 Title= c1 Option=
TFrame X1= 0.000000 Y1=0.000000 X2=250.000000 Y2=250.000000
OBJ: TH2F MCvsRPEnHigh MCvsRPEnHigh : 0 at: 0xa13e340
OBJ: TPaveText title X1= -28.125001 Y1=262.208689 X2=52.209051 Y2=279.687503
OBJ: TCutG CUTG Graph : 0 at: 0xa2e2d60
But I cannot use the cut:
MCvsRPEnHigh->Draw("[CUTG]");
draws the full histogram.
If I clone the cut with
CUTG->Clone("mycut");
the cloned cut works fine:
MCvsRPEnHigh->Draw("[mycut]");
Suprisingly, just to clone the cut is not enough
CUTG->Clone();
MCvsRPEnHigh->Draw("[CUTG]");
Is there a way to use the cut directly, without cloning the cut?
Cheers, J.