Re-using a TCK from a previous version of Moore

To keep the number of TCKs as small as possible it makes sense, for simple configurations, to re-use them. Before doing this, the old TCK should be "blessed'. The following procedure assumes you are in the online area.
  • Go to /group/hlt/MOORE/MooreOnlinePit_vXrY
  • Before you do ANYTHING back up the config.cdb file from TCK/HltTCK in case you make a mistake. If you do, just copy your backup file back and start over.
  • ./run bash
  • TCKsh
  • listConfigurations()
  • Find the long IDs of the TCKs which you want to bless. The long ID is the second entry in each triplet of TCK_HEX_KEY : LONG ID : TCK DESCRIPTOR, for example "4f099246bfee3603a8780a8e4d5dfa31" in "0x809f0000 : 4f099246bfee3603a8780a8e4d5dfa31 : Hlt_PassThrough"
  • Replace the required TCK ids in the following example script with the TCK ids you want to bless. Notice that the name (for example 'Calibration_VeloMicroBias' or 'PassThrough' below) of each set of TCK ids corresponds to the header of each set of TCKs which listConfiguration returns, e.g. "Commissioning_Physics_2015" in
    Commissioning_Physics_2015
      0x00c00044 : cfb99cfb7ac95d204e3f6b217c03ed65 : 2015 Commissionning Tests
      0x00c00046 : cbd655946bda784c5885d433499e9824 : 2015 Commissionning Tests
      0x00c20046 : f9b5c429151ec3f4c7845cd47ee4cd50 : 2015 Commissionning Tests w. Calib Lines
  • The script to run is then
from TCKUtils.utils import *

bless = [ ( 'Calibration_VeloMicroBias', [ '3336d097506f653777f904586b585191'
                              ] )
        , ( 'PassThrough' , [ 'd7729757255943112dbfd53aca01c899'
                             , '90f307c12f9b3380d345c60fbb95780a'
                              ] )
        ]

x = createAccessSvcSingleton( cas = ConfigAccessSvc(Mode='ReadWrite'))
for (tp, ids) in bless :
    for id in ids :
        print tp,id
        c = x.resolveConfigTreeNode(id)
        t = topLevelAlias('MOORE_v12r8',tp,c)
        x.writeConfigTreeNodeAlias(t) 
        print 'wrote %s' % t
  • cd TCK/HltTCK
  • ./scripts/createTCKmanifest config.cdb manifest
  • cp manifest/MOORE_vXrY ../../InstallArea/manifest
  • Test the new TCK with FEST
  • If all is ok, svn commit the new config.tar file to TCK/HltTCK. No new release is required immediately online since the TCK numbers already exist.
  • Update the configurations for LHCb
-- EricvanHerwijnen - 07-Sep-2011
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2016-04-22 - ConorFitzpatrick
 
    • 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-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