#!/bin/bash export PREFIX=/cvmfs/comet.egi.eu/ICEDUST_CMAKE export ICEPREFIX=$PREFIX/icedust.simg/cvmfs_copy/ICEDUST source $ICEPREFIX/ICEDUST_install/setup.sh export ICEDUST_FIELDMAPS=$PREFIX/../Fieldmaps/220304_COMET_Phase-I_Opera_MTSFineMesh_15Regions/Upstream source $ICEDUST_FIELDMAPS/enable.sh #Maybe an issue here with / export OUTPUT_DIR=data_ustrm_tmp/ mkdir -p $OUTPUT_DIR export SH_SUBRUN=0 export SH_NUM_EVENTS=10 #000 export INPUT_FILE=$PREFIX/../ProtonBeam/20211108_ProtonBeamHistogram.root export SH_RUN_NUMBER=$1 export SH_RANDOM_SEED=$(( (5<<16) + $1 )) # Make the random seed some big number plus the task id $ICEPREFIX/ICEDUST_install/IcedustControl/app/RunIcedustControl -c $PREFIX/upstream.cfg -u $SH_NUM_EVENTS