File indexing completed on 2024-04-06 12:33:41
0001
0002
0003 set RefRelease="CMSSW_3_1_0_pre3"
0004
0005
0006
0007
0008
0009
0010
0011 set Mode="Harvesting"
0012
0013
0014
0015
0016
0017
0018
0019 set copyWWW="true"
0020
0021
0022 set histogramfile=""
0023
0024 eval `scramv1 runtime -csh`
0025
0026 setenv DATADIR $CMSSW_BASE/src
0027 setenv REFDIRS /afs/cern.ch/cms/performance/tracker/activities/validation/ReferenceFiles
0028 setenv REFDIR $REFDIRS/$RefRelease
0029 setenv NEWREFDIR $REFDIRS/$CMSSW_VERSION
0030 if ( ! -e $NEWREFDIR ) mkdir $NEWREFDIR
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 cd ${DATADIR}
0041
0042
0043
0044
0045
0046 if (! -e Validation/Geometry) cvs co -r $CMSSW_VERSION Validation/Geometry
0047 if (! -e Validation/TrackerHits) cvs co -r $CMSSW_VERSION Validation/TrackerHits
0048 if (! -e Validation/TrackerDigis) cvs co -r $CMSSW_VERSION Validation/TrackerDigis
0049 if (! -e Validation/TrackerRecHits) cvs co -r $CMSSW_VERSION Validation/TrackerRecHits
0050 if (! -e Validation/TrackingMCTruth) cvs co -r $CMSSW_VERSION Validation/TrackingMCTruth
0051 if (! -e Validation/RecoTrack) cvs co -r $CMSSW_VERSION Validation/RecoTrack
0052
0053 if (! -e CalibTracker/SiStripCommon) cvs co -r $CMSSW_VERSION CalibTracker/SiStripCommon
0054
0055
0056
0057 if ('${1}' == 'GEOMETRY' ) then
0058 cd ${DATADIR}/Validation/Geometry/test
0059 ./TrackerGeometryValidation.sh ${RefRelease}
0060 if ($copyWWW == "true") then
0061 chmod a+x copyWWWTrackerGeometry.sh
0062 ./copyWWWTrackerGeometry.sh
0063 endif
0064 endif
0065
0066
0067
0068 cd ${DATADIR}/Validation/TrackerConfiguration/test
0069
0070
0071
0072 if ($Mode == "Reconstruction") then
0073 cmsRun Muon_FullChain_cfg.py
0074
0075 else if ($Mode == "Validation") then
0076 cmsRun ValidationChainOnly_cfg.py
0077
0078 else if ($Mode == "Harvesting")then
0079
0080 cmsRun HarvestingGlobalValidation_Tracking.py
0081 set histogramfile="DQM_V0001_R000000001__"$CMSSW_VERSION"__RelVal__Validation.root"
0082 endif
0083
0084 root -q -b -l CopySubdir.C\(\"$histogramfile\",\"newfile.root\"\)
0085 mv newfile.root $histogramfile
0086 if ( ($Mode == "Comparison") || ($Mode == "Harvesting") ) then
0087 ln -fs $histogramfile TrackerHitHisto.root
0088 ln -fs $histogramfile stripdigihisto.root
0089 ln -fs $histogramfile pixeldigihisto.root
0090 ln -fs $histogramfile trackingtruthhisto.root
0091 ln -fs $histogramfile validationPlots.root
0092 ln -fs $histogramfile sistriprechitshisto.root
0093 ln -fs $histogramfile pixelrechitshisto.root
0094 ln -fs $histogramfile pixeltrackingrechitshist.root
0095 ln -fs $histogramfile striptrackingrechitshisto.root
0096 cp $histogramfile $NEWREFDIR
0097 endif
0098
0099
0100
0101
0102 cd ${DATADIR}/Validation/TrackerHits/test
0103
0104 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/TrackerHitHisto.root .
0105
0106
0107 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../TrackerHitHisto.root
0108
0109
0110 if ( ! -e plots ) mkdir plots
0111 root -b -p -q SiTrackerHitsCompareEnergy.C
0112 if ( ! -e plots/muon ) mkdir plots/muon
0113 gzip -f *.eps
0114 mv eloss*.eps.gz plots/muon
0115 mv eloss*.gif plots/muon
0116
0117 root -b -p -q SiTrackerHitsComparePosition.C
0118 if ( ! -e plots/muon ) mkdir plots/muon
0119 gzip -f *.eps
0120 mv pos*.eps.gz plots/muon
0121 mv pos*.gif plots/muon
0122
0123 root -b -p -q SiTrackerHitsCompareToF.C
0124 if ( ! -e plots/muon ) mkdir plots/muon
0125 gzip -f *.eps
0126 mv Tof.eps.gz plots/muon
0127 mv Tof.gif plots/muon
0128
0129 if ($copyWWW == "true") source copyWWWall.csh
0130
0131 cd ${DATADIR}/Validation/TrackerDigis/test
0132
0133 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/stripdigihisto.root .
0134 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/pixeldigihisto.root .
0135
0136 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../stripdigihisto.root
0137 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../pixeldigihisto.root
0138
0139
0140
0141
0142 root -b -p -q SiPixelDigiCompare.C
0143 gzip -f *.eps
0144 if ($copyWWW == "true") source copyWWWPixel.csh
0145 root -b -p -q SiStripDigiCompare.C
0146 gzip -f *.eps
0147 if ($copyWWW == "true") source copyWWWStrip.csh
0148
0149 cd ${DATADIR}/Validation/TrackerRecHits/test
0150
0151 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/sistriprechitshisto.root .
0152 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/pixelrechitshisto.root .
0153
0154 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../sistriprechitshisto.root
0155 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../pixelrechitshisto.root
0156
0157
0158
0159 root -b -p -q SiPixelRecHitsCompare.C
0160 gzip -f *.eps
0161 if ($copyWWW == "true") source copyWWWPixel.csh
0162 root -b -p -q SiStripRecHitsCompare.C
0163 gzip -f *.eps
0164 if ($copyWWW == "true") source copyWWWStrip.csh
0165
0166 cd ${DATADIR}/Validation/TrackingMCTruth/test
0167 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/trackingtruthhisto.root .
0168 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../trackingtruthhisto.root
0169
0170
0171
0172 root -b -p -q TrackingTruthCompare.C
0173 gzip -f *.eps
0174 if ($copyWWW == "true") source copyWWWTP.csh
0175
0176 cd ${DATADIR}/Validation/RecoTrack/test
0177
0178 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/validationPlots.root .
0179 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/pixeltrackingrechitshist.root .
0180 ln -fs ${DATADIR}/Validation/TrackerConfiguration/test/striptrackingrechitshisto.root .
0181
0182 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../validationPlots.root
0183 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../pixeltrackingrechitshist.root
0184 ln -fs ${REFDIR}/DQM_V0001_R000000001__${RefRelease}__RelVal__Validation.root ../striptrackingrechitshisto.root
0185
0186
0187
0188
0189
0190
0191
0192
0193
0194 root -b -p -q SiPixelRecoCompare.C
0195 gzip -f *.eps
0196 if ($copyWWW == "true") source copyWWWPixel.csh
0197
0198 root -b -p -q SiStripTrackingRecHitsCompare.C
0199 gzip -f *.eps
0200 if ($copyWWW == "true") source copyWWWStrip.csh
0201
0202
0203
0204
0205
0206
0207
0208
0209
0210