Putting the default rec.C for online reco/viz into svn instead of using the one from...
[u/mrichter/AliRoot.git] / MONITOR / rec.C
CommitLineData
80f17fb9 1void 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
25 // AliReconstruction settings
26 rec.SetWriteESDfriend(kTRUE);
27 rec.SetWriteAlignmentData();
28 rec.SetInput(filename);
29 rec.SetRunReconstruction("ALL");
30 rec.SetUseTrackingErrorsForAlignment("ITS");
31
32 // switch off cleanESD
33 rec.SetCleanESD(kFALSE);
34
35 AliLog::Flush();
36 rec.Run();
37
38}