]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/CalibMacros/CPass1/recCPass1_OuterDet.C
Changes (Marian and Mikolaj):
[u/mrichter/AliRoot.git] / PWGPP / CalibMacros / CPass1 / recCPass1_OuterDet.C
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_OuterDet(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://")
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   if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {        
25     gROOT->LoadMacro("localOCDBaccessConfig.C");
26     localOCDBaccessConfig();
27   }
28
29   // All friends
30   rec.SetFractionFriends(1.0);
31
32  // AliReconstruction settings - hardwired MB trigger for calibration
33
34   TString newfilename = filename;
35   newfilename += "?Trigger=kCalibOuter";
36   rec.SetInput(newfilename.Data());
37
38   // Set protection against too many events in a chunk (should not happen)
39   if (nevents>0) rec.SetEventRange(0,nevents);
40
41   // Remove recpoints after each event
42   rec.SetDeleteRecPoints("ITS MUON EMCAL PHOS");
43
44   // Switch off the V0 finder - saves time!
45   rec.SetRunMultFinder(kFALSE);
46   rec.SetRunV0Finder(kFALSE); 
47
48   //
49   // QA options - all QA is off
50   //
51   rec.SetRunQA(":");
52   rec.SetRunGlobalQA(kFALSE);
53
54   // AliReconstruction settings
55   rec.SetWriteESDfriend(kTRUE);
56   rec.SetWriteAlignmentData();
57   rec.SetUseTrackingErrorsForAlignment("ITS");
58   rec.SetRunReconstruction("ITS MUON EMCAL PHOS");
59   rec.SetFillESD("ITS MUON EMCAL PHOS");
60   rec.SetCleanESD(kFALSE);
61
62   // Specific reco params for ZDC (why isn't this automatic?)
63 //  rec.SetRecoParam("ZDC",AliZDCRecoParamPbPb::GetHighFluxParam(2760));
64
65   //Ignore SetStopOnError
66   rec.SetStopOnError(kFALSE);
67
68   AliLog::Flush();
69   rec.Run();
70 }
71