Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:43

0001 #!/bin/bash
0002 set -o nounset
0003 
0004 #WorkDir='/home/dqmprolocal/filecopy' #comment out because it is defined in alivecheck_filesave.sh
0005 
0006 [ $# -gt 1 ] || { echo Usage: $(basename $0) inputFile outputFile; exit 1; }
0007 inputFile=$1
0008 outputFile=$2
0009 #echo $inputFile | grep '^Playback' > /dev/null
0010 echo $inputFile | grep 'Playback' > /dev/null
0011 [ $? -eq 0 ] || { echo Incorrect input file: $inputFile; exit 2; }
0012 
0013 #outputFile=$(echo $inputFile | sed s/^Playback/DQM/)
0014 #outputFile=$(echo $inputFile | sed s/Playback/DQM/)
0015 [ "$inputFile" != "$outputFile" ] || { echo Input and output files are the same!; exit 3; }
0016 
0017 # If needed set ROOT environment
0018 #export ROOTSYS=/nfshome0/cmssw2/slc4_ia32_gcc345/lcg/root/5.18.00a-cms11/
0019 #export ROOT_DIR=${ROOTSYS}
0020 #export LD_LIBRARY_PATH=${ROOTSYS}/lib
0021 #export PATH=${ROOTSYS}/bin:${PATH}
0022 
0023 #cd /nfshome0/dqmpro/CMSSW_2_1_4/src
0024 #eval $(scramv1 runtime -sh)
0025 #cd -
0026 
0027 root -l -b -q $WorkDir/sistrip_reduce_file.C++"(\"$inputFile\", \"$outputFile\")"
0028 exit 0