]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/runDataReconstruction.C
Remove SetNumberOfEventsPerFile which is a priori no longer needed
[u/mrichter/AliRoot.git] / MUON / runDataReconstruction.C
index fd1375b20da8ec124419520ca2c6023784581913..6d0da1d3f4d79c946cb476676ee5ec89034f134c 100644 (file)
 #include <TSystem.h>
 #endif
 
-void runDataReconstruction(const char* input = "raw://run86102",
+void runDataReconstruction(const char* input = "raw://run124360",
                            const char* ocdbPath = "raw://",
                            const char* recoptions="SAVEDIGITS",
-                           Int_t numberOfEvents=-1)
+                           Int_t numberOfEvents=1000)
 { 
   AliCDBManager* man = AliCDBManager::Instance();
   man->SetDefaultStorage(ocdbPath);
 
-  AliReconstruction MuonRec;
+  AliReconstruction rec;
   
-  MuonRec.SetInput(gSystem->ExpandPathName(input));
-  MuonRec.SetRunVertexFinder(kFALSE);
-  MuonRec.SetRunLocalReconstruction("MUON");
-  MuonRec.SetRunTracking("MUON");
-  MuonRec.SetFillESD(" ");
-  MuonRec.SetLoadAlignData("MUON");
-  MuonRec.SetNumberOfEventsPerFile(0);
-  MuonRec.SetOption("MUON",recoptions);  
-  MuonRec.SetRunQA("MUON:ALL");
-  MuonRec.SetQAWriteExpert(AliQAv1::kMUON);
+  rec.SetRunReconstruction("MUON");
+
+  rec.SetRunQA("MUON:ALL");
+
+  rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
+
+  rec.SetWriteESDfriend(kTRUE);
+  rec.SetWriteAlignmentData();
+
+  rec.SetInput(gSystem->ExpandPathName(input));
+
+  rec.SetUseTrackingErrorsForAlignment("ITS");
+
+  rec.SetCleanESD(kFALSE);
+
+  rec.SetStopOnError(kFALSE);
+
+  rec.SetOption("MUON",recoptions);  
+
+  rec.SetQAWriteExpert(AliQAv1::kMUON);
 
   if ( numberOfEvents > 0 )
   {
-    MuonRec.SetEventRange(0,numberOfEvents);
+    rec.SetEventRange(0,numberOfEvents);
   }
-  MuonRec.Run();
+
+  AliLog::Flush();
+  rec.Run();
   
 }