New DRAW format for the BTrigger group

The new DRAW format is derived from the DRAW_ZMUMU derivation.

This format should be used for the BTrigger validation, since it would contain enhanced B-Physics sample.

!!!Do not run the DRAW production on EOS, this produces corrupted files and it randomly fails in runtime!!!

The basic selection:

  • pT(mu) > 3.5 GeV
  • 1.5 < m(mumu) < 14 GeV
  • muon quality = 3 (very loose muons)
  • goodMuonTool.TurnOffMomCorr = True
  • get only Active triggers (no trigger selection would be better however it was producing corrupted files)
The following sections will describe how to produce this format and run the BTrigger slice test for users. (user)

In case that there must be performed some updates in the framework, the notes from developpement are attached. (devel)

How to Run (user)

asetup Athena,master,latest

Reco_tf.py --AMI f1052 --inputBSFile <rawInputFile.data> --outputDRAW_DIMUFile <myDRAWOutputFileName.raw>

athena.py -c "setMenu='LS2_v1';doEmptyMenu=True;doBphysicsSlice=True;forceEnableAllChains=True;doWriteBS=False;doWriteRDOTrigger=True;" --imf --perfmon --threads=1 --filesInput=<myDRAWOutputFileName.raw> TriggerJobOpts /runHLT_standalone.py

chainDump.py --json -f expert-monitoring.root

Adjust DRAW in Athena master (devel)

mkdir source && mkdir build && mkdir run
asetup Athena,master,latest
cd source

lsetup git
git atlas init-workdir https://:@gitlab.cern.ch:8443/atlas/athena.git

cd athena/
git atlas addpkg PrimaryDPDMaker

vim PhysicsAnalysis /PrimaryDPDMaker/share/DRAW_DIMU.py ### The setting of the derivation is stored here

cd ..
echo "- athena/Projects/WorkDir" >> package_filters.txt

cd ../build
cmake ../source/athena/Projects/WorkDir/
make
source x86_64-centos7-gcc8-opt/setup.sh

Produce the DRAW derivation files (devel)

Each time you start new work, load the compiled package:

cd build source x86_64-centos7-gcc8-opt/setup.sh
cd ../run

nohup Reco_tf.py --AMI f1052 --inputBSFile <inputRawFile> --outputDRAW_DIMUFile <myDRAWOutputFileName.raw> &

This will produce <myDRAWOutputFileName.raw> file with selected events.

Update Metadata Information (devel)

In case that this file contain wrong metadata follofing command ned to be uset to rewrite them from the original RAW file

trigbs_updateBSMetadata.py -v -n 1000 --copyFrom <inputRawFile> --outputName <updatedFileName> <myDRAWOutputFileName.raw>

Merging Files (devel)

In order to merge multiple files the trigbs_mergeBSfiles.py can be used (note that current version in athena have a bug, the fixed version attached below)

../mergeSctipt/trigbs_mergeBSfiles.py -n 2000 testOut.data ../results

-- RadekNovotny - 2020-08-18

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2020-10-08 - RadekNovotny
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 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