]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MONITOR/rec.C
Fixing bug #59470
[u/mrichter/AliRoot.git] / MONITOR / rec.C
1 void rec(const char *filename="raw.root")
2 {
3   /////////////////////////////////////////////////////////////////////////////////////////
4   //
5   // Script for the online reconstruction/visualization
6   //
7   /////////////////////////////////////////////////////////////////////////////////////////
8
9   // Setting CDB
10   AliCDBManager * man = AliCDBManager::Instance();
11   man->SetDefaultStorage("local:///local/cdb");
12   man->SetSpecificStorage("GRP/GRP/Data",
13                           Form("local://%s/..",gSystem->pwd()));
14   man->SetSpecificStorage("GRP/CTP/Config",
15                           Form("local://%s/..",gSystem->pwd()));
16   
17   // Reconstruction settings
18   AliReconstruction rec;
19
20   // QA options
21   rec.SetRunQA(":") ;
22   rec.SetRunGlobalQA(kFALSE);
23   rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
24   rec.SetRunPlaneEff(kTRUE);
25
26   // AliReconstruction settings
27   rec.SetWriteESDfriend(kTRUE);
28   rec.SetWriteAlignmentData();
29   rec.SetInput(filename);
30   rec.SetRunReconstruction("ALL");
31   rec.SetUseTrackingErrorsForAlignment("ITS");
32
33   // switch off cleanESD
34   rec.SetCleanESD(kFALSE);
35
36   AliLog::Flush();
37   rec.Run();
38
39 }