Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-02 08:19:35

0001 #!/usr/bin/bash
0002 
0003 export USER="$(id -u -n)"
0004 export LOGNAME=${USER}
0005 export HOME=/sphenix/u/${USER}
0006 
0007 hostname
0008 
0009 this_script=$BASH_SOURCE
0010 this_script=`readlink -f $this_script`
0011 this_dir=`dirname $this_script`
0012 echo rsyncing from $this_dir
0013 echo running: $this_script $*
0014 
0015 source /cvmfs/sphenix.sdcc.bnl.gov/gcc-12.1.0/opt/sphenix/core/bin/sphenix_setup.sh -n 
0016 #source /cvmfs/sphenix.sdcc.bnl.gov/gcc-12.1.0/opt/sphenix/core/bin/setup_local.sh /sphenix/u/sphnxpro/chp/eventcombine/install
0017 
0018 if [[ ! -z "$_CONDOR_SCRATCH_DIR" && -d $_CONDOR_SCRATCH_DIR ]]
0019 then
0020     cd $_CONDOR_SCRATCH_DIR
0021     rsync -av $this_dir/* .
0022 else
0023    echo condor scratch NOT set
0024    exit -1
0025 fi
0026 
0027 # arguments 
0028 # $1: run number
0029 # $2: hepmc input file
0030 # $3: output file
0031 # $4: no events to skip
0032 # $5: output dir
0033 # $6: runnumber
0034 # $7: sequence
0035 
0036 echo 'here comes your environment'
0037 printenv
0038 
0039 sh makelist.sh $1
0040 
0041 root.exe -q -b Fun4All_Combiner.C\(0\)
0042 
0043 echo "script done"