Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #! /bin/csh
0002 
0003 eval `scramv1 runtime -csh`
0004 
0005 setenv DATADIR $CMSSW_BASE/src
0006 
0007 setenv REFDIRS /afs/cern.ch/cms/performance/tracker/activities/validation/ReferenceFiles
0008 setenv REFDIR $REFDIRS/${1}
0009 setenv NEWREFDIR $REFDIRS/$CMSSW_VERSION
0010 if ( ! -e $NEWREFDIR ) mkdir $NEWREFDIR
0011 if ( ! -e $NEWREFDIR/SimHits ) mkdir $NEWREFDIR/SimHits
0012 
0013 cd ${DATADIR}
0014 
0015 project CMSSW
0016 #
0017 # Get the relevant packages
0018 #
0019 #cvs co -r $CMSSW_VERSION Validation/TrackerHits
0020 cvs co Validation/TrackerHits
0021 #
0022 # Run simhit validation on 1GeV electrons (QGSP_EMV)
0023 #
0024 cd ${DATADIR}/Validation/TrackerConfiguration/test
0025 
0026 cp /afs/cern.ch/cms/performance/tracker/activities/validation/G4Validation/Electron.root ./Muon.root
0027 
0028 cmsRun SimHits_Validation_cfg.py
0029 cp ./TrackerHitHisto.root  TrackerHitHisto_ele_QGSP_EMV.root
0030 cp ./TrackerHitHisto.root ${DATADIR}/Validation/TrackerHits/test/
0031 
0032 mv TrackerHitHisto_ele_QGSP_EMV.root $NEWREFDIR/SimHits/
0033 
0034 cd ${DATADIR}/Validation/TrackerHits/test 
0035 
0036 if($2 == 1) then
0037 cp ${REFDIR}/SimHits/TrackerHitHisto_ele_QGSP_EMV.root ../data/TrackerHitHisto.root
0038 
0039 if ( ! -e plots ) mkdir plots
0040 root -b -p -q SiStripHitsCompareEnergy.C
0041 if ( ! -e plots/muon ) mkdir plots/muon
0042 mv eloss*.eps plots/muon
0043 mv eloss*.gif plots/muon
0044 
0045 root -b -p -q SiStripHitsComparePosition.C
0046 if ( ! -e plots/muon ) mkdir plots/muon
0047 mv pos*.eps plots/muon
0048 mv pos*.gif plots/muon
0049 
0050 source copyWWWall_geant.csh ele_QGSP_EMV
0051 end
0052 
0053 #
0054 # Run simhit validation on 1GeV pions (QGSP_EMV)
0055 #
0056 cd ${DATADIR}/Validation/TrackerConfiguration/test
0057 
0058 cp /afs/cern.ch/cms/performance/tracker/activities/validation/G4Validation/Pion.root ./Muon.root
0059 
0060 cmsRun SimHits_Validation.cfg
0061 
0062 cp ./TrackerHitHisto.root TrackerHitHisto_pi_QGSP_EMV.root
0063 cp ./TrackerHitHisto.root ${DATADIR}/Validation/TrackerHits/test/
0064 
0065 mv TrackerHitHisto_pi_QGSP_EMV.root $NEWREFDIR/SimHits/
0066 cd ${DATADIR}/Validation/TrackerHits/test 
0067 
0068 if($1 == 1) then
0069 cp ${REFDIR}/SimHits/TrackerHitHisto_pi_QGSP_EMV.root ../data/TrackerHitHisto.root
0070 
0071 if ( ! -e plots ) mkdir plots
0072 root -b -p -q SiStripHitsCompareEnergy.C
0073 if ( ! -e plots/muon ) mkdir plots/muon
0074 mv eloss*.eps plots/muon
0075 mv eloss*.gif plots/muon
0076 
0077 root -b -p -q SiStripHitsComparePosition.C
0078 if ( ! -e plots/muon ) mkdir plots/muon
0079 mv pos*.eps plots/muon
0080 mv pos*.gif plots/muon
0081 
0082 source copyWWWall_geant.csh pi_QGSP_EMV
0083 end