#!/bin/sh # ______________________________________________________________________ # # Purpose: RECO_ANALYZE # Created: 12FEB01, HLM # ______________________________________________________________________ # ______________________________________________________________________ # # Configuration parameters # ______________________________________________________________________ SCRIPTNAME="runrecoanalyze" # Name of this script SCRIPTPATH="$D0TOOLS_BIN" # Location of this script RUNFRMWRK="rund0exe" # Script to run framework exe RCPPKG="reco_analyze" # Package containing framework rcp INITSCRIPT="initrecoanalyze.sh" # Script to initialize RECO_ANALYZE RTE # ______________________________________________________________________ # # Determine type of input, which specifies executable # ______________________________________________________________________ # Help mode for var in $*; do if [ $var = "-h" ]; then cat \ $D0TOOLS_DOC/runrecoanalyze.man1 \ $D0TOOLS_DOC/runrecoanalyze.man4 \ $D0TOOLS_DOC/rund0exe.man2 \ $D0TOOLS_DOC/rund0exe.man3 \ $D0TOOLS_DOC/rund0exe.man5 \ | more exit fi done PARAMS="" # This will hold command line options to pass to rund0exe for var in $*; do # If user specified -defname, must be SAM if [ `echo "$var" | grep -c "\-defname="` != 0 ]; then PARAMS="$PARAMS $var" EXE="RecoAnalyzeSAM_x" RCP="runRecoAnalyzeSAM.rcp" # If user uses -filelist, need to look inside elif [ `echo "$var"| grep -c "\-filelist="` != 0 ]; then PARAMS="$PARAMS $var" FILELIST=`echo "$var"| sed 's/\-filelist=//'` # Support list of SAM dataset definitions in a filelist if [ `grep -c "SAMDEFNAME:" $FILELIST` != 0 ]; then EXE="RecoAnalyzeSAM_x" RCP="runRecoAnalyzeSAM.rcp" # Must just be a list of files else EXE="RecoAnalyze_x" RCP="runRecoAnalyze.rcp" fi else PARAMS="$PARAMS $var" fi done # ______________________________________________________________________ # # Use general run framework script to run RECO # ______________________________________________________________________ $SCRIPTPATH/$RUNFRMWRK \ -exe=$EXE \ -rcp=$RCP \ -rcppkg=$RCPPKG \ -initscript=$SCRIPTPATH/$INITSCRIPT \ $PARAMS