1 // macro to test AliITSSAPTracker in offline mode using already reconstructed data
2 // The input should be either
3 // 1) directory containing the output of the reconstruction, e.g. ppbench/
4 // (we need AliESDs.root to obtain the input SPD vertex and ITS.RecPoints.root)
5 // 2) for multiple input files: text file with paths to AliESDs.root files,
6 // e.g. /data1/LHC10h8/137366/003/AliESDs.root etc.
7 // Full reconstruction output should be in these directories (including galice.root)
9 void TestITSSAP(const char *datapath = "~/ppbench"){
11 TString dtPath = datapath;
13 AliCDBManager* man = AliCDBManager::Instance();
14 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
15 // man->SetDefaultStorage("local:///home/shahoian/ALICE/Aliroot/OCDB");
16 // man->SetSpecificStorage("ITS/Align/Data","alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
17 // man->SetSpecificStorage("ITS/Align/Data","alien://folder=/alice/simulation/2008/v4-15-Release/Ideal");
18 // man->SetSpecificStorage("ITS/Align/Data","local:///alice/simulation/2008/v4-15-Release/Ideal");
19 //man->SetSpecificStorage("ITS/Align/Data","local:///alice/simulation/2008/v4-15-Release/Residual");
22 if (!(dtPath.EndsWith(".txt")||dtPath.EndsWith(".dat"))) {
23 inpData = Form("%s/AliESDs.root",dtPath.Data());
24 gSystem->Exec(Form("ln -s -f %s/geometry.root ./",dtPath.Data()));
26 else inpData = dtPath;
27 printf("InputData : %s\n",inpData.Data());
28 gSystem->Load("libAliHLTITS.so");
29 gROOT->ProcessLine(".L Process.C+");
30 Process(inpData.Data());