forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
73 lines (62 loc) · 2.56 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
#!/bin/bash
SETUP_REMOTES=false
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."
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 README carefully."
echo "You can remote this condition from the setup script if you wish, but proceed with caution!"
return 1
fi
if ${SETUP_REMOTES} ; then
echo "Setting up remotes listed in setup script..."
cd $CMSSW_BASE/src/flashgg
git remote add upstream https://github.com/cms-analysis/flashgg
git remote add bmarzocc https://github.com/bmarzocc/flashgg
git remote add camilocarrillo https://github.com/camilocarrillo/flashgg
git remote add favaro https://github.com/favaro/flashgg
git remote add fcouderc https://github.com/fcouderc/flashgg
git remote add InnaKucher https://github.com/InnaKucher/flashgg
git remote add ldcorpe https://github.com/ldcorpe/flashgg
git remote add malcles https://github.com/malcles/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 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 sethzenz https://github.com/sethzenz/flashgg
git remote add swagata87 https://github.com/swagata87/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 remote names (default)"
fi
cd $CMSSW_BASE/src
echo
echo "Setting up pileupjetid..."
git cms-addpkg RecoJets/JetProducers
git cms-merge-topic -u sethzenz:pileupjetid-for-flashgg-72x
echo
echo "Setting up PUPPI..."
git clone -b flashgg https://github.com/ldcorpe/Dummy
echo
echo "Setting up weight counter..."
git cms-addpkg CommonTools/UtilAlgos
git cms-addpkg DataFormats/Common
git cms-merge-topic musella:topic-weights-count
echo
echo "Setting up Photon Tool bugfix..."
git cms-addpkg RecoEcal/EgammaCoreTools
git cherry-pick fd6b6bd88dc74d8f73299f395cc075aa89c8d701
echo
echo "Done with setup script! You still need to build!"
echo