#!/bin/bash

##Script to that can be used to unpack all simulation data from a TAPSim queue job
##Markus Kuehbach, 2018/07/12, m.kuehbach at mpie.de

##user required input
##pillar queue start id and end id
pids=$1
pide=$2

for ((pid = $pids; pid <= $pide; pid += 1)); do
	eval "tar -xvf TAPSIMSimID$pid.DetectorHits.tar.gz"
	eval "tar -xvf TAPSIMSimID$pid.Input.tar.gz"
done
