To use it, just type the following commands (no need to be at fnal):
chmod +x ./getRequestsList_v2 (cause exe mod not preserved during download)
chmod +x ./getRequestsList (cause exe mod not preserved during download)
chmod +x ./getRequestsList_caf
Be sure to use a recent version of python. At Fnal: setup python v2_4_5 works
getRequestsList --help
getRequestsList_caf --help (same help as previous script)
This will give you some help. Several options are available to filter on. For each "filtering" option, there is a corresponding "listing" option, that lists all the possible values for this option.
Some working examples
Simple examples. The following commands will help you to understand how to use this tool.
./getRequestsList alpgenpythia p17 --processes list of available processes
./getRequestsList alpgenpythia p17 -p gam-z+0lp --decays list of available decays for process gam-z+0lp
./getRequestsList alpgenpythia p17 -p gam-z+0lp -d mumu list of request ids matching the criteria
./getRequestsList alpgenpythia p20 -p t+t+1lp -d 2l+2nu+2b -g p20.09.03 -r p20.09.03 --InfoTop list of request ids matching more targeted criteria, add the top mass info in the listing
./getRequestsList_caf alpgenpythia p20 -p t+t+1lp -d 2l+2nu+2b -g p20.09.03 -r p20.09.03 --InfoTop same as above but only list requests which have caf-trees, the number of events is the number in caf-trees
More advanced usage.
This script also supports regular expressions (see Regular Expressions for a tour of possible regular expressions) but the '+' character. Therefore, following commands are valid:
./getRequestsList alpgenpythia p17 -p gam-z+0lp -g "p17.09.0[678]" lists requests corresponding to process gam-z+0lp generated with either p17.09.06 or p17.09.07 or p17.09.08
./getRequestsList pythia p17 -p ".*w.*" -g "p17.09.0[678]" lists any process with a W and generated with either p17.09.06 or p17.09.07 or p17.09.08
Caveat
Special productions such as single top (CompHep), single pion, electrons... won't appear in this listing since they are difficult to spot in sam. Basically, this is the case for all productions appearing in the unknown section of the CSG MC web pages.