Skip to content

Instantly share code, notes, and snippets.

@oshadura
Forked from vgvassilev/cmssw_cheatsheet.md
Created October 10, 2019 15:22
Show Gist options
  • Save oshadura/4133ef1094a6c027c283b2e53e39e5ec to your computer and use it in GitHub Desktop.
Save oshadura/4133ef1094a6c027c283b2e53e39e5ec to your computer and use it in GitHub Desktop.
CMSSW Cheatsheet

Running CMSSW with custom ROOT build

Source what's needed:

ssh lxplus
bash
source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x86_64-centos7-gcc8-opt/setup.sh
source /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/cmake/3.14.5/etc/profile.d/init.sh

cd /tmp/`whoami`

source /cvmfs/cms.cern.ch/cmsset_default.sh

scram project CMSSW_11_0_ROOT6_X_2019-08-28-2300 

cd CMSSW_11_0_ROOT6_X_2019-08-28-2300

NEW_ROOT=/path/to/new/root

sed -i -e "s|$(scram tool tag root_interface ROOT_INTERFACE_BASE)|${NEW_ROOT}|" config/toolbox/*/tools/selected/*.xml

scram setup

eval `scram runtime -sh`

ls -l $(which root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment