Locations and commands

K0S->pi0mumu stripping

/cvmfs/lhcb.cern.ch/lib/lhcb/STRIPPING/STRIPPING_v9r0/Phys/StrippingSelections/python/StrippingSelections/StrippingK0s2Pi0MuMuLines.py (with pi0)

/cvmfs/lhcb.cern.ch/lib/lhcb/STRIPPING/STRIPPING_v10r6/Phys/StrippingSelections/python/StrippingSelections/StrippingRD/StrippingRareNStrange.py (without pi0)

K0S->pi0mumu ntuple making

SetupErasmus->$BENDERALGOROOT

/cvmfs/lhcb.cern.ch/lib/lhcb/ERASMUS/ERASMUS_v10r3/Phys/BenderAlgo/python/BenderAlgo/BenderK0SPi0MuMu.py

Generating and reading xgen files of a given event type

Look at lxplus, ~diegoms/vol5/Gaussjobs/ks2016.csh

In the same folder, ReadXgen.py (JpsiPhi) and ReadXgen2.py (pi0mm) serve as examples on how to read the output of the command above.

You may also want to look at:

https://twiki.cern.ch/twiki/bin/view/LHCb/GaussDecayFiles#Testing_a_decay_file

if you are going towards an official production.

Finding correct data tags

https://lhcbqa.web.cern.ch/lhcbqa/233/how-can-i-find-the-right-database-tags

print TES["Rec/Header"]

TES.dump() -- need to switch off gaudi.finalize

LoKi issue

In the LoKi version currently used, there is a message "I am getattr", which makes ganga jobs fail due to endless output. To get rid of it, use the LoKi version in /afs/cern.ch/user/m/mlucioma/cmtuser/Erasmus_v13r4/Phys/LoKiCore

Getting files from the grid

https://lhcb.github.io/first-analysis-steps/04-files-from-grid.html

Stripping variables translation

https://twiki.cern.ch/twiki/bin/view/LHCb/LoKiHybridFilters

BKGCAT

https://twiki.cern.ch/twiki/pub/Main/TMKTutorial/BKGCAT.pdf

https://twiki.cern.ch/twiki/bin/view/LHCb/TupleToolMCBackgroundInfo

Add branch to ntuple

lb-run Urania/v7r0 tcsh

$URANIAROOT/../../InstallArea/$CMTCONFIG/bin/SimpleToolsColumnMaker.exe