2 rec.C to be used for pass0
3 - reconstruction of raw data
4 - QA information switched off
6 - default OCDB storage set to "raw://"
9 aliroot -b -q 'recCPass1.C("raw.root",100)'
12 void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel")
14 // Load some system libs for Grid and monitoring
15 // Set the CDB storage location
16 AliCDBManager * man = AliCDBManager::Instance();
17 man->SetDefaultStorage(ocdb);
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) {
23 //rec.SetFromCDBSnapshot("OCDB.root");
24 rec.SetCDBSnapshotMode("OCDB.root");
27 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
28 gROOT->LoadMacro("localOCDBaccessConfig.C");
29 localOCDBaccessConfig();
33 rec.SetFractionFriends(1.0);
35 // AliReconstruction settings - hardwired MB trigger for calibration
37 TString newfilename = filename;
38 newfilename += options;
39 rec.SetInput(newfilename.Data());
41 // Set protection against too many events in a chunk (should not happen)
42 if (nevents>0) rec.SetEventRange(0,nevents);
44 // Remove recpoints after each event
45 rec.SetDeleteRecPoints("TPC TRD ITS");
48 // Switch off the V0 finder - saves time!
49 rec.SetRunMultFinder(kTRUE);
50 rec.SetRunV0Finder(kFALSE);
53 // QA options - all QA is off
56 rec.SetRunGlobalQA(kFALSE);
58 // AliReconstruction settings
59 rec.SetWriteESDfriend(kTRUE);
60 rec.SetWriteAlignmentData();
61 rec.SetUseTrackingErrorsForAlignment("ITS");
62 rec.SetRunReconstruction("ALL");
63 rec.SetFillESD("ALL");
64 rec.SetCleanESD(kFALSE);
66 // Specific reco params for ZDC (why isn't this automatic?)
67 // rec.SetRecoParam("ZDC",AliZDCRecoParamPbPb::GetHighFluxParam(2760));
69 //Ignore SetStopOnError
70 rec.SetStopOnError(kFALSE);