Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:41:23

0001 #!/bin/bash
0002 
0003 if (( ${#LOCALRT} < 4 ))
0004 then
0005     echo Please setup your runtime environment!
0006     exit
0007 fi
0008 
0009 ABFILE=$1
0010 POOLFILE=${ABFILE##*/}
0011 POOLFILE=${POOLFILE#AB-}
0012 
0013 echo "making ${POOLFILE}"
0014 
0015 rm -f ${POOLFILE}
0016 
0017 RUN=${POOLFILE##*-}
0018 RUN=${RUN%.root}
0019 
0020 echo "for run: ${RUN}"
0021 
0022 
0023 EVENTLIMIT="-1";
0024 
0025 
0026 ### create the file
0027 CFGFILE=/tmp/runLaserAnalyzer_${USER}.cfg
0028 cat > ${CFGFILE}<<EOF
0029 process ANALYZE = {
0030 
0031 // Loads the events from testbeam files
0032         source = PoolSource { 
0033                 untracked vstring fileNames = { 'file:${ABFILE}' }
0034                 untracked int32 maxEvents = ${EVENTLIMIT}
0035         }
0036 
0037 module ecalLaserAnalyze = EcalLaserAnalyzer {
0038  
0039         untracked string hitCollection = "EcalUncalibRecHitsEB"
0040         untracked string hitProducer = "ecaluncalibrechit"
0041         untracked string PNdigiCollection = ""
0042         untracked string digiProducer = "ecalEBunpacker"
0043         untracked string outFileName = "${POOLFILE}"
0044         untracked string SM = "SM22"
0045         untracked string Run = "${RUN}"
0046  
0047 }
0048  
0049 path p = { ecalLaserAnalyze }
0050 
0051 }
0052 EOF
0053 
0054 # Stuff related to the setup
0055 
0056 
0057 # run cmsRun
0058 SMLOG=SM-LOG.txt
0059 
0060 cmsRun ${CFGFILE} >& ${SMLOG} &
0061 
0062 wait
0063 
0064 echo "LASER ANALYZE DONE"
0065 
0066 exit