Back Midas Rome Roody Rootana
  Root Display GUI  Not logged in ELOG logo
Entry  05 Oct 2004, John M O'Donnell, Suggestion, displaying and selecting cuts 
    Reply  20 Dec 2004, John M O'Donnell, Bug Fix, displaying cuts implementation cut_display.patch
       Reply  07 Jan 2005, John M O'Donnell, Bug Fix, displaying cuts implementation 
          Reply  10 Jan 2005, Stefan Ritt, Bug Fix, displaying cuts implementation 
       Reply  13 Jan 2005, John M O'Donnell, Bug Fix, displaying cuts implementation 
Message ID: 81     Entry time: 13 Jan 2005     In reply to: 78
Author: John M O'Donnell 
Topic: Bug Fix 
Subject: displaying cuts implementation 
I have just sent a MIDAS patch to Stefan so that:

(1) cuts should be booked using TCutG *cut_book( const char *name).
    Usage is similar to h1_book etc.

(2) cuts are saved in last.root.

(3) cuts are restored from last.root.

I also fixed a bug in receiving cuts from ROODY.  The search for
cuts should be made only in gManaHistosFolder, not from gROOT.
Should this also be the case for GetPointer etc.?

I believe this implements a first pass at handling TCutG for MIDAS and ROODY.
To create a cut from scratch, one declares it in the analyzer init functions
using cut_book, and saves the pointer for use in the event-by-event code.
Then in ROODY, create a polygon, name it and send it to the analyzer (right click
on the polygon).

I believe the patchs which I have made should also be applied to ROME.

John.
ELOG V3.1.4-2e1708b5