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