cmsrel CMSSW_10_6_12
cd CMSSW_10_6_12/src
cmsenv
git cms-init
git remote add gpetruc https://github.com/gpetruc/cmg-cmssw/
git fetch gpetruc
git checkout -b heppy_106X_dev gpetruc/heppy_106X_dev
git cms-addpkg PhysicsTools/Heppy
git cms-addpkg PhysicsTools/HeppyCore
git cms-addpkg DataFormats/FWLite
git cms-addpkg EgammaAnalysis/ElectronTools
Now clone the CMGTools
cd $CMSSW_BASE/src
git clone -b 104X_dev https://github.com/CERN-PH-CMG/cmgtools-lite CMGTools
Now clone this repository
cd $CMSSW_BASE/src/CMGTools
git clone https://github.com/lguzzi/WTau3Mu/
Fix soome bugs and add the possibility to run on HTCondor in Milano
cd $CMSSW_BASE/src
git remote add lguzzi https://github.com/lguzzi/cmg-cmssw
git fetch lguzzi
git checkout lguzzi/heppy_106X_tau3mu PhysicsTools/HeppyCore/python/framework/event.py
git checkout lguzzi/heppy_106X_tau3mu PhysicsTools/HeppyCore/python/utils/batchmanager.py
git checkout lguzzi/heppy_106X_tau3mu PhysicsTools/HeppyCore/scripts/heppy_batch.py
git checkout lguzzi/heppy_106X_tau3mu PhysicsTools/HeppyCore/scripts/run_condor_simple.sh
git checkout lguzzi/heppy_106X_tau3mu PhysicsTools/HeppyCore/python/framework/looper.py
git checkout lguzzi/heppy_106X_tau3mu DataFormats/FWLite/python/__init__.py
download the required files from
$CMSSW_BASE/src/CMGTools/WTau3Mu/data
and
$CMSSW_BASE/src/CMGTools/RootTools/data/jec
You may need to override CMSSW's version of scikit learn in order to evaluate the BDT.
To do so:
cd CMSSW_X_X_X
cmsenv # this is meant to have CMSSW's python version handy
cd # go back to your home
python -m pip install --upgrade --user sklearn # do a local installation of the most recent scikit learn *against the correct python version!!*
Now you only have to import the correct scikit learn module:
- modules are imported ordered as they appear in
sys.path
- put the path to your local installation first, that is
sys.path.insert(0, os.environ['HOME'] + '/.local/lib/python2.7/site-packages')