Skip to content

Instantly share code, notes, and snippets.

@kpedro88
Last active December 13, 2017 22:09
Show Gist options
  • Save kpedro88/2a477c3664dad7714ca4fa1639e3ef7d to your computer and use it in GitHub Desktop.
Save kpedro88/2a477c3664dad7714ca4fa1639e3ef7d to your computer and use it in GitHub Desktop.
#!/bin/bash
export SCRAM_ARCH=slc6_amd64_gcc530
# cmsrel
CMSSWVER=CMSSW_8_0_30
scram project ${CMSSWVER}
cd ${CMSSWVER}
git clone [email protected]:cms-sw/pkgtools.git -b V00-30-XX
git clone [email protected]:kpedro88/cmsdist.git -b cgal_and_fastjet/IB/CMSSW_8_0_X/gcc530
pkgtools/cmsBuild -i pkgs -a ${SCRAM_ARCH} --builders 2 -j 8 build cgal-toolfile fastjet-toolfile
# cmsenv
eval `scramv1 runtime -sh`
scram setup pkgs/slc6_amd64_gcc530/external/cgal-toolfile/1.0-cms/etc/scram.d/cgal.xml
# cmsenv
eval `scramv1 runtime -sh`
scram setup pkgs/slc6_amd64_gcc530/external/fastjet-toolfile/1.0-cms/etc/scram.d/fastjet.xml
# cmsenv
eval `scramv1 runtime -sh`
# CMSSW fastjet-dependent packages
cd src
git cms-addpkg CommonTools/PileupAlgos CommonTools/RecoAlgos GeneratorInterface/Herwig6Interface GeneratorInterface/LHEInterface GeneratorInterface/PartonShowerVeto GeneratorInterface/RivetInterface PhysicsTools/Heppy PhysicsTools/JetMCAlgos RecoBTag/SecondaryVertex RecoJets/JetAlgorithms RecoJets/JetProducers TopQuarkAnalysis/TopEventProducers TopQuarkAnalysis/TopPairBSM Validation/EventGenerator
git clone [email protected]:cms-jet/JetToolbox.git JMEAnalysis/JetToolbox -b jetToolbox_80X_V3
scram b -j 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment