trigger_rate_tool



The trigger_rate_tool is  a D0 framework package used to estimate trigger rates in data.  It allows the computation of the rates and overlaps of individual as well as sets of triggers.  It can predict trigger rates at all levels (L1,L2,L3) for large and complicated global trigger lists. 

The tool consists of two parts. The first one (built using the instructions in the bin directory) is a framework executable which uses the information contained in the TMBTriggerChunk (the L1/L2/L3 trigger names/bits and the AndOr mask) and in the L1L2Chunk (the detailed readout of the L1 and L2 trigger information) to emulate different L1 and L2 triggers (L3Chunk for L3 triggers). It produces in output a simple ASCII file which for each event contains the list of triggers. The second part consists of the standalone Rates executable.

Here is the cookbook (always being updated) for checking out trigger_rate_tool:

setup D0RunII p17.09.00 -O SRT_QUAL=maxopt
setenv LINK_SHARED yes
setup d0cvs
newrel -t p17.09.00 TRT
cd TRT
addpkg trigger_rate_tool v00-03-06
addpkg l1cal2b_sliding_windows v00-01-00
gmake all

You can use this script to find L1/L2 rates from the enhanced bias run 203351, which generates a file l1l2l3trigger.dat in the GenerateTriggerTable_x-p17.08.00-maxopt-Linux-run203351 directory which contains the list of triggers that fired for every event.   Then you need to run trigger_rate_tool/scripts/convertTriggerDump.py (in a new area which also contains l1l2l3trigger.dat) which generates two additional files you need: l1l2l3trigger.dump and l1l2l3trigger.dict . These are the files you need for simulating the trigger rates with the Rates program (available in the shbin directory). To run this program on the triggers you are interested in, copy the executable to your working directory, create a trigger list file (example), then you obtain an output ascii file with the rates using the following command:
                                                                                
Rates trigger_list > Trigger_Rates.txt
 


***************************************************************************************************
Run 204974 can be used for L3 trigger studies.  The data have been reconstructed using p17.03.03 d0reco and are available on disk:
     Tips:
****************************************************************************************************