Hi Masoud, You have 3 possibilities 1: Use SaveAs canvas.C in the canvas "File" menu. This will generate a script to reproduce later the canvas, including the few lines of code to rebuild the graphical cut. 2: Save your cut in a Root file: The default name for a TCutG is "CUTG". You can change this name using the context menu item "SetName". Now you can do: TFile f("mycut.root","recreate"); mycut.Write(); and in a new session, do: TFile f("mycut.root"); mycut.Draw(); or TCutG *mycut = (TCutG*)f.get("mycut"); 3- a subset of 1, writing only the TCutG in the ascii file ofstream out("mycut.C") mycut.SavePrimitive(out,""); out.close(); Rene Brun On Thu, 10 Oct 2002, Masoud M.Shafiei wrote: > Hi Rotors, > > There used to be a possibility in paw to save and restore graphical cuts > for future uses. > However I looked into the root manual to see a conterpart but I didn't > see anything. > > Would you tell me, How can I save and restore Graphical cuts in root? > > thanks in advance > Masoud >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:14 MET