forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrec.C
41 lines (33 loc) · 1.13 KB
/
rec.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
void rec(const char *filename="raw.root")
{
/////////////////////////////////////////////////////////////////////////////////////////
//
// Script for the online reconstruction/visualization
//
/////////////////////////////////////////////////////////////////////////////////////////
AliTPCRecoParam::SetUseTimeCalibration(kFALSE);
// Setting CDB
AliCDBManager * man = AliCDBManager::Instance();
man->SetDefaultStorage("local:///local/cdb");
man->SetSpecificStorage("GRP/GRP/Data",
Form("local://%s/..",gSystem->pwd()));
man->SetSpecificStorage("GRP/CTP/Config",
Form("local://%s/..",gSystem->pwd()));
// Reconstruction settings
AliReconstruction rec;
// QA options
rec.SetRunQA(":");
rec.SetRunGlobalQA(kFALSE);
rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
rec.SetRunPlaneEff(kTRUE);
// AliReconstruction settings
rec.SetWriteESDfriend(kTRUE);
rec.SetWriteAlignmentData();
rec.SetInput(filename);
rec.SetRunReconstruction("ALL -PHOS -HLT");
rec.SetUseTrackingErrorsForAlignment("ITS");
// switch off cleanESD
rec.SetCleanESD(kFALSE);
AliLog::Flush();
rec.Run();
}