Skip to content

CERN-PH-CMG/cmgtools-lite

Repository files navigation

Short recipe for CMGTools

For the general recipe, follow these instructions.


Set up CMSSW and the base git

cmsrel CMSSW_8_0_25
cd CMSSW_8_0_25/src
cmsenv
git cms-init

Add the central cmg-cmssw repository to get the Heppy 80X branch

git remote add cmg-central https://github.com/CERN-PH-CMG/cmg-cmssw.git -f  -t heppy_80X

Configure the sparse checkout, and get the base heppy packages

cp /afs/cern.ch/user/c/cmgtools/public/sparse-checkout_80X_heppy .git/info/sparse-checkout
git checkout -b heppy_80X cmg-central/heppy_80X

Add your mirror, and push the 80X branch to it

git remote add origin [email protected]:YOUR_GITHUB_REPOSITORY/cmg-cmssw.git
git push -u origin heppy_80X

Now get the CMGTools subsystem from the cmgtools-lite repository

git clone -o cmg-central https://github.com/CERN-PH-CMG/cmgtools-lite.git -b 80X CMGTools
cd CMGTools

Add your fork, and push the 80X branch to it

git remote add origin  [email protected]:YOUR_GITHUB_REPOSITORY/cmgtools-lite.git
git push -u origin 80X

Compile

cd $CMSSW_BASE/src
scram b -j 8