diff --git a/Functions.sh b/Functions.sh index 30723ab..410dd84 100644 --- a/Functions.sh +++ b/Functions.sh @@ -10,4 +10,18 @@ github-addext() { ) fi -} \ No newline at end of file +} + + +github-addext-http() { + + git clone --quiet https://github.com/$1 $2 + if [ ! -z $3 ]; then + ( + cd $2 + git checkout --quiet $3 + ) + fi + +} + diff --git a/README.md b/README.md index a6e31c7..e66fe9f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ And run the setup script source LatinosSetup/Setup.sh -For datacard maker setup only: +For datacard maker (and nanoaod post-processing) setup only: source LatinosSetup/SetupShapeOnly.sh @@ -42,6 +42,8 @@ Do a git commit (or maybe git add first; see general git infos). Make sure everything is how you wanted it (e.g. look at the commit history). +If possible make a pull request. + Do a git push to push the changes to GitHub. If you want to put major changes in externals, please ask for the best way to do this. @@ -55,4 +57,13 @@ in particular: https://github.com/latinos/LatinoTrees/tree/master/AnalysisStep/test +# How to perform the post-processing + + https://github.com/latinos/LatinoAnalysis/tree/master/NanoGardener + + +# Suggested cmssw version for 13 TeV, Full Run II + 2019, Oct 24: CMSSW_10_2_15_patch2 + + \ No newline at end of file diff --git a/Setup.sh b/Setup.sh index dbdaa4c..690f2ed 100755 --- a/Setup.sh +++ b/Setup.sh @@ -285,7 +285,7 @@ elif [[ "$CMSSW_VERSION" == CMSSW_8_*_* ]]; then git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw cd LatinoAnalysis/MultiDraw - git checkout 2.0.8 2>/dev/null + git checkout 2.0.9 2>/dev/null ./mkLinkDef.py --cmssw elif [[ "$CMSSW_VERSION" == CMSSW_9_*_* ]]; then @@ -309,7 +309,7 @@ elif [[ "$CMSSW_VERSION" == CMSSW_9_*_* ]]; then git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw cd LatinoAnalysis/MultiDraw - git checkout 2.0.8 2>/dev/null + git checkout 2.0.9 2>/dev/null ./mkLinkDef.py --cmssw else diff --git a/SetupShapeOnly.sh b/SetupShapeOnly.sh index ed4d14d..719c50b 100755 --- a/SetupShapeOnly.sh +++ b/SetupShapeOnly.sh @@ -86,7 +86,7 @@ elif [[ "$CMSSW_VERSION" == CMSSW_8_*_* ]]; then git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw cd LatinoAnalysis/MultiDraw - git checkout 2.0.8 2>/dev/null + git checkout 2.0.9 2>/dev/null ./mkLinkDef.py --cmssw elif [[ "$CMSSW_VERSION" == CMSSW_9_*_* ]]; then @@ -115,9 +115,9 @@ elif [[ "$CMSSW_VERSION" == CMSSW_9_*_* ]]; then echo " - MELA" git clone git@github.com:usarica/MelaAnalytics.git MelaAnalytics - cd MelaAnalytics ; git checkout -b from-v11 v1.1 ; cd .. + cd MelaAnalytics ; git checkout -b from-v19 v1.9 ; cd .. git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement - cd ZZMatrixElement ; git checkout -b from-v215 v2.1.5 ; source setup.sh -j 12 ; cd .. + cd ZZMatrixElement ; git checkout -b from-v222 v2.2.2 ; source setup.sh -j 12 ; cd .. elif [[ "$CMSSW_VERSION" == CMSSW_10_*_* ]]; then echo "=======================================" @@ -138,8 +138,16 @@ elif [[ "$CMSSW_VERSION" == CMSSW_10_*_* ]]; then git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw cd LatinoAnalysis/MultiDraw - git checkout 2.0.8 2>/dev/null + git checkout 2.0.9 2>/dev/null ./mkLinkDef.py --cmssw + cd ../../ + + echo " - MELA" + + git clone git@github.com:usarica/MelaAnalytics.git MelaAnalytics + cd MelaAnalytics ; git checkout -b from-v19 v1.9 ; cd .. + git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement + cd ZZMatrixElement ; git checkout -b from-v222 v2.2.2 ; source setup.sh -j 12 ; cd .. else echo "=======================================" diff --git a/SetupShapeOnlyHTTP.sh b/SetupShapeOnlyHTTP.sh new file mode 100755 index 0000000..c3191bd --- /dev/null +++ b/SetupShapeOnlyHTTP.sh @@ -0,0 +1,158 @@ +if [ -z $CMSSW_BASE ]; then + echo "=======================================" + echo "No CMS environment detected; stopping..." + echo "=======================================" + exit 1 +fi + +source $CMSSW_BASE/src/LatinosSetup/Functions.sh + +if [[ "$CMSSW_VERSION" == CMSSW_5_*_* ]]; then + + echo "=======================================" + echo " running with $CMSSW_VERSION - this is an 8 TeV setup!" + echo " Current Time:" $(date) + echo " checking out additional repositories; this could take a while ..." + echo " Only shape analysis toolkit will be setup" + echo " Please use Setup.sh for the full package" + echo " export SCRAM_ARCH=slc5_amd64_gcc472" + echo "=======================================" + + echo " - Basic Code" + + github-addext latinos/HWWAnalysis.git HWWAnalysis + + github-addext latinos/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit HiggsAnalysis-CombinedLimit-V02-06-00 + + + echo "=======================================" + echo " ... Done. " + echo "Current Time:" $(date) + echo "=======================================" + +elif [[ "$CMSSW_VERSION" == CMSSW_7_*_* ]]; then + + echo "=======================================" + echo " running with $CMSSW_VERSION - this is an 13 TeV setup!" + echo " Current Time:" $(date) + echo " checking out additional repositories; this could take a while ..." + echo " Only shape analysis toolkit will be setup" + echo " Please use Setup.sh for the full package" + echo " export SCRAM_ARCH=???" + echo "=======================================" + + echo " - Basic Code" + + github-addext latinos/LatinoAnalysis.git LatinoAnalysis + + echo " - Setup MELA" + git clone git@github.com:cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement + cd ZZMatrixElement + echo " checking out MELA release v2.0.1 ..." + git checkout tags/v2.0.1 + cd - + echo " ...done." + source ZZMatrixElement/setup.sh -j 12 + + echo "=======================================" + echo " ... Done. " + echo "Current Time:" $(date) + echo "=======================================" + +elif [[ "$CMSSW_VERSION" == CMSSW_8_*_* ]]; then + echo "=======================================" + echo "running with $CMSSW_VERSION - this is a 13 TeV setup!" + echo "Current time:" $(date) + echo "checking out additional repositories; this could take a while ..." + echo "=======================================" + + echo " - Basic Code" + + github-addext latinos/LatinoAnalysis.git LatinoAnalysis + + echo " - get recaster for MELA" + git clone git@github.com:usarica/MelaAnalytics.git + + echo " - Setup MELA" + git clone git@github.com:cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement + cd ZZMatrixElement + echo " checking out MELA release v2.1.1 ..." + git checkout tags/v2.1.1 + cd - + echo " ...done." + source ZZMatrixElement/setup.sh -j 12 + + echo " - Plotting Tools" + + git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw + cd LatinoAnalysis/MultiDraw + git checkout 2.0.9 2>/dev/null + ./mkLinkDef.py --cmssw + +elif [[ "$CMSSW_VERSION" == CMSSW_9_*_* ]]; then + echo "=======================================" + echo "running with $CMSSW_VERSION - this is a 13 TeV setup!" + echo "Current time:" $(date) + echo "checking out additional repositories; this could take a while ..." + echo "=======================================" + + echo " - Basic Code" + + github-addext latinos/LatinoAnalysis.git LatinoAnalysis + + echo " - Nano Tools" + + git clone git@github.com:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools + + echo " - Plotting Tools" + + git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw + cd LatinoAnalysis/MultiDraw + git checkout 2.0.8 2>/dev/null + ./mkLinkDef.py --cmssw + cd ../.. + + echo " - MELA" + + git clone git@github.com:usarica/MelaAnalytics.git MelaAnalytics + cd MelaAnalytics ; git checkout -b from-v19 v1.9 ; cd .. + git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement + cd ZZMatrixElement ; git checkout -b from-v222 v2.2.2 ; source setup.sh -j 12 ; cd .. + +elif [[ "$CMSSW_VERSION" == CMSSW_10_*_* ]]; then + echo "=======================================" + echo "running with $CMSSW_VERSION - this is a 13 TeV setup!" + echo "Current time:" $(date) + echo "checking out additional repositories; this could take a while ..." + echo "=======================================" + + echo " - Basic Code" + + git clone https://github.com/latinos/LatinoAnalysis.git LatinoAnalysis + + echo " - Nano Tools" + + git clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools + + echo " - Plotting Tools" + + git clone https://github.com/yiiyama/multidraw.git LatinoAnalysis/MultiDraw + cd LatinoAnalysis/MultiDraw + git checkout 2.0.9 2>/dev/null + ./mkLinkDef.py --cmssw + cd ../../ + + echo " - MELA" + +# git clone https://github.com/usarica/MelaAnalytics.git MelaAnalytics +# cd MelaAnalytics ; git checkout -b from-v19 v1.9 ; cd .. +# git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement +# cd ZZMatrixElement ; git checkout -b from-v222 v2.2.2 ; source setup.sh -j 12 ; cd .. + +else + echo "=======================================" + echo "You are using release $CMSSW_VERSION which is not supported by this script." + echo "A with CMSSW_5_*_* release is suggested for shape" + echo "=======================================" + +fi;