Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:31

0001 #! /bin/csh
0002 
0003 eval `scramv1 runtime -csh`
0004 
0005 setenv DATADIR $CMSSW_BASE/src
0006 setenv REFDIRS /afs/cern.ch/cms/performance/tracker/activities/validation/ReferenceFiles
0007 setenv IDEALTAG IDEAL_V1
0008 setenv STARTUPTAG STARTUP
0009 setenv NEWREFDIR $REFDIRS/$CMSSW_VERSION
0010 if ( ! -e $NEWREFDIR ) mkdir $NEWREFDIR
0011 if ( ! -e $NEWREFDIR/Digis ) mkdir $NEWREFDIR/Digis
0012 if ( ! -e $NEWREFDIR/Digis/Startup ) mkdir $NEWREFDIR/Digis/Startup
0013 if ( ! -e $NEWREFDIR/Digis/Ideal ) mkdir $NEWREFDIR/Digis/Ideal
0014 if ( ! -e $NEWREFDIR/Digis/Fake ) mkdir $NEWREFDIR/Digis/Fake
0015 
0016 #set usefakegain=_FakeGain
0017 #set usefakela=_FakeLa
0018 #set usefakenoise=_FakeNoise
0019 
0020 set usefakegain 
0021 set usefakela 
0022 set usefakenoise
0023 
0024 echo "set preferences"
0025 cd ${DATADIR}
0026 
0027 project CMSSW
0028 
0029 # Get the relevant packages
0030 #
0031 #cvs co -r $CMSSW_VERSION Validation/TrackerDigis
0032 
0033 cd ${DATADIR}/Validation/TrackerDigis/test 
0034 
0035 #/// commentout if  reference are already there
0036 cmsRun trackerdigivalid_cfg.py >& ! digi.log
0037 mv pixeldigihisto.root $NEWREFDIR/Digis/Fake
0038 mv stripdigihisto.root $NEWREFDIR/Digis/Fake
0039 #//////
0040 
0041 cp $NEWREFDIR/Digis/Fake/*.root ../data/
0042 
0043 sed s/SCENARIO/$IDEALTAG/g trackerdigivalid_frontier_cfg.py >! tmp1_cfg.py
0044 
0045 if ( $usefakegain == _FakeGain) then 
0046 sed s/\#UNCOMMENTGAIN//g tmp1_cfg.py >! tmp2_cfg.py
0047 else
0048 cat tmp1_cfg.py >! tmp2_cfg.py
0049 endif
0050 
0051 if ( $usefakela == _FakeLa) then 
0052 sed s/\#UNCOMMENTLA//g tmp2_cfg.py >! tmp3_cfg.py
0053 else
0054 cat tmp2_cfg.py >! tmp3_cfg.py
0055 endif
0056 
0057 if ( $usefakenoise == _FakeNoise) then 
0058 sed s/\#UNCOMMENTNOISE//g tmp3_cfg.py >! Digi_ideal_cfg.py
0059 else
0060 cat tmp3_cfg.py >! Digi_ideal_cfg.py
0061 endif
0062 rm tmp*_cfg.py
0063 
0064 cmsRun Digi_ideal_cfg.py >& ! digi.log
0065 
0066 if($usefakegain == "" && $usefakela == "" && $usefakenoise== "") then
0067 mv pixeldigihisto.root $NEWREFDIR/Digis/Ideal
0068 mv stripdigihisto.root $NEWREFDIR/Digis/Ideal
0069 cp $NEWREFDIR/Digis/Ideal/*.root .
0070 endif
0071 
0072 root -b -p -q  SiPixelDigiCompare.C
0073 gzip *.eps
0074 source copyWWWPixel.csh Fake_vs_Ideal$usefakenoise$usefakegain$usefakela
0075 root -b -p -q  SiStripDigiCompare.C
0076 gzip *.eps
0077 source copyWWWStrip.csh Fake_vs_Ideal$usefakenoise$usefakegain$usefakela
0078 
0079 mv pixeldigihisto.root ../data/
0080 mv  stripdigihisto.root ../data/
0081 
0082 
0083 sed s/SCENARIO/$STARTUPTAG/g trackerdigivalid_frontier_cfg.py >! tmp1_cfg.py
0084 
0085 if ( $usefakegain == _FakeGain) then 
0086 sed s/\#UNCOMMENTGAIN//g tmp1_cfg.py >! tmp2_cfg.py
0087 else
0088 cat tmp1_cfg.py >! tmp2_cfg.py
0089 endif
0090 
0091 if ( $usefakela == _Fake_La) then 
0092 sed s/\#UNCOMMENTLA//g tmp2_cfg.py >! tmp3_cfg.py
0093 else
0094 cat tmp2_cfg.py >! tmp3_cfg.py
0095 endif
0096 
0097 if ( $usefakenoise == _FakeNoise) then 
0098 sed s/\#UNCOMMENTNOISE//g tmp3_cfg.py >! Digi_startup_cfg.py
0099 else
0100 cat tmp3_cfg.py >! Digi_startup_cfg.py
0101 endif
0102 rm tmp*_cfg.py
0103 
0104 
0105 
0106 cmsRun Digi_startup_cfg.py >& ! digi.log
0107 
0108 if($usefakegain == "" && $usefakela == "" && $usefakenoise== "") then
0109 cp pixeldigihisto.root $NEWREFDIR/Digis/Startup
0110 cp stripdigihisto.root $NEWREFDIR/Digis/Startup
0111 cp $NEWREFDIR/Digis/Startup/*.root . 
0112 endif
0113 
0114 root -b -p -q  SiPixelDigiCompare.C
0115 gzip *.eps
0116 source copyWWWPixel.csh dummy Ideal_vs_Startup$usefakenoise$usefakegain$usefakela
0117 root -b -p -q  SiStripDigiCompare.C
0118 gzip *.eps
0119 source copyWWWStrip.csh dummy Ideal_vs_Startup$usefakenoise$usefakegain$usefakela
0120 
0121