mv syswatch.log syswatch_calib.log
-echo ">>>>>>> Extracting system information..."
-echo aliroot -b -q $ALICE_ROOT/PWGPP/CalibMacros/CPass0/makeSyswatchCPass0.C\(\"AliESDfriends_v1.root\"\)
-aliroot -b -q $ALICE_ROOT/PWGPP/CalibMacros/CPass0/makeSyswatchCPass0.C\(\"AliESDfriends_v1.root\"\)
+if [[ -f $ALICE_ROOT/PWGPP/CalibMacros/CPass0/makeSyswatchCPass0.C ]]; then
+ echo ">>>>>>> Extracting system information..."
+ echo executing aliroot -b -q "$ALICE_ROOT/PWGPP/CalibMacros/CPass0/makeSyswatchCPass0.C(\"AliESDfriends_v1.root\")"
+ aliroot -b -q "$ALICE_ROOT/PWGPP/CalibMacros/CPass0/makeSyswatchCPass0.C(\"AliESDfriends_v1.root\")"
+else
+ echo $ALICE_ROOT/PWGPP/CalibMacros/CPass0/makeSyswatchCPass0.C not there
+fi
fi
done
-echo ">>>>>>> Extracting system information..."
-echo executing aliroot -b -q "$ALICE_ROOT/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C(\"AliESDfriends_v1.root\")"
-aliroot -b -q "$ALICE_ROOT/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C(\"AliESDfriends_v1.root\")"
+if [[ -f $ALICE_ROOT/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C ]]; then
+ echo ">>>>>>> Extracting system information..."
+ echo executing aliroot -b -q "$ALICE_ROOT/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C(\"AliESDfriends_v1.root\")"
+ aliroot -b -q "$ALICE_ROOT/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C(\"AliESDfriends_v1.root\")"
+else
+ echo $ALICE_ROOT/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C not there
+fi