Correct shell scipt and macro to be used with 2009 data.
[u/mrichter/AliRoot.git] / test / 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
bb72d990 26 AliGRPRecoParam *grpRecoParam = AliGRPRecoParam::GetLowFluxParam();\r
27 grpRecoParam->SetVertexerTracksConstraintITS(kFALSE);\r
28 grpRecoParam->SetVertexerTracksConstraintTPC(kFALSE);\r
29 grpRecoParam->SetMostProbablePt(3.0);\r
30 rec.SetRecoParam("GRP",grpRecoParam);\r
40d0f38f 31\r
32 // AliReconstruction settings\r
40d0f38f 33 rec.SetWriteESDfriend(kTRUE);\r
34 rec.SetWriteAlignmentData();\r
21d4a8d1 35 rec.SetInput(filename);\r
bb72d990 36 rec.SetRunReconstruction("ALL");\r
40d0f38f 37 rec.SetUseTrackingErrorsForAlignment("ITS");\r
38\r
40d0f38f 39 // switch off cleanESD\r
40 rec.SetCleanESD(kFALSE);\r
41\r
40d0f38f 42 AliLog::Flush();\r
43 rec.Run();\r
44\r
40d0f38f 45}\r