Table of content
Official Recommendation
- For 2016: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmV2016Analysis
- For 2017: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmV2017Analysis
- For 2018: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmV2018Analysis
How to calulate luminosity
- Load cms enviornment using
cmsenv
. - Set the brilcal environment:
export PATH=$HOME/.local/bin:/cvmfs/cms-bril.cern.ch/brilconda/bin:$PATH
- Install the latest version of brilcalc
Sometime you may get a strange error. Then try to uninstall the brilcalc and then reinstall it. Somehow it works many times.pip install --user --upgrade brilws
pip uninstall -y brilws
- Get the luminosity:
brilcalc lumi --normtag /cvmfs/cms-bril.cern.ch/cms-lumi-pog/Normtags/normtag_PHYSICS.json -u /fb -i <JSON FILE PATH>/processedLumis.json
NOTE: For some reason this brilcalc command is not working on lpc. But it works fine on lxplus.