Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:51

0001 #!/bin/csh
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 if( $MACHINE == $MON_HOSTNAME_EE ) then
0014   echo "EE assigned to this machine"
0015 else if($MACHINE == $MON_HOSTNAME_EBODD ) then
0016   echo "EB Odd assigned to this machine"
0017 else if($MACHINE == $MON_HOSTNAME_EBEVEN ) then
0018   echo "EB Even assigned to this machine"
0019 else
0020   echo "Unknown machine"
0021   goto error
0022 endif
0023 
0024 date
0025 
0026 # location of data files to be set by user:
0027 #============================================
0028 
0029 #setenv SORTING /cmsecallaser/srv-c2d17-18/disk0/sorting-reprocess #CRAFT
0030 setenv SORTING /cmsecallaser/srv-c2d17-19/disk0/ecallaser/data/run_sorted/cosmics2009
0031 setenv OUTPUTPATH /cmsecallaser/srv-c2d17-19/disk0/ecallaser/data/LM
0032 setenv PRIMITIVES /nfshome0/ecallaser/LaserPrim
0033 setenv PROD     Cosmics09_310
0034 setenv STORE    Cosmics09_310 
0035 
0036 setenv DATASORT ${SORTING}/out
0037 
0038 setenv SCRIPTS  ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/scripts
0039 setenv SHAPEDIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/sprshapes
0040 setenv ALPHADIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/alphabeta
0041 setenv MUSECALDATADIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/musecal
0042 setenv PYDIR ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/data/pytemplates
0043 setenv MUSECAL ${PWD}/CalibCalorimetry/EcalLaserAnalyzer/test/MusEcal
0044 
0045 
0046 ${SCRIPTS}/mkdir.sh ${OUTPUTPATH}/${STORE} 'Monitoring directory'
0047 ${SCRIPTS}/mkdir.sh ${PRIMITIVES}/${STORE} 'Primitives directory'
0048 
0049 ${SCRIPTS}/lns.sh ${OUTPUTPATH}/${STORE} ${PROD}
0050 ${SCRIPTS}/lns.sh ${OUTPUTPATH}/${STORE} ${PROD}
0051 ${SCRIPTS}/lns.sh ${PRIMITIVES}/${STORE} ${PROD}/primitives
0052 ${SCRIPTS}/lns.sh ${MUSECAL} ${PROD}/musecal
0053 ${SCRIPTS}/lns.sh ${SCRIPTS} ${PROD}/scripts
0054 ${SCRIPTS}/lns.sh ${DATASORT} ${PROD}/sorting
0055 ${SCRIPTS}/lns.sh ${ALPHADIR} ${PROD}/alphabeta
0056 
0057 ${SCRIPTS}/mkdir.sh ${PROD}/shapes 'shapes directory'
0058 ${SCRIPTS}/mkdir.sh ${PROD}/templates 'templates directory'
0059 ${SCRIPTS}/mkdir.sh ${PROD}/meconfig 'meconfig directory'
0060 ${SCRIPTS}/mkdir.sh ${PROD}/log 'log directory'
0061 ${SCRIPTS}/lnsf.sh ${MUSECALDATADIR}/LVB.jpg ${PROD}/meconfig/LVB.jpg 
0062 
0063 ${SCRIPTS}/cp.sh ${MUSECALDATADIR}/MusEcal_EB.config ${PROD}/meconfig/${STORE}_EB.config
0064 ${SCRIPTS}/cp.sh ${MUSECALDATADIR}/MusEcal_EE.config ${PROD}/meconfig/${STORE}_EE.config
0065 
0066 cp  $PYDIR/*py ${PROD}/templates/. 
0067 cp  $SHAPEDIR/ElecMeanShape.root ${PROD}/shapes/. 
0068 
0069 goto done
0070 
0071 done:
0072      exit 0
0073 error:
0074      exit 1