cms-nanoAOD / nanoAOD-tools

Tools for working with NanoAOD (requiring only python + root, not CMSSW)
42 stars 326 forks source link

Make tau tools python3 and standalone compatible #268

Closed IzaakWN closed 3 years ago

IzaakWN commented 3 years ago

This makes the tau tools compatible with python3 and non-CMSSW standalone use as per request https://github.com/cms-nanoAOD/nanoAOD-tools/pull/258#issuecomment-773411712. Tested with both python 2.7 and 3.6 (via source /cvmfs/sft.cern.ch/lcg/views/LCG_96python3/x86_64-centos7-gcc8-opt/setup.sh) User can set the path to the data files, which otherwise assumes a CMSSW_BASE environmental variable.