Skip to content

lguzzi/WTau3Mu

 
 

Repository files navigation

WTau3Mu

CMSSW setup

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 external files

download the required files from

$CMSSW_BASE/src/CMGTools/WTau3Mu/data

and

$CMSSW_BASE/src/CMGTools/RootTools/data/jec

install a recent version of scikit learn  

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') 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.2%
  • C++ 2.0%
  • Shell 1.8%