]>
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 | ||
4c8432c7 | 12 | void recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://") |
27eb9bff | 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); | |
18 | // Reconstruction settings | |
19 | AliReconstruction rec; | |
20 | // Upload CDB entries from the snapshot (local root file) if snapshot exist | |
21 | if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) { | |
22 | rec.SetFromCDBSnapshot("OCDB.root"); | |
23 | } | |
24 | // All friends | |
25 | rec.SetFractionFriends(1.0); | |
26 | ||
27 | // AliReconstruction settings - hardwired MB trigger for calibration | |
28 | ||
29 | TString newfilename = filename; | |
30 | // newfilename += "?Trigger=CPBI2_B1-B-NOPF-ALLNOTRD"; | |
31 | rec.SetInput(newfilename.Data()); | |
32 | ||
33 | // Set protection against too many events in a chunk (should not happen) | |
34 | if (nevents>0) rec.SetEventRange(0,nevents); | |
35 | ||
36 | // Remove recpoints after each event | |
37 | rec.SetDeleteRecPoints("TPC TRD ITS"); | |
38 | ||
39 | // Switch off the V0 finder - saves time! | |
40 | rec.SetRunMultFinder(kFALSE); | |
41 | rec.SetRunV0Finder(kFALSE); | |
42 | ||
43 | // | |
44 | // QA options - all QA is off | |
45 | // | |
46 | rec.SetRunQA(":"); | |
47 | rec.SetRunGlobalQA(kFALSE); | |
48 | ||
49 | // AliReconstruction settings | |
50 | rec.SetWriteESDfriend(kTRUE); | |
51 | rec.SetWriteAlignmentData(); | |
52 | rec.SetUseTrackingErrorsForAlignment("ITS"); | |
53 | rec.SetRunReconstruction("ALL"); | |
54 | rec.SetFillESD("ALL"); | |
55 | rec.SetCleanESD(kFALSE); | |
56 | ||
57 | // Specific reco params for ZDC (why isn't this automatic?) | |
58 | // rec.SetRecoParam("ZDC",AliZDCRecoParamPbPb::GetHighFluxParam(2760)); | |
59 | ||
60 | //Ignore SetStopOnError | |
61 | rec.SetStopOnError(kFALSE); | |
62 | ||
63 | AliLog::Flush(); | |
64 | rec.Run(); | |
65 | } | |
66 |