#!/bin/bash path="/eos/user/c/clemahie/HIForward/HiForward_Hiforest_PbPb_Run2018/230301_151751/000${1}" outPath="/eos/user/c/clemahie/batchSkimNoHF_${1}.root" if test -d "${path}"; then root -b -l -q "/afs/cern.ch/user/c/clemahie/DijetAnalysis/pfSkimEx.C(\"${path}/HiForestAOD_trig_*.root\", \"${outPath}\")" fi