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