Adding QA train into the CPass1
[u/mrichter/AliRoot.git] / PWGPP / CalibMacros / CPass1 / runCPass1.sh
index a9e4ab364deaa3752a12edf403f9e71e7f6bbc6e..24624cc10e18878babc473eb016feeee2dc49584 100644 (file)
@@ -66,3 +66,14 @@ mv syswatch.log syswatch_rec.log
 echo ">>>>>>> Running AliRoot to make calibration..."
 aliroot -l -b -q  runCalibTrain.C\(\""$runNum\",\"AliESDs.root\",\"$ocdbPath"\"\)   2>&1 | tee calib.log
 mv syswatch.log syswatch_calib.log
+
+
+
+if [ -f QAtrain.C ]; then
+    echo ">>>>>>> Running the QA train..."
+    time aliroot -b -q QAtrain.C\($runstripped\) 2>&1 | tee qa.log
+
+    for file in *.stat; do
+        mv $file $file.qa
+    done
+fi