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 'recCPass0.C("raw.root",100)'
12 void recCPass0(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);
18 // Reconstruction settings
19 AliReconstruction rec;
20 // Upload CDB entries from the snapshot (local root file) if snapshot exist
21 if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {
22 rec.SetCDBSnapshotMode("OCDB.root");
25 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
26 gROOT->LoadMacro("localOCDBaccessConfig.C");
27 localOCDBaccessConfig();
31 rec.SetFractionFriends(1.0);
33 // AliReconstruction settings - hardwired MB trigger for calibration
35 TString newfilename = filename;
36 newfilename += options;
37 rec.SetInput(newfilename.Data());
39 // Set protection against too many events in a chunk (should not happen)
40 if (nevents>0) rec.SetEventRange(0,nevents);
42 // Remove recpoints after each event
43 rec.SetDeleteRecPoints("TPC TRD ITS");
47 // Switch off the V0 finder - saves time!
48 // rec.SetRunMultFinder(kFALSE);
49 rec.SetRunV0Finder(kFALSE);
52 // QA options - all QA is off
55 rec.SetRunGlobalQA(kFALSE);
57 // AliReconstruction settings
58 rec.SetWriteESDfriend(kTRUE);
59 rec.SetWriteAlignmentData();
60 rec.SetUseTrackingErrorsForAlignment("ITS");
61 rec.SetRunReconstruction("ALL -HLT");
62 rec.SetFillESD("ALL");
63 rec.SetCleanESD(kFALSE);
65 //Ignore SetStopOnError
66 rec.SetStopOnError(kFALSE);