#!/bin/bash
source setclasspath /mnt/data/testdaq/work

echo "it is best to move the files in /mnt/data/testdaq/domcal out of this directory first "



cd /mnt/data/testdaq/domcal

#echo "running only calibrate dom on ports 5000 to 5003  in fathub2"
#nohup java icecube.daq.domcal.DOMCal fathub2 5000 4 /mnt/data/testdaq/domcal/ calibrate dom &

#echo "running calibrate dom calibrate hv on the other 60 doms in fathub2 "
#nohup java icecube.daq.domcal.DOMCal fathub2 5004 60 /mnt/data/testdaq/domcal/ calibrate dom calibrate hv &

echo "running calibrate dom calibrate hv on the other 64 doms on fathub1 "
nohup java icecube.daq.domcal.DOMCal spts-ichub-cont01 5000 64 /mnt/data/testdaq/domcal/ calibrate dom calibrate hv &


# nohup java icecube.daq.domcal.DOMCal fathub1 5010 4  /mnt/data/testdaq/domcal/ calibrate dom calibrate hv &
#echo "running calibrate dom calibrate hv on the other 64 doms on fathub5 "
#nohup java icecube.daq.domcal.DOMCal fathub5 5000 64 /mnt/data/testdaq/domcal/ calibrate dom calibrate hv &




echo " after domcal is finished you still need to run java icecube.daq.domcal.HV2DB /mnt/data/testdaq/domcal program to get the new voltages into the database"



