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 if (gSystem->Getenv("ALIROOT_FORCE_COREDUMP"))
16 printf("ALIROOT_FORCE_COREDUMP set\n");
17 gSystem->ResetSignal(kSigFloatingException);
18 gSystem->ResetSignal(kSigSegmentationViolation);
21 // Load some system libs for Grid and monitoring
22 // Set the CDB storage location
23 AliCDBManager * man = AliCDBManager::Instance();
24 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");
54 // Switch off the V0 finder - saves time!
55 rec.SetRunMultFinder(kTRUE);
56 rec.SetRunV0Finder(kFALSE);
59 // QA options - all QA is off
62 rec.SetRunGlobalQA(kFALSE);
64 // AliReconstruction settings
65 rec.SetWriteESDfriend(kTRUE);
66 rec.SetWriteAlignmentData();
67 rec.SetUseTrackingErrorsForAlignment("ITS");
68 rec.SetRunReconstruction("ALL");
69 rec.SetFillESD("ALL");
70 rec.SetCleanESD(kFALSE);
72 //Ignore SetStopOnError
73 rec.SetStopOnError(kFALSE);