TWiki> LHCb Web>LHCbTCK>L0TCKPVSS (revision 2)EditAttachPDF
To enable/disable a trigger channel and to change a downscaling fraction
  • Open the L0DU FSM
    • On windows: G:\online\ecs\Shortcuts38\TRG\TRGL0DU\TRGL0DU_UI_FSM
    • On linux: /group/online/ecs/Shortcuts38/TRG/TRGL0DU/TRGL0DU_UI_FSM.sh
  • Open the L0DU panel
    • Double click on LODU_1
  • Go to the tab ’Algorithm’ and then to the sub-tab ‘Recipes’
    • Select the algorithm you want to start with
    • Click on ‘View Algorithm’
    • Make sure this is really the algorithm you want to start with
  • Go to the sub-tab ‘Trigger Channels’
    • Click on ‘Load’
    • Select the algorithm you want to start with
  • Go to the sub-tab ‘Conditions’
    • Click on ‘Update’ and then on ‘Save’
    • This is necessary even if you should not change anything here
      • The only thing you may be authorized to change on elementary conditions would be thresholds: for that the simplest way is different, it is explained at the end of this tutorial
  • Go back to the sub-tab ‘Trigger Channels’
    • Update the enables that you have to change
      • Make sure to select the right line
      • Right click ever in the column ‘Phys’, ‘B1G’ or ‘B2G’ depending on what you want
    • Update the downscaling fractions you have to change
      • Make sure to select the right line, left click in the column ‘Rate’
      • Put the right number
        • This is in per mil so 1000 mean no downscaling and for instance 25 mean a downscaling of 1/40 (25/1000)
      • Click Enter (mandatory!)
  • Still in the sub-tab ‘Trigger Channels’
    • Click on save
      • Write the name of the new algorithm
        • Make sure this name is not already taken (see sub-tab ’Algorithm’)
        • ‘_0xABCD’ (where ‘ABCD’ is the TCK number in hexadecimal) will automatically be appended to the name
      • Eventually put a comment
      • Write the TCK of the new algorithm
        • As ‘0xABCD’ where ‘ABCD’ is the TCK number in hexadecimal
        • Make sure this TCK is not already taken (see sub-tab ’Algorithm’)
  • Go to the sub-tab ‘Algorithm’
    • Your new algorithm should appear in the list
      • The list is in alphabetic order (upper/lower case sensitive)
    • Select it and click on ‘View Algorithm’
      • Make sure you did the right changes
    • Click on ‘Export to file’
      • Select your new algorithm
      • Click on the single right arrow
    • Click on the directory icon
      • Browse to the directory where you want to save the file
        • For instance G:\trg\l0\pvss\fwComponents_TRGL0DU\panels\fwL0DU\data
      • Write the name of the options file
        • For instance NewAlgo_0xABCD.opts (where ‘ABCD’ is the TCK number in hexadecimal)

To change a threshold

  • Open the L0DU FSM
    • On windows: G:\online\ecs\Shortcuts38\TRG\TRGL0DU\TRGL0DU_UI_FSM
    • On linux: /group/online/ecs/Shortcuts38/TRG/TRGL0DU/TRGL0DU_UI_FSM.sh
  • Open the L0DU panel
    • Double click on LODU
  • Go to the tab ’Algorithm’ and then to the sub-tab ‘Recipes’
    • Select the algorithm you want to start with
    • Click on ‘View Algorithm’
    • Make sure this is really the algorithm you want to start with
    • Click on ‘Export to file’
      • Select the algorithm you want to start with
      • Click on the single right arrow
    • Click on the directory icon
      • Browse to the directory where you want to save the file
        • For instance G:\trg\l0\pvss\fwComponents_TRGL0DU\panels\fwL0DU\data
      • Write the name of the options file
        • For instance OldAlgo_0xABCD.opts (where ‘ABCD’ is the TCK number in hexadecimal)
  • Copy OldAlgo_0xABCD.opts to NewAlgo_0xWXYZ.opts (where ‘WXYZ’ is the new TCK number in hexadecimal)
  • Edit NewAlgo_0xWXYZ.opts
    • Change the threshold(s) you want to change
      • Please to not forget to change the name of the elementary condition accordingly if needed
        • In the line defining the elementary condition itself but also in all the lines corresponding to the trigger channels in which this elementary condition is used
    • Change the TCK in the line starting with "ToolSvc.L0DUConfig.registerTCK"
    • Change the TCK in all the lines starting with "ToolSvc.L0DUConfig.TCK_0x"
    • Change the algorithm name in the line starting with "ToolSvc.L0DUConfig.TCK_0xWXYZ.Name"
    • Eventually update the description in the line starting with "ToolSvc.L0DUConfig.TCK_0xWXYZ.Description"
    • Save the option file
  • Go to the sub-tab ‘Recipes’ on the L0DU panel
    • Click on ‘Import from file’
      • Select your new algorithm (browsing as explained above)
      • Click 'Save' and then 'Yes'
    • Your new algorithm should appear in the list on the sub-tab ‘Recipes’ of the L0DU panel
      • The list is in alphabetic order (upper/lower case sensitive)
    • Select it and click on ‘View Algorithm’
      • Make sure you did the right changes and that everything is fine

For more information

-- RegisLefevre - 04-Jun-2010

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2010-06-18 - EricvanHerwijnen
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback