File indexing completed on 2024-04-06 11:57:50
0001
0002
0003 echo "=================================================="
0004 echo "Installing Laser Monitoring directory from scratch"
0005 setenv MACHINE `uname -n`
0006 echo "=================================================="
0007
0008 echo "For machine: $MACHINE"
0009
0010 unalias cp
0011 unalias rm
0012
0013 setenv MACHINEEE srv-C2D17-20
0014 setenv MACHINEEBODD srv-C2D17-19
0015 setenv MACHINEEBEVEN srv-C2D17-18
0016
0017
0018 if( $MACHINE == $MACHINEEE ) then
0019 echo "EE assigned to this machine"
0020 else if($MACHINE == $MACHINEEBODD ) then
0021 echo "EB Odd assigned to this machine"
0022 else if($MACHINE == $MACHINEEBEVEN ) then
0023 echo "EB Even assigned to this machine"
0024 else
0025 echo "Unknown machine"
0026 goto error
0027 endif
0028
0029 date
0030
0031
0032
0033
0034
0035 setenv SORTING /cmsecallaser/srv-c2d17-19/disk0/ecallaser/data/run_sorted/cosmics2009
0036 setenv OUTPUTPATH /cmsecallaser/srv-c2d17-19/disk0/ecallaser/data/LM
0037 setenv PRIMITIVES /nfshome0/ecallaser/LaserPrim
0038 setenv PROD Cosmics09_310
0039 setenv STORE Cosmics09_310
0040
0041 setenv DATASORT ${SORTING}/out
0042
0043 setenv SCRIPTS ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/scripts
0044 setenv SHAPEDIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/sprshapes
0045 setenv ALPHADIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/alphabeta
0046 setenv MUSECALDATADIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/musecal
0047 setenv PYDIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/pytemplates
0048 setenv MUSECAL ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/test/MusEcal
0049
0050
0051 ${SCRIPTS}/mkdir.sh ${OUTPUTPATH}/${STORE} 'Monitoring directory'
0052 ${SCRIPTS}/mkdir.sh ${PRIMITIVES}/${STORE} 'Primitives directory'
0053
0054 ${SCRIPTS}/lns.sh ${OUTPUTPATH}/${STORE} ${PROD}
0055 ${SCRIPTS}/lns.sh ${OUTPUTPATH}/${STORE} ${PROD}
0056 ${SCRIPTS}/lns.sh ${PRIMITIVES}/${STORE} ${PROD}/primitives
0057 ${SCRIPTS}/lns.sh ${MUSECAL} ${PROD}/musecal
0058 ${SCRIPTS}/lns.sh ${SCRIPTS} ${PROD}/scripts
0059 ${SCRIPTS}/lns.sh ${DATASORT} ${PROD}/sorting
0060 ${SCRIPTS}/lns.sh ${ALPHADIR} ${PROD}/alphabeta
0061
0062 ${SCRIPTS}/mkdir.sh ${PROD}/shapes 'shapes directory'
0063 ${SCRIPTS}/mkdir.sh ${PROD}/templates 'templates directory'
0064 ${SCRIPTS}/mkdir.sh ${PROD}/meconfig 'meconfig directory'
0065 ${SCRIPTS}/mkdir.sh ${PROD}/log 'log directory'
0066 ${SCRIPTS}/lnsf.sh ${MUSECALDATADIR}/LVB.jpg ${PROD}/meconfig/LVB.jpg
0067
0068 ${SCRIPTS}/cp.sh ${MUSECALDATADIR}/MusEcal_EB.config ${PROD}/meconfig/${STORE}_EB.config
0069 ${SCRIPTS}/cp.sh ${MUSECALDATADIR}/MusEcal_EE.config ${PROD}/meconfig/${STORE}_EE.config
0070
0071 cp $PYDIR/*py ${PROD}/templates/.
0072 cp $SHAPEDIR/ElecMeanShape.root ${PROD}/shapes/.
0073
0074 goto done
0075
0076 done:
0077 exit 0
0078 error:
0079 exit 1