Putting the default rec.C for online reco/viz into svn instead of using the one from...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Nov 2009 09:40:16 +0000 (09:40 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Nov 2009 09:40:16 +0000 (09:40 +0000)
MONITOR/AliOnlineReco.cxx
MONITOR/rec.C [new file with mode: 0644]

index 1d2ea29..310d6e4 100644 (file)
@@ -185,7 +185,7 @@ void AliOnlineReco::StartAliEve(mIntInt_i& mi)
        gSystem->mkdir(Form("run%d_%d", run, (Int_t)procPID));
        gSystem->cd(Form("run%d_%d", run, (Int_t)procPID));
 
-       const char *recMacroPath = "$ALICE_ROOT/test/cosmic/rec.C";
+       const char *recMacroPath = "$ALICE_ROOT/MONITOR/rec.C";
 
        s = execlp("alieve",
                   "alieve",
diff --git a/MONITOR/rec.C b/MONITOR/rec.C
new file mode 100644 (file)
index 0000000..5d8f02a
--- /dev/null
@@ -0,0 +1,38 @@
+void rec(const char *filename="raw.root")
+{
+  /////////////////////////////////////////////////////////////////////////////////////////
+  //
+  // Script for the online reconstruction/visualization
+  //
+  /////////////////////////////////////////////////////////////////////////////////////////
+
+  // Setting CDB
+  AliCDBManager * man = AliCDBManager::Instance();
+  man->SetDefaultStorage("local:///local/cdb");
+  man->SetSpecificStorage("GRP/GRP/Data",
+                         Form("local://%s/..",gSystem->pwd()));
+  man->SetSpecificStorage("GRP/CTP/Config",
+                         Form("local://%s/..",gSystem->pwd()));
+  
+  // Reconstruction settings
+  AliReconstruction rec;
+
+  // QA options
+  rec.SetRunQA(":") ;
+  rec.SetRunGlobalQA(kFALSE);
+  rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
+
+  // AliReconstruction settings
+  rec.SetWriteESDfriend(kTRUE);
+  rec.SetWriteAlignmentData();
+  rec.SetInput(filename);
+  rec.SetRunReconstruction("ALL");
+  rec.SetUseTrackingErrorsForAlignment("ITS");
+
+  // switch off cleanESD
+  rec.SetCleanESD(kFALSE);
+
+  AliLog::Flush();
+  rec.Run();
+
+}