]>
Commit | Line | Data |
---|---|---|
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 | ||
12 | void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel") | |
13 | { | |
14 | if (gSystem->Getenv("ALIROOT_FORCE_COREDUMP")) | |
15 | { | |
16 | printf("ALIROOT_FORCE_COREDUMP set\n"); | |
17 | gSystem->ResetSignal(kSigFloatingException); | |
18 | gSystem->ResetSignal(kSigSegmentationViolation); | |
19 | } | |
20 | ||
21 | // Load some system libs for Grid and monitoring | |
22 | // Set the CDB storage location | |
23 | AliCDBManager * man = AliCDBManager::Instance(); | |
24 | man->SetDefaultStorage(ocdb); | |
25 | ||
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"); | |
31 | } | |
32 | ||
33 | if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) { | |
34 | gROOT->LoadMacro("localOCDBaccessConfig.C"); | |
35 | localOCDBaccessConfig(); | |
36 | } | |
37 | ||
38 | // All friends | |
39 | rec.SetFractionFriends(1.0); | |
40 | ||
41 | // AliReconstruction settings - hardwired MB trigger for calibration | |
42 | ||
43 | TString newfilename = filename; | |
44 | newfilename += options; | |
45 | rec.SetInput(newfilename.Data()); | |
46 | ||
47 | // Set protection against too many events in a chunk (should not happen) | |
48 | if (nevents>0) rec.SetEventRange(0,nevents); | |
49 | ||
50 | // Remove recpoints after each event | |
51 | rec.SetDeleteRecPoints("TPC TRD ITS"); | |
52 | ||
53 | ||
54 | // Switch off the V0 finder - saves time! | |
55 | rec.SetRunMultFinder(kTRUE); | |
56 | rec.SetRunV0Finder(kFALSE); | |
57 | ||
58 | // | |
59 | // QA options - all QA is off | |
60 | // | |
61 | rec.SetRunQA(":"); | |
62 | rec.SetRunGlobalQA(kFALSE); | |
63 | ||
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); | |
71 | ||
72 | //Ignore SetStopOnError | |
73 | rec.SetStopOnError(kFALSE); | |
74 | ||
75 | AliLog::Flush(); | |
76 | rec.Run(); | |
77 | } | |
78 |