same modifications as in ppbench
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Jan 2009 13:51:42 +0000 (13:51 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Jan 2009 13:51:42 +0000 (13:51 +0000)
test/PbPbbench/rec.C
test/PbPbbench/runtest.sh
test/PbPbbench/sim.C

index 6da03f96cafd79b7caeaccf1055a8b95a36d458b..2a9a5a3a7bcc697f6db4fac71cd77f1db88c982f 100644 (file)
@@ -7,6 +7,14 @@ void rec() {
   reco.SetDefaultStorage("local://$ALICE_ROOT");
   reco.SetSpecificStorage("GRP/GRP/Data",
                          Form("local://%s",gSystem->pwd()));
+  reco.SetRunQA("ALL:ALL") ;
+  
+  AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
+  
+  for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
+    reco.SetQACycles(det, 999) ;
+    reco.SetQAWriteExpert(det) ; 
+  }
 
   TStopwatch timer;
   timer.Start();
index 6a5b78d96637d665db091e19250bab7bdc5345a7..df9ae9f110b8e256d2f9c18fa148191b150040e7 100755 (executable)
@@ -18,7 +18,9 @@ aliroot -b -q $1sim.C      2>&1 | tee sim.log
 aliroot -b -q $1rec.C      2>&1 | tee rec.log
 aliroot -b -q ${ALICE_ROOT}/STEER/CheckESD.C 2>&1 | tee check.log
 aliroot -b -q ${ALICE_ROOT}/STEER/CreateAODfromESD.C 2>&1 | tee aod.log
-
+if [ ! -e recraw ] ; then 
+ mkdir recraw
+fi
 cd recraw
 ln -s ../raw.root
 aliroot -b -q rec.C      2>&1 | tee rec.log
index 55f41df07a4b910e38776991f813b34b5bdfdea6..bac9dbe57e4a34efbd0182d3ecf02d10ca7fd86d 100644 (file)
@@ -1,11 +1,18 @@
 void sim(Int_t nev=1) {
   AliSimulation simulator;
+  if (gSystem->Getenv("EVENT"))
+   nev = atoi(gSystem->Getenv("EVENT")) ;   
   simulator.SetWriteRawData("ALL","raw.root",kTRUE);
 
   simulator.SetDefaultStorage("local://$ALICE_ROOT");
   simulator.SetSpecificStorage("GRP/GRP/Data",
                               Form("local://%s",gSystem->pwd()));
+  simulator.SetRunQA("ALL:ALL") ; 
+  AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
+  
+  for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
+    simulator.SetQACycles(det, nev+1) ;
+  }
   TStopwatch timer;
   timer.Start();
   simulator.Run(nev);