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

Making a MC version of a TCK

To make an MC TCK from a pre-existing data TCK, Setup the latest version of Moore (independent of the version 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"

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

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"

And now you need to put it into a release request for TCK/HltTCK You may potentially need to tag and request release of AppConfig - check with the simulation people first to see if they plan to commit other important updates soon.

Go here: Login, select Create, change the issue to "task", and specify TCK/HltTCK with the right version number. Not every box needs to be filled in. 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.

--Main.WilliamBarter - 2016-10-05

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r9 - 2016-11-01 - MarkWhitehead
    • 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