]>
Commit | Line | Data |
---|---|---|
ca1ed0f3 | 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 | ||
a6168b42 | 12 | void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel") |
ca1ed0f3 | 13 | { |
14 | // Load some system libs for Grid and monitoring | |
15 | // Set the CDB storage location | |
16 | AliCDBManager * man = AliCDBManager::Instance(); | |
17 | man->SetDefaultStorage(ocdb); | |
9e160db9 | 18 | |
ca1ed0f3 | 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) { | |
5cebce24 | 23 | rec.SetCDBSnapshotMode("OCDB.root"); |
ca1ed0f3 | 24 | } |
9e160db9 | 25 | |
26 | if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) { | |
27 | gROOT->LoadMacro("localOCDBaccessConfig.C"); | |
28 | localOCDBaccessConfig(); | |
29 | } | |
30 | ||
ca1ed0f3 | 31 | // All friends |
32 | rec.SetFractionFriends(1.0); | |
33 | ||
34 | // AliReconstruction settings - hardwired MB trigger for calibration | |
35 | ||
36 | TString newfilename = filename; | |
a6168b42 | 37 | newfilename += options; |
ca1ed0f3 | 38 | rec.SetInput(newfilename.Data()); |
39 | ||
40 | // Set protection against too many events in a chunk (should not happen) | |
41 | if (nevents>0) rec.SetEventRange(0,nevents); | |
42 | ||
43 | // Remove recpoints after each event | |
44 | rec.SetDeleteRecPoints("TPC TRD ITS"); | |
9e160db9 | 45 | |
ca1ed0f3 | 46 | |
47 | // Switch off the V0 finder - saves time! | |
383fa54e | 48 | rec.SetRunMultFinder(kTRUE); |
ca1ed0f3 | 49 | rec.SetRunV0Finder(kFALSE); |
50 | ||
51 | // | |
52 | // QA options - all QA is off | |
53 | // | |
54 | rec.SetRunQA(":"); | |
55 | rec.SetRunGlobalQA(kFALSE); | |
56 | ||
57 | // AliReconstruction settings | |
58 | rec.SetWriteESDfriend(kTRUE); | |
59 | rec.SetWriteAlignmentData(); | |
60 | rec.SetUseTrackingErrorsForAlignment("ITS"); | |
0cf3ae8e | 61 | rec.SetRunReconstruction("ALL"); |
5cebce24 | 62 | rec.SetFillESD("ALL"); |
ca1ed0f3 | 63 | rec.SetCleanESD(kFALSE); |
64 | ||
ca1ed0f3 | 65 | //Ignore SetStopOnError |
66 | rec.SetStopOnError(kFALSE); | |
67 | ||
68 | AliLog::Flush(); | |
69 | rec.Run(); | |
70 | } | |
71 |