Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved instructions and new git. Do not merge, yet #6

Open
wants to merge 7 commits into
base: 13TeV
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ github-addext() {
)
fi

}
}


github-addext-http() {

git clone --quiet https://github.com/$1 $2
if [ ! -z $3 ]; then
(
cd $2
git checkout --quiet $3
)
fi

}

13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand All @@ -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


4 changes: 2 additions & 2 deletions Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 12 additions & 4 deletions SetupShapeOnly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 "======================================="
Expand All @@ -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 "======================================="
Expand Down
158 changes: 158 additions & 0 deletions SetupShapeOnlyHTTP.sh
Original file line number Diff line number Diff line change
@@ -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;