How to make your own L3 trigger tcl file

In this page, I describe how to generate your own .tcl file for your favorite Level3 Trigger. In fact, the generated file consists in a piece of the L3 tcl file used to run the online Level3 executable (click here for one example). The file also contains the talk-to's that you can modify for you application.

Here is an example to generate the .tcl file for the ELECTRON_CENTRAL_4 trigger. Do not forget to change the PHYSICS_TABLE_NAME and PHYSICS_TABLE_TAG variables (look at the run summary if you do not know what they should be):

In your working directory, type:

  • addpkg -h Level3
  • setenv PHYSICS_TABLE_NAME PHYSICS_TEST_1_04
  • setenv PHYSICS_TABLE_TAG 6
  • setenv USER_L3TRIGGER ELECTRON_CENTRAL_4
  • gmake Level3.codegen
  • That's all.
    The output is located at : $(TOPDIR)/tmp/Linux2-KCC_4_0/Level3/tcl/NOT_A_TAG/user_l3trigger.tcl
    and should look like, for this particular example :

    #Physics Table name and tag are: PHYSICS_TEST_1_04, 6
    ****************************************************
    The required trigger is : ELECTRON_CENTRAL_4
    ****************************************************
    # creating instance L3EMFilterModule-electron4CentralTight_v1 of class L3EMFilterModule
    mod clone L3EMFilterModule electron4CentralTight_v1
    mod disable L3EMFilterModule
    # MAKE CLONE OF PREREQ MODULES
    #
    mod clone Prereq ELECTRON_CENTRAL_4_v8
    #
    mod disable Prereq
    #
    # CREATE, ENABLE AND SET BITS FOR TRIGGER PATHS
    #
    path create ELECTRON_CENTRAL_4_v8 Prereq-ELECTRON_CENTRAL_4_v8
    path enable ELECTRON_CENTRAL_4_v8
    mod talk Prereq-ELECTRON_CENTRAL_4_v8
    GetL1TriggerBitsFromTFRD set false
    GetL1TriggerBitsFromTL2D set true
    L1Accept set true
    L2Accept set false
    L2TriggerBits set 25
    L3Accept set true
    exit
    #
    path append ELECTRON_CENTRAL_4_v8 L3EMFilterModule-electron4CentralTight_v1
    #
    # TALK-TO FOR L3EMFilterModule-electron4CentralTight_v1
    #
    mod talk L3EMFilterModule-electron4CentralTight_v1
    commonMenu
    CalorRegion set 0
    exit
    centralMenu
    CesChiSqX set 15
    exit
    centralMenu
    CesChiSqZ set 10
    exit
    centralMenu
    LShr set 0.2
    exit
    centralMenu
    cenDeltaX set 3
    exit
    centralMenu
    cenDeltaZ set 5
    exit
    centralMenu
    cenEt set 4
    exit
    centralMenu
    cenHadEm set 0.125
    exit
    centralMenu
    cenHadEmCeiling set 9999
    exit
    centralMenu
    cenTrackPt set 4
    exit
    commonMenu
    nEmObj set 1
    exit
    exit
    #


    Comments, suggestions ? Contact Gilles De Lentdecker


    last updated: Aug 20 2003