TWiki> LHCb Web>LHCbTCK>MCTCK (revision 7)EditAttachPDF

Making a MC version of a TCK

To make an MC TCK from a pre-existing data TCK, Setup the version of Moore corresponding to the TCK you want to make an MC TCK for:

SetupProject Moore vXXX --build-env

Then check out the head of HltTCK:

getpack TCK/HltTCK head
cd TCK/HltTCK/cmt
cmt make

Then setup this Moore version:

SetupProject Moore vXXX

And run TCKsh. In TCKsh import the createMCversion module and feed it your data TCK:

from TCKUtils.createMCversion import *

You'll see it dump the new TCK as well as a diff of the old with the new. If everything worked, the only differences will be AcceptFractions from the prescalers being set to 1 instead of prescaled as in data. If you then do a listConfigurations() your new MC TCK should appear under the right version of Moore.

Edit the release notes of TCK/HltTCK to reflect the addition of a new MC TCK, then commit:

svn commit -m "added new TCK 0x40XXXXX for whatever reason"

Once that is done, you need to add it to Appconfig:

getpack AppConfig head
cd AppConfig/options/Conditions

Copy one of the existing TCK-*.py files over to your TCK's name:


Then edit the file to contain your TCK:

from Configurables import Moore
Moore().InitialTCK = '0x40XXXXXX'

Finally, svn add this file, change the release notes and commit:

svn add
vim ../../doc/release.notes
svn commit -m "added new TCK 0x40XXXXX for whatever reason"

You can now tag the package: Edit the doc/release notes and cmt/requirements with the new package version (increment the revision number) Then:

tag_package TCK/HltTCK vXrYY

And now you need to put it into a Savannah release request.

Go here: Login, select Tasks->Submit, and specify TCK/HltTCK with the right version number. Once the form is filled out click submit.

Lastly, contact the production people so that they know to release a new Appconfig and you're done.

-- ConorFitzpatrick - 26-Sep-2013

Edit | Attach | Watch | Print version | History: r11 | r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r7 - 2015-06-01 - WilliamBarter
    • 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