]>
Commit | Line | Data |
---|---|---|
27eb9bff | 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: | |
4c8432c7 | 9 | aliroot -b -q 'recCPass0.C("raw.root",100)' |
27eb9bff | 10 | */ |
11 | ||
a6168b42 | 12 | void recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel") |
27eb9bff | 13 | { |
210b7b20 | 14 | |
15 | if (gSystem->Getenv("ALIROOT_FORCE_COREDUMP")) | |
16 | { | |
17 | printf("ALIROOT_FORCE_COREDUMP set\n"); | |
18 | gSystem->ResetSignal(kSigFloatingException); | |
19 | gSystem->ResetSignal(kSigSegmentationViolation); | |
20 | } | |
21 | ||
27eb9bff | 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) { | |
5cebce24 | 30 | rec.SetCDBSnapshotMode("OCDB.root"); |
27eb9bff | 31 | } |
19ec92a8 | 32 | |
33 | if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) { | |
34 | gROOT->LoadMacro("localOCDBaccessConfig.C"); | |
35 | localOCDBaccessConfig(); | |
36 | } | |
37 | ||
27eb9bff | 38 | // All friends |
f9c0fe49 | 39 | rec.SetFractionFriends(2.0); |
27eb9bff | 40 | |
41 | // AliReconstruction settings - hardwired MB trigger for calibration | |
42 | ||
43 | TString newfilename = filename; | |
a6168b42 | 44 | newfilename += options; |
27eb9bff | 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 | |
9e160db9 | 51 | rec.SetDeleteRecPoints("TPC TRD ITS"); |
52 | // | |
9e160db9 | 53 | |
27eb9bff | 54 | |
55 | // Switch off the V0 finder - saves time! | |
9dec4b98 | 56 | // rec.SetRunMultFinder(kFALSE); |
27eb9bff | 57 | rec.SetRunV0Finder(kFALSE); |
58 | ||
59 | // | |
60 | // QA options - all QA is off | |
61 | // | |
62 | rec.SetRunQA(":"); | |
63 | rec.SetRunGlobalQA(kFALSE); | |
64 | ||
65 | // AliReconstruction settings | |
66 | rec.SetWriteESDfriend(kTRUE); | |
67 | rec.SetWriteAlignmentData(); | |
68 | rec.SetUseTrackingErrorsForAlignment("ITS"); | |
d474eb93 | 69 | rec.SetRunReconstruction("ALL -HLT"); |
27eb9bff | 70 | rec.SetCleanESD(kFALSE); |
71 | ||
27eb9bff | 72 | //Ignore SetStopOnError |
73 | rec.SetStopOnError(kFALSE); | |
74 | ||
75 | AliLog::Flush(); | |
76 | rec.Run(); | |
77 | } | |
78 |