Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:13

0001 #!/bin/bash
0002 function usage(){
0003   echo "Usage: $0 [-h|--help] <data-file>"
0004   echo "       $0 CondTools/Hcal/data/hcalpfcuts.txt"
0005   exit $1
0006 }
0007 
0008 
0009 if [ "$1" = "" ] ; then
0010   echo "ERROR: Mising input data file name"
0011   usage 1
0012 fi
0013 [ "$1" = "-h" -o "$1" = "--help" ] && usage 0
0014 
0015 data_file=$1
0016 for dir in $(echo $CMSSW_SEARCH_PATH | tr ':' '\n') ; do
0017   [ -e $dir/${data_file} ] || continue
0018   echo "$dir/${data_file}"
0019   exit 0
0020 done
0021 exit 1