Independence Tests

How to run Hlt1 independence tests on the LSF batch or Dirac with ganga

The scripts now live in the Hlt/Hlt2CommissioningScripts package. You need to use MooreOnline rather than Moore, since this relies on the TupleHltDecReports tool which lives in Hlt/IndependenceTests which is only included in MooreOnline in recent releases.

SetupProject MooreOnline v24r1 --build-env
getpack Hlt/Hlt2CommissioningScripts
Now we need to get the list of Hlt1 and Hlt2 line names. Edit the following script to choose whatever settings you want.
python scripts/Independence/
Then we need to auto-generate the Moore scripts for the N + 1 lines (the +1 being the "all lines" version).
Then submit these to ganga
ganga -i scripts/Independence/
Once you have the "AllLines" job, and at least one single line job completed, you can run this script to list the location of the tuples in your gangadir
Finally, you can analyse the tuples

Older Instructions

For quick test (what is done in the nightlies) Setup:

SetupProject Moore v20r2 --build-env
getpack Hlt/IndependenceTests head 
cd Hlt/IndependenceTests
cd cmt 
cmt make 
cd ..
SetupProject Moore v20r2
Run the test like this:
python tests/options/
Can set various options, e.g.
python tests/options/ --Hlt1Lines=Hlt1TrackAllL0;Hlt1TrackMuon --Settings=Physics_September2012
And you can make random fake mismatches like this
python tests/options/ --fake_rate=0.8


* With Moore v14r5p2


The HLT consist of socalled trigger lines, each line being optimised to cover a certain class of events of interest. All lines operate independently. Their independence is checked by running all lines alone on a large NoBias sample, and making sure that the results are compatible with running all lines simultaneously.

The independence tests are run in the nightlies as part of the Moore tests. The trigger decisions of all Hlt1&2 lines individually are compared to the decisions when running all the lines together. If the decisions match, the message "No mismatches found." is printed. When something is wrong, a list of the mismatches are printed.

Organization of the code

The code is kept in the Moore svn repository, under the directory Moore/Hlt/IndependenceTests.


To run the independence tests use the command Moore/Hlt/IndepenceTests/tests/options/ as follows:


Working setup for Moore v13r4p1

SetupProject Moore v13r4p1 --build-env
cd ${User_release_area}/Moore_v13r4p1/
getpack Hlt/IndependenceTests v1r2p1
cd ${User_release_area}/Moore_v13r4p1/Hlt/IndependenceTests/
cd cmt; cmt make; cd ..;
Running on the LSF batch system requires the following setup (there is probably a better way of doing this).
which garbage.exe
cp `which garbage.exe` ${User_release_area}/Moore_v13r4p1/InstallArea/x86_64-slc5-gcc43-opt/bin
Add some raw data to your ganga box and submit to the LSF batch system.
SetupGanga v507r12
./ -d 2011 --version=v13r4p1 --backend=LSF --hlt1lines=all --hlt2lines=all -f \
  --settings='Physics_May2012' --dddbtag='head-20110914' --conddbtag='head-20110901' <name_of_dataset_in_ganga_box>
Wait a few hours for the jobs to finish. Resubmit any failures.
./ <first_job_number> <last_job_number>
This makes a file, tuples.lst, with a list of lines and paths to the corresponding tuples. Now check for mismatches.
./ tuples.lst

-- Main.EricvanHerwijnen - 13-Jan-2012

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r10 - 2015-10-01 - MikaVesterinen
    • 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-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback