1 |
#!/bin/sh
|
2 |
|
3 |
export CVSROOT=:gserver:cmscvs.cern.ch:/cvs_server/repositories/CMSSW
|
4 |
|
5 |
cd $CMSSW_BASE/src
|
6 |
eval `scramv1 ru -sh`
|
7 |
|
8 |
checkOutVersion=`echo $CMSSW_VERSION | sed "s/_pre1//g" | sed "s/_pre2//g" | sed "s/_pre3//g"`
|
9 |
ver=`echo $checkOutVersion | sed "s/CMSSW//g" | sed "s/_//g"`
|
10 |
if [ $ver -lt 330 ]; then
|
11 |
|
12 |
# latest reconstruction code
|
13 |
cvs co -r V00-00-00 RecoHI/Configuration
|
14 |
cvs co -r V01-00-05 RecoHI/HiTracking
|
15 |
cvs co -r V00-00-01 RecoHI/HiJetAlgos
|
16 |
cvs co -r V00-00-03 RecoHI/HiEgammaAlgos
|
17 |
cvs co -r V00-00-05 RecoHI/HiMuonAlgos
|
18 |
cvs co RecoHI/HiCentralityAlgos
|
19 |
cvs co RecoHI/HiEvtPlaneAlgos
|
20 |
|
21 |
# latest generator configurations
|
22 |
cvs co Configuration/Generator
|
23 |
# latest generator interfaces (consistent impact parameter generation)
|
24 |
cvs co GeneratorInterface/Core
|
25 |
cvs co GeneratorInterface/HydjetInterface
|
26 |
cvs co GeneratorInterface/PyquenInterface # genfiltering in branch
|
27 |
# heavy ion event mixing tools
|
28 |
cvs co SimGeneral/MixingModule
|
29 |
#cvs co -r V05-00-00 SimGeneral/MixingModule
|
30 |
cvs co -r V04-00-00 SimDataFormats/CrossingFrame
|
31 |
cvs co -r V03-02-00 Mixing/Base
|
32 |
cvs co -r V00-15-07 FWCore/Sources
|
33 |
|
34 |
# latest centrality and event plane formats
|
35 |
cvs co DataFormats/HeavyIonEvent
|
36 |
|
37 |
# Turn off ZDC digitization for versions before 3_2_4
|
38 |
checkOutVersion=`echo $CMSSW_VERSION | sed "s/_patch1//g"`
|
39 |
ver=`echo $checkOutVersion | sed "s/CMSSW//g" | sed "s/_//g"`
|
40 |
if [ $ver -lt 324 ]; then
|
41 |
cvs co -r $checkOutVersion SimCalorimetry/HcalSimProducers
|
42 |
cat $CMSSW_BASE/src/SimCalorimetry/HcalSimProducers/src/HcalDigitizer.cc | replace "doZDC(true)" "doZDC(false)" | replace "e.getByLabel(\"mix\", zdcHitsName , zdccf)" "// e.getByLabel(\"mix\", zdcHitsName , zdccf)" | replace "colzdc(new MixCollection<PCaloHit>(zdccf.product()))" "colzdc(new MixCollection<PCaloHit>(new CrossingFrame<PCaloHit>))" | replace "theHitCorrection->fillChargeSums(*colzdc)" "// zdc correction" > tmp.cc
|
43 |
mv tmp.cc $CMSSW_BASE/src/SimCalorimetry/HcalSimProducers/src/HcalDigitizer.cc
|
44 |
fi
|
45 |
|
46 |
# Disable RecoHIMuon/HiMuTracking plugins with duplicate names
|
47 |
cvs co RecoHIMuon/HiMuTracking
|
48 |
cat $CMSSW_BASE/src/RecoHIMuon/HiMuTracking/plugins/SealModule.cc | replace "DEFINE_ANOTHER_FWK_MODULE" "// DEFINE_ANOTHER_FWK_MODULE" > tmp2.cc
|
49 |
mv tmp2.cc $CMSSW_BASE/src/RecoHIMuon/HiMuTracking/plugins/SealModule.cc
|
50 |
cat $CMSSW_BASE/src/RecoHIMuon/HiMuTracking/plugins/BuildFile | replace "RecoHI/HiMuonAlgos" "RecoHIMuon/HiMuTracking" | replace "RecoHIHiMuonAlgos" "RecoHIMuonHiMuTracking" > tmp3
|
51 |
mv tmp3 $CMSSW_BASE/src/RecoHIMuon/HiMuTracking/plugins/BuildFile
|
52 |
|
53 |
################################
|
54 |
|
55 |
cvs co -r V00-01-02 -d CmsHi/Utilities UserCode/CmsHi/Utilities
|
56 |
cvs co -r cmshi_32X -d CmsHi/JetAnalysis UserCode/CmsHi/JetAnalysis
|
57 |
scramv1 b
|
58 |
|
59 |
else
|
60 |
echo "This script is for 3_1_X and 3_2_X only. Use setup33X.sh for 3_3_X please!"
|
61 |
fi
|