or, how to extract an HLT configuration from ConfDB.


Starting from CMSSW 3.8.x, it's possible to easily extract an HLT configuration from ConfDB using the hltGetConfiguration script, which should be available after running the cmsenv command. It is a wrapper around the bare-bone edmConfigFromDB script that knows how to massage an HLT menu, usually suited for running online, and adapt it to different purposes.

If some features seem to be missing from the script, it should be possible to take the HEAD of HLTrigger/Configuration/scripts and "scram b" it, in order to get the latest version of the script.


Running the command without options bring up some minimal documentation:

$ hltGetConfiguration
  hltGetConfiguration [--process <Name>] [--type <Type>]
                      [--globaltag <CMS.GlobalTag::All>] [--unprescale] [--l1 <L1_MENU_vX>]
                      [--data|--mc] [--cff|--full [--online|--offline [--dataset <DATASET>]]]
                      <HLT menu from ConfDB>

  --process          Override the process name [default is "HLT"]
  --type             Set global options acording to a specific HLT luminosity and type (GRun, 8E29, 1E31, HIon)
                     The default is to use the "GRun" settings, for rerunning an online-like menu on data and MC

  --globaltag        Use a specific CMS.GlobalTag (the default comes from the Type and the current PyRelVal configuration)
  --unprescale       Remove any HLT prescales
  --l1               Override the L1 menu, using the payload "L1GtTriggerMenu_<L1_MENU_vX>_mc" from the database

  --data             Prepare a menu for running on data (RAW in "source") [this is the default]
  --mc               Prepare a menu for running on MC (RAW in "rawDataCollector")
  --cff              Generate a stripped down configuration file fragment, for inclusion by e.g. cmsDriver.py
  --full             Generate a full configuration file, with minimal modifications [this is the default]
  --online           Take the online compliant connection string and CMS.GlobalTag from the menu [only valid in "full" mode]
  --offline          Override the connection string and CMS.GlobalTag with offline values [only valid in "full" mode, this is the default]
  --dataset          Take the input files from the specified DATASET [only valid for "offline" mode]

     using "--online" and "--mc" together is not supported (there is no online compliant CMS.GlobalTag for MC)
     using "--online/--offline" is meaingful only in conjunction with "--full"
     using "--dataset" is meaingful only in conjunction with "--offline"

Responsible: AndreaBocci
Last reviewed by: -- AndreaBocci - 30-Aug-2010

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-08-30 - AndreaBocci
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

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