\START RGSEARCH_RCP \SIZE 187 79 !---------------------------------------------------------------------- ! Name: RGSEARCH.RCP ! Package: ! Library: ! Purpose: To find best conventional cuts! ! Version ! Created: 27-APR-1995 Harrison B. Prosper, Chip Stewart ! Updated: 1995-96 Pushpa Bhat, Harrison Prosper ! Updated: 1997 Susan K. Blessing Allow use of ! absolute value, upper and lower limits on cuts. !---------------------------------------------------------------------- ! List only the variables to be used in the search. If, however, ! a variable is prefixed with a * then that variable is NOT used ! but is simply written out to the output ntuple. The * must be ! first if there is more than one prefix. ! ! An '@' prefix indicates that the value is to be used to weight ! the event in the sum of signal and background. ! ! To use the absolute value of a variable, use a | as a prefix. ! To make the cut a lower limit (default), use a > as a prefix. ! To make the cut an upper limit, use a < as a prefix. ! More than one prefix may be used (e.g. |> -- I wouldn't recommend ! <>!) ! ! To impose a minimum lower limit or a maximum upper limit, put a ! number after the cut name. ! ! To impose a fixed cut, use the > or < prefix with an = sign. !---------------------------------------------------------------------- \ARRAY PATTERNS_INPUTS 'ETB1' 'ETB2' 'MJJ' ! 'HT3' ! 'DRJ1J2' \END !---------------------------------------------------------------------- ! NTUPLE IDs for INPUT and OUTPUT ntuples !---------------------------------------------------------------------- CUT_NTUPLE_ID 2 ! ID of Ntuple containing cuts INP_NTUPLE_ID 2 ! ID of INPUT NTUPLE(s) OUT_NTUPLE_ID 1 ! ID of OUTPUT NTUPLE REPORT 500 ! Report every REPORT cuts INCLUDE_MOMENTS FALSE ! Include average and sigma of quantities ! in output ntuple. !------------------------------------------------------------------------------ ! NTUPLE CONTAINING CUTS !---------------------------------------------------------------------- \ARRAY CUT_NTUPLE 'wh120.rwn' \END !------------------------------------------------------------------------------ ! NTUPLES TO BE PROCESSED ! Format: FILE LABEL NPATTERN CATEGORY (WEIGHT) ! FILE lists the input row-wise ntuples ! LABEL is used in the output ntuple name ! NPATTERN is the maximum number of events to be used from the file. ! NPAT=0 will use all the events in the file. ! CATEGORY is the string BKG for background and SIG for anti-background ! (WEIGHT) is an optional parameter giving each file a characteristic ! event weight. !---------------------------------------------------------------------- \ARRAY INP_NTUPLE 'wh120.rwn S 0 SIG' 'wbb.rwn B 0 BKG' \END !---------------------------------------------------------------------- ! OUTPUT NTUPLE CONTAINING RESULTS OF SEARCH !---------------------------------------------------------------------- \ARRAY OUT_NTUPLE 'rgs.rwn' \END !---------------------------------------------------------------------- ! OPTIMAL BOUNDARY PARAMETERS ! The optimal boundary search is done in bins of background events ! maximizing the signal in each bin. The values of the ntuple variables ! for the optimal boundary are put into an another ntuple. ! Setting OPTIMIZE_ID to 0 will suppress the creation of this ntuple. !---------------------------------------------------------------------- OPTIMIZE_ID 0 !Id of ntuple containing optimal boundary OPTIMIZE_BINS 100 !Number of background bins OPTIMIZE_MAX_BKG 100.0 !Maximum background range OPTIMIZE_SIGMAS 2.0 !width of optimal boundary in sigmas \STOP ! RGSEARCH_RCP