1 |
#!/bin/bash
|
2 |
# $Id: setup.sh,v 1.17 2008/11/21 17:40:50 bendavid Exp $
|
3 |
|
4 |
if test -z $CMSSW_VERSION; then
|
5 |
echo "Need cmssw project area setup!";
|
6 |
exit 1;
|
7 |
fi
|
8 |
|
9 |
export CVSROOT=:pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW
|
10 |
|
11 |
majver=`echo $CMSSW_VERSION | cut -d_ -f 2`;
|
12 |
minver=`echo $CMSSW_VERSION | cut -d_ -f 3`;
|
13 |
patver=`echo $CMSSW_VERSION | cut -d_ -f 4`;
|
14 |
majver=`expr $majver \* 1000000`;
|
15 |
minver=`expr $minver \* 1000`;
|
16 |
version=`expr $majver + $minver`;
|
17 |
version=`expr $version + $patver`;
|
18 |
|
19 |
echo "Setup called for $CMSSW_VERSION ($version)";
|
20 |
|
21 |
cd $CMSSW_BASE/src;
|
22 |
|
23 |
if test $version -lt 2001008; then
|
24 |
echo "Nothing to be done, exiting";
|
25 |
exit 1;
|
26 |
fi
|
27 |
|
28 |
case $version in
|
29 |
(2002004 | 2002005)
|
30 |
|
31 |
#to remove annoying warning messages for the jet to vertex associator.
|
32 |
cvs co -r $CMSSW_VERSION JetMETCorrections/JetVertexAssociation;
|
33 |
TMP=`mktemp`;
|
34 |
cat JetMETCorrections/JetVertexAssociation/src/JetVertexMain.cc |
|
35 |
sed -e 's/else std::cout << \"\[Jets\] JetVertexAssociation: Warning\! problems for Algo = 2: possible division by zero ..\" << std::endl;//' > $TMP;
|
36 |
mv $TMP JetMETCorrections/JetVertexAssociation/src/JetVertexMain.cc
|
37 |
|
38 |
#Tags required for Summer08 redigi-rereco and Winter09 FastSim JetMetCorrections
|
39 |
cvs co -r V01-07-02 CondFormats/JetMETObjects
|
40 |
cvs co -r V01-08-13 JetMETCorrections/Configuration
|
41 |
cvs co -r V02-09-02 JetMETCorrections/Modules
|
42 |
cvs co -r V01-08-00 JetMETCorrections/Algorithms
|
43 |
|
44 |
#needed for JetPlusTracks and associated corrections
|
45 |
cvs co -r V01-04-03 RecoJets/JetAssociationAlgorithms
|
46 |
|
47 |
;;
|
48 |
*)
|
49 |
echo "Nothing known about this version, exiting";
|
50 |
exit 1;
|
51 |
;;
|
52 |
esac
|
53 |
|
54 |
if test -z $MIT_VERS; then
|
55 |
echo
|
56 |
echo "Warning: Production setup not executed since \$MIT_VERS is not setup."
|
57 |
echo
|
58 |
else
|
59 |
echo
|
60 |
echo "Entering production setup. Looking for MIT_VERS: $MIT_VERS dependencies."
|
61 |
echo
|
62 |
case $MIT_VERS in
|
63 |
005)
|
64 |
MitAna/scripts/setup-pixelLessTracking.sh
|
65 |
;;
|
66 |
*)
|
67 |
echo "Nothing special to be done for this version";
|
68 |
;;
|
69 |
esac
|
70 |
fi
|
71 |
|
72 |
echo "Setup done; you probably want to compile your project area now";
|