forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·129 lines (112 loc) · 5.24 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
SETUP_REMOTES=false
echo
echo "Welcome to the FLASHgg automagic setup script!"
if [ ! -f $CMSSW_BASE/src/.git/HEAD ];
then
echo "CMSSW area appears not to be set up correctly. Check README carefully."
echo
return 1
fi
NFILES=`ls -1 ${CMSSW_BASE}/src | wc -l`
if [ ! ${NFILES} = "1" ]
then
echo "CMSSW area appears to have extra files already. Start over and check README carefully."
echo "You can remove this condition from the setup script if you wish, but proceed with caution!"
echo
return 1
fi
echo
echo "You should have checked out from cms-analysis/flashgg. Renaming this to upstream for convenience of existing developers..."
cd $CMSSW_BASE/src/flashgg
git remote rename origin upstream
git remote set-url --push upstream DISALLOWED
GITHUBUSERNAME=`git config user.github`
echo "Setting up a new origin repo, assuming your fork name is ${GITHUBUSERNAME} - check this!"
git remote add origin [email protected]:${GITHUBUSERNAME}/flashgg.git
git config branch.master.remote origin
if ${SETUP_REMOTES} ; then
echo "Setting up remotes listed in setup script..."
cd $CMSSW_BASE/src/flashgg
git remote add ArnabPurohit https://github.com/ArnabPurohit/flashgg
git remote add bcourbon https://github.com/bcourbon/flashgg
git remote add bmarzocc https://github.com/bmarzocc/flashgg
git remote add camilocarrillo https://github.com/camilocarrillo/flashgg
git remote add cms-flashgg https://github.com/cms-flashgg/flashgg
git remote add crovelli https://github.com/crovelli/flashgg
git remote add favaro https://github.com/favaro/flashgg
git remote add fcouderc https://github.com/fcouderc/flashgg
git remote add ferriff https://github.com/ferriff/flashgg
git remote add FMantegazzini FMantegazzini/flashgg
git remote add heppye https://github.com/heppye/flashgg
git remote add InnaKucher https://github.com/InnaKucher/flashgg
git remote add itopsisg https://github.com/itopsisg/flashgg
git remote add J-C-Wright https://github.com/J-C-Wright/flashgg
git remote add JunquanTao https://github.com/JunquanTao/flashgg
git remote add kmondal https://github.com/kmondal/flashgg
git remote add ldcorpe https://github.com/ldcorpe/flashgg
git remote add malcles https://github.com/malcles/flashgg
git remote add martinamalberti https://github.com/martinamalberti/flashgg
git remote add matteosan1 https://github.com/matteosan1/flashgg
git remote add mdonega https://github.com/mdonega/flashgg
git remote add mmachet https://github.com/mmachet/flashgg
git remote add molmedon https://github.com/molmedon/flashgg
git remote add mplaner https://github.com/mplaner/flashgg
git remote add musella https://github.com/musella/flashgg
git remote add nancymarinelli https://github.com/nancymarinelli/flashgg
git remote add OlivierBondu https://github.com/OlivierBondu/flashgg
git remote add pmeridian https://github.com/pmeridian/flashgg
git remote add quittnat https://github.com/quittnat/flashgg
git remote add rateixei https://github.com/rateixei/flashgg
git remote add ResonantHbbHgg https://github.com/ResonantHbbHgg/flashgg
git remote add sethzenz https://github.com/sethzenz/flashgg
git remote add simonepigazzini https://github.com/simonepigazzini/flashgg
git remote add swagata87 https://github.com/swagata87/flashgg
git remote add vtavolar https://github.com/vtavolar/flashgg
git remote add yhaddad https://github.com/yhaddad/flashgg
git remote add upstream-writable [email protected]:cms-analysis/flashgg.git
else
echo "Not setting up additional remote names (default)"
fi
cd $CMSSW_BASE/src
# Removed because it requires new merging and it is not needed for default PFCHS
# Will be restored if/when required for future studies
#echo
#echo "Setting up pileupjetid..."
#git cms-addpkg RecoJets/JetProducers
#git cms-merge-topic sethzenz:topic-pujid-74X
#echo
#echo "Setting up weight counter..."
#git cms-addpkg CommonTools/UtilAlgos
#git cms-addpkg DataFormats/Common
#git cms-merge-topic sethzenz:topic-weights-count-74X
# PUPPI is automagically in the release since 7_4_11 and 7_5_2, but we still need Multi-PUPPI
# Not needed for Moriond
#echo "Setting up PUPPI..."
#git cms-addpkg CommonTools/PileupAlgos
#git cms-merge-topic sethzenz:topic-puppi-7_4_12
#echo
#echo "Setting up Conversion tools for pat electron..."
#git cms-addpkg RecoEgamma/EgammaTools
#git cms-merge-topic -u sethzenz:topic-conversion-tools-for-pat-ele-74X
echo "Setting up TnP tools..."
#git cms-addpkg DataFormats/RecoCandidate
#git cms-addpkg PhysiscsTools/TagAndProbe
git cms-merge-topic -u matteosan1:egm_tnp_76X
echo "Setting up weight and pat electron conversion..."
git cms-addpkg CommonTools/UtilAlgos
git cms-addpkg RecoEgamma/EgammaTools
git remote add cmssw-sethzenz https://github.com/sethzenz/cmssw.git
git fetch cmssw-sethzenz
git cherry-pick 5163a7c9937ebfbbd714b3d161af01f64b65224c
git cherry-pick a45d253ea9850acecbcfcd7bd2e5c3f00d8f0bd9
git remote rm cmssw-sethzenz
echo "Setting up PDF weight tool..."
#git-cms-merge-topic bendavid:pdfweights_76x
git cms-addpkg PhysicsTools/HepMCCandAlgos
git cherry-pick 9e4300582f284fa1fed6dcdbee88b3f75da39165
echo "adding hook for indentation"
ln -s $CMSSW_BASE/src/flashgg/Validation/scripts/flashgg_indent_check.sh $CMSSW_BASE/src/flashgg/.git/hooks/pre-commit
echo
echo "Done with setup script! You still need to build!"
echo