Home | News | Documentation | Download

ROOT's equivalent of PAW's "vlocate"?

Hello

I am interested in the ROOt’s equivalent of PAW’s vlocate.
In the following link root.cern.ch/drupal/content/how-convert-paw, it looks like the equivalent is implemented via CutG. TCutG works fine but it’s not convenient in a macro.

For example, using PAW , we can have a kumac like :

h/plot 10
vlocate vx vy *s
v/fit vx vy ! p1

How can I do the same thing via ROOT ?

Cheers

Hicham

PS : I don’t have to modify my kumac every time I have to change vx and vy.

see TPad::WaitPrimitive
root.cern.ch/root/html/TPad.html … tPrimitive

Rene

You want me to do something like :

hdee->Draw(“COL”);
c1->WaitPrimitive(“CUTG”);
TCutG cut = (TCutG)gPad->GetPrimitive(“CUTG”);
That’s fine, thank you …

Hicham

PS : Is there any command line to call TCutG instead of clicking on the Graphical cut button ?