]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/CalibMacros/CPass1/recCPass1.C
Steering macros and scripts: updated and merged with alien versions (after testing...
[u/mrichter/AliRoot.git] / PWGPP / CalibMacros / CPass1 / recCPass1.C
CommitLineData
ca1ed0f3 1/*
2 rec.C to be used for pass0
3 - reconstruction of raw data
4 - QA information switched off
5 - store all friends
6 - default OCDB storage set to "raw://"
7
8 Example:
9 aliroot -b -q 'recCPass1.C("raw.root",100)'
10*/
11
a6168b42 12void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel")
ca1ed0f3 13{
14 // Load some system libs for Grid and monitoring
15 // Set the CDB storage location
16 AliCDBManager * man = AliCDBManager::Instance();
17 man->SetDefaultStorage(ocdb);
9e160db9 18
ca1ed0f3 19 // Reconstruction settings
20 AliReconstruction rec;
21 // Upload CDB entries from the snapshot (local root file) if snapshot exist
22 if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {
5cebce24 23 //rec.SetFromCDBSnapshot("OCDB.root");
24 rec.SetCDBSnapshotMode("OCDB.root");
ca1ed0f3 25 }
9e160db9 26
27 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
28 gROOT->LoadMacro("localOCDBaccessConfig.C");
29 localOCDBaccessConfig();
30 }
31
ca1ed0f3 32 // All friends
33 rec.SetFractionFriends(1.0);
34
35 // AliReconstruction settings - hardwired MB trigger for calibration
36
37 TString newfilename = filename;
a6168b42 38 newfilename += options;
ca1ed0f3 39 rec.SetInput(newfilename.Data());
40
41 // Set protection against too many events in a chunk (should not happen)
42 if (nevents>0) rec.SetEventRange(0,nevents);
43
44 // Remove recpoints after each event
45 rec.SetDeleteRecPoints("TPC TRD ITS");
9e160db9 46
ca1ed0f3 47
48 // Switch off the V0 finder - saves time!
383fa54e 49 rec.SetRunMultFinder(kTRUE);
ca1ed0f3 50 rec.SetRunV0Finder(kFALSE);
51
52 //
53 // QA options - all QA is off
54 //
55 rec.SetRunQA(":");
56 rec.SetRunGlobalQA(kFALSE);
57
58 // AliReconstruction settings
59 rec.SetWriteESDfriend(kTRUE);
60 rec.SetWriteAlignmentData();
61 rec.SetUseTrackingErrorsForAlignment("ITS");
5cebce24 62 rec.SetRunReconstruction("ALL");
63 rec.SetFillESD("ALL");
ca1ed0f3 64 rec.SetCleanESD(kFALSE);
65
66 // Specific reco params for ZDC (why isn't this automatic?)
67// rec.SetRecoParam("ZDC",AliZDCRecoParamPbPb::GetHighFluxParam(2760));
68
69 //Ignore SetStopOnError
70 rec.SetStopOnError(kFALSE);
71
72 AliLog::Flush();
73 rec.Run();
74}
75