Apply in an cut string in a selector

From: Arthur E. Snyder <snyder_at_slac.stanford.edu>
Date: Mon, 2 May 2011 16:31:59 -0700

I'm trying to apply cuts I'm given as a string (e.g., TString cuts) in a selector w/o having to re-code them by hand.

That is I have string |cuts| with cuts specified in it. With |Draw| I would do something like:

tup->Draw("var",cuts) (1)

I could also make a list of "events" with

tup->Draw(">>cutList",cuts); (2)

Is there some way I can apply this string of cuts inside a selector.

If I do (2) at begining can create |cutList|, but how to access it, so I can skip directly to the disired events in |Proccess|? Or is there some way I can apply cuts directly to the entry and do the selection in |Proccess|, i.e, just check if a given entry passes the cuts?

-Arthur S.

I think I could make a |TEventList| externally and pass it into my selector via a static |TEventList*|, but it seems awkward ... I'd like to just specify the string and let the program to the rest ..

A.E. Snyder, Group ?                         \!c*p?/
SLAC Mail Stop #95                          ((.   .))
Box 4349                                        |
Stanford, Ca, USA, 94309                      '\|/`
e-mail:snyder_at_slac.stanford.edu                 o
phone:650-926-2701                              _
http://www.slac.stanford.edu/~snyder          BaBar
FAX:707-313-0250                          Collaboration
                                                 &
                                            Fermi/GLAST
Received on Tue May 03 2011 - 01:32:13 CEST

This archive was generated by hypermail 2.2.0 : Thu May 05 2011 - 17:50:01 CEST