cmsrel CMSSW_9_4_3
cd CMSSW_9_4_3/src
cmsenv
git cms-init
git clone https://github.com/TTXPheno/TTXPheno
# looping & plotting - needed for the examples
git clone https://github.com/TTXPheno/RootTools
scram b -j40
export PYTHIA8=/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/pythia8/223-mlhled2/
export LD_LIBRARY_PATH=$PYTHIA8/lib:$LD_LIBRARY_PATH
cd $CMSSW_BASE/..
git clone https://github.com/TTXPheno/delphes.git
#patch $CMSSW_BASE/../delphes/cards/delphes_card_CMS.tcl < $CMSSW_BASE/src/TTXPheno/patches/slim_delphes.diff # Reduce Delphes output
cd delphes
./configure
sed -i -e 's/c++0x/c++1y/g' Makefile
make -j 4
Add your user-specific locations to user.py.
You can do that also later and thus fix potential 'ImportError' from user.py when they occur.
Define the sample in e.g. fwlite_benchmarks.py and do
voms-proxy-init -voms cms -out ~/private/.proxy
cd TTXPheno/postprocessing
python genPostProcessing.py --overwrite --sample fwlite_ttZ_ll_LO_highStat_scan --addReweights --small
Remove --small to process the full sample. Add --nJobs=10 and --job=0 etc. options to run only on the first 10% of events. In Vienna you could also do
export X509_USER_PROXY=~/private/.proxy
submitBatch.py --dpm genPostProcessing.sh # append `#SPLIT200` to a line
For other places we can add submission scripts.
Polynomial parametrization:
python Tools/python/HyperPoly.py