Updated version of the Test TPC toolkits (Marian)
[u/mrichter/AliRoot.git] / TPC / macros / testTPC / rec.C
CommitLineData
027ef365 1void rec(const char *filename="data.root")
799564e6 2{
027ef365 3
4 char *ocdbpath = gSystem->Getenv("OCDB_PATH");
5 if (ocdbpath==0){
6 ocdbpath="alien://folder=/alice/data/2007/LHC07w/OCDB/";
7 }
8 printf("OCDB PATH = %s\n",ocdbpath);
9
10
c6d9a3a0 11 //gSystem->Load("libXrdClient.so");
12 //gSystem->Load("libNetx.so");
799564e6 13 AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
14 AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
15 AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
16 AliLog::SetModuleDebugLevel("RAW",-5);
17 AliLog::SetGlobalLogLevel(3);
c6d9a3a0 18
d1ad7a9c 19 //
799564e6 20 // First version of the reconstruction
21 // script for the FDR'07
22
23 // Set the CDB storage location
24 // AliLog::SetModuleDebugLevel("STEER",2);
25 AliCDBManager * man = AliCDBManager::Instance();
26 //man->SetDefaultStorage("alien://folder=/alice/data/2007/LHC07w/OCDB/");
27 man->SetDefaultStorage(ocdbpath);
28 // man->SetSpecificStorage("TPC/Calib/Parameters","local:///data/test2007/");
29 // man->SetSpecificStorage("TPC/Calib/PadNoise","local:///data/test2007/");
30 // man->SetSpecificStorage("ITS/Calib/DDLMapSDD","local://$ALICE_ROOT");
31 // man->SetSpecificStorage("MUON/Calib/Mapping","local://$ALICE_ROOT");
32 // man->SetSpecificStorage("MUON/Calib/DDLStore","local://$ALICE_ROOT");
33
34 // TPC settings
35 AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
36 AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kFALSE);
37 tpcRecoParam->SetTimeInterval(60,940);
38 tpcRecoParam->Dump();
39 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
40 AliTPCReconstructor::SetStreamLevel(1);
41
42 // PHOS settings
43 AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
44 recEmc->SetSubtractPedestals(kTRUE);
45 recEmc->SetMinE(0.05);
46 recEmc->SetClusteringThreshold(0.10);
47 AliPHOSReconstructor::SetRecoParamEmc(recEmc);
48
49 // T0 settings
50 AliLog::SetModuleDebugLevel("T0", 10);
51
52 // MUON settings
53 AliLog::SetClassDebugLevel("AliMUONRawStreamTracker",3);
54
55 // Tracking settings
56 // AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
57 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 0., 10., 2);
58 AliTracker::SetFieldMap(field,1);
59
60 // AliReconstruction settings
61 AliReconstruction rec;
62 rec.SetUniformFieldTracking(kFALSE);
63 rec.SetWriteESDfriend(kTRUE);
64 rec.SetWriteAlignmentData();
65 rec.SetInput(filename);
66 //
67 //rec.SetRunLocalReconstruction("");
68 rec.SetRunReconstruction("TPC");
d1ad7a9c 69 rec.SetFillESD("TPC");
799564e6 70 rec.SetRunV0Finder(kFALSE);
d1ad7a9c 71 rec.SetRunVertexFinder(kFALSE);
799564e6 72
027ef365 73 rec.SetRunQA(kTRUE);
799564e6 74
75 // Detector options if any
76 rec.SetOption("MUON","SAVEDIGITS");
77 rec.SetOption("TPC","OldRCUFormat");
78 rec.SetOption("PHOS","OldRCUFormat");
79
80 // To be enabled when CTP readout starts
81 rec.SetFillTriggerESD(kFALSE);
82
83 // all events in one single file
84 rec.SetNumberOfEventsPerFile(-1);
85
86 // switch off cleanESD
87 rec.SetCleanESD(kFALSE);
88
89 //AliLog::SetGlobalDebugLevel(2);
90 rec.Run();
91
92 cout << "-----------------------------------------------------------------" << endl;
93 cout << "-----------------------------------------------------------------" << endl;
94 cout << "--------- Reconstruction Completed. Start merging QAs -----------" << endl;
95 cout << "-----------------------------------------------------------------" << endl;
96 cout << "-----------------------------------------------------------------" << endl;
c6d9a3a0 97 //
98 cout <<" EXITING RECONSTRUNCTION SESSION\n";
99 //
100 exit();
027ef365 101 AliTPCcalibDB::Instance()->GetParameters()->Dump();
c6d9a3a0 102 // AliQADataMakerSteer qas;
103 // qas.Merge();
799564e6 104}