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")
15 if (gSystem->Getenv("ALIROOT_FORCE_COREDUMP"))
17 printf("ALIROOT_FORCE_COREDUMP set\n");
18 gSystem->ResetSignal(kSigFloatingException);
19 gSystem->ResetSignal(kSigSegmentationViolation);
22 // Load some system libs for Grid and monitoring
23 // Set the CDB storage location
24 AliCDBManager * man = AliCDBManager::Instance();
25 man->SetDefaultStorage(ocdb);
26 // Reconstruction settings
27 AliReconstruction rec;
28 // Upload CDB entries from the snapshot (local root file) if snapshot exist
29 if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {
30 rec.SetCDBSnapshotMode("OCDB.root");
33 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
34 gROOT->LoadMacro("localOCDBaccessConfig.C");
35 localOCDBaccessConfig();
39 rec.SetFractionFriends(1.0);
41 // AliReconstruction settings - hardwired MB trigger for calibration
43 TString newfilename = filename;
44 newfilename += options;
45 rec.SetInput(newfilename.Data());
47 // Set protection against too many events in a chunk (should not happen)
48 if (nevents>0) rec.SetEventRange(0,nevents);
50 // Remove recpoints after each event
51 rec.SetDeleteRecPoints("TPC TRD ITS");
55 // Switch off the V0 finder - saves time!
56 // rec.SetRunMultFinder(kFALSE);
57 rec.SetRunV0Finder(kFALSE);
60 // QA options - all QA is off
63 rec.SetRunGlobalQA(kFALSE);
65 // AliReconstruction settings
66 rec.SetWriteESDfriend(kTRUE);
67 rec.SetWriteAlignmentData();
68 rec.SetUseTrackingErrorsForAlignment("ITS");
69 rec.SetRunReconstruction("ALL");
70 rec.SetFillESD("ALL");
71 rec.SetCleanESD(kFALSE);
73 //Ignore SetStopOnError
74 rec.SetStopOnError(kFALSE);