]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MONITOR/rec.C
Fixed storing size of singles -> track reference
[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   AliTPCRecoParam::SetUseTimeCalibration(kFALSE);
9
10   // Setting CDB
11   AliCDBManager * man = AliCDBManager::Instance();
12   man->SetDefaultStorage("local:///local/cdb");
13   man->SetSpecificStorage("GRP/GRP/Data",
14                           Form("local://%s/..",gSystem->pwd()));
15   man->SetSpecificStorage("GRP/CTP/Config",
16                           Form("local://%s/..",gSystem->pwd()));
17   
18   // Reconstruction settings
19   AliReconstruction rec;
20
21   // QA options
22   rec.SetRunQA(":") ;
23   rec.SetRunGlobalQA(kFALSE);
24   rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
25   rec.SetRunPlaneEff(kTRUE);
26
27   // AliReconstruction settings
28   rec.SetWriteESDfriend(kTRUE);
29   rec.SetWriteAlignmentData();
30   rec.SetInput(filename);
31   rec.SetRunReconstruction("ALL -PHOS -HLT");
32   rec.SetUseTrackingErrorsForAlignment("ITS");
33
34   // switch off cleanESD
35   rec.SetCleanESD(kFALSE);
36
37   AliLog::Flush();
38   rec.Run();
39
40 }