Recent first physics productions.
[u/mrichter/AliRoot.git] / prod / cosmic / rec.C
CommitLineData
bb72d990 1void rec(const char *filename="raw.root")\r
40d0f38f 2{\r
40d0f38f 3 /////////////////////////////////////////////////////////////////////////////////////////\r
4 //\r
bb72d990 5 // First version of the reconstruction\r
6 // script for the 2009 data (LHC09b) \r
09244196 7 //\r
8 /////////////////////////////////////////////////////////////////////////////////////////\r
09244196 9 gSystem->Load("libRAliEn.so");\r
10 gSystem->Load("libNet.so");\r
5225c9db 11 gSystem->Load("libMonaLisa.so");\r
12 new TMonaLisaWriter(0, "GridAliRoot-rec.C", 0, 0, "global");\r
13 gSystem->Setenv("APMON_INTERVAL", "120");\r
40d0f38f 14\r
15 // Set the CDB storage location\r
40d0f38f 16 AliCDBManager * man = AliCDBManager::Instance();\r
bb72d990 17 man->SetDefaultStorage("raw://");\r
40d0f38f 18 \r
09244196 19 // Reconstruction settings\r
20 AliReconstruction rec;\r
40d0f38f 21\r
bb72d990 22 // QA options\r
23 rec.SetRunQA("ALL:ALL") ;\r
24 rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;\r
40d0f38f 25\r
40d0f38f 26 // AliReconstruction settings\r
40d0f38f 27 rec.SetWriteESDfriend(kTRUE);\r
28 rec.SetWriteAlignmentData();\r
21d4a8d1 29 rec.SetInput(filename);\r
bb72d990 30 rec.SetRunReconstruction("ALL");\r
40d0f38f 31 rec.SetUseTrackingErrorsForAlignment("ITS");\r
32\r
40d0f38f 33 // switch off cleanESD\r
34 rec.SetCleanESD(kFALSE);\r
35\r
40d0f38f 36 AliLog::Flush();\r
37 rec.Run();\r
38\r
40d0f38f 39}\r