ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/Utilities/scripts/setup3XY.sh
Revision: 1.17
Committed: Wed Sep 9 08:46:38 2009 UTC (15 years, 8 months ago) by yilmaz
Content type: application/x-sh
Branch: MAIN
Changes since 1.16: +7 -1 lines
Log Message:
Warning for 3XY setuP

File Contents

# User Rev Content
1 yilmaz 1.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 yilmaz 1.17 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 edwenger 1.5 # latest reconstruction code
13 edwenger 1.12 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 yilmaz 1.1 cvs co RecoHI/HiCentralityAlgos
19 edwenger 1.9 cvs co RecoHI/HiEvtPlaneAlgos
20 yilmaz 1.1
21 edwenger 1.5 # latest generator configurations
22 yilmaz 1.1 cvs co Configuration/Generator
23 edwenger 1.5 # latest generator interfaces (consistent impact parameter generation)
24 yilmaz 1.10 cvs co GeneratorInterface/Core
25 yilmaz 1.1 cvs co GeneratorInterface/HydjetInterface
26 yilmaz 1.14 cvs co GeneratorInterface/PyquenInterface # genfiltering in branch
27 edwenger 1.5 # heavy ion event mixing tools
28 yilmaz 1.15 cvs co SimGeneral/MixingModule
29     #cvs co -r V05-00-00 SimGeneral/MixingModule
30 yilmaz 1.14 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 yilmaz 1.2
34 edwenger 1.5 # latest centrality and event plane formats
35 yilmaz 1.3 cvs co DataFormats/HeavyIonEvent
36    
37 edwenger 1.5 # Turn off ZDC digitization for versions before 3_2_4
38 yilmaz 1.1 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 edwenger 1.5 # 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 yilmaz 1.14 ################################
54    
55     #cvs co -r V00-01-02 UserCode/CmsHi/Utilities #HEAD as of Aug 19 without Philip's hiGenParticle modifications
56    
57     cvs co -r Development_34x_HeavyIons PhysicsTools/HepMCCandAlgos
58     cvs co -r Development_34x_HeavyIons DataFormats/HepMCCandidate
59 yilmaz 1.2
60 yilmaz 1.3
61 yilmaz 1.16 cvs co UserCode/CmsHi/Utilities/python
62     cvs co UserCode/CmsHi/Utilities/test
63 yilmaz 1.1 mv UserCode/CmsHi .
64    
65     scramv1 b
66    
67 yilmaz 1.17 else
68     echo "This script is for 3_1_X and 3_2_X only. Use setup33X.sh for 3_3_X please!"
69     fi