]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/CalibMacros/CPass1/recCPass1.C
Removing HLT from CPass reco
[u/mrichter/AliRoot.git] / PWGPP / CalibMacros / CPass1 / recCPass1.C
CommitLineData
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 12void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel")
ca1ed0f3 13{
210b7b20 14 if (gSystem->Getenv("ALIROOT_FORCE_COREDUMP"))
15 {
16 printf("ALIROOT_FORCE_COREDUMP set\n");
17 gSystem->ResetSignal(kSigFloatingException);
18 gSystem->ResetSignal(kSigSegmentationViolation);
19 }
20
ca1ed0f3 21 // Load some system libs for Grid and monitoring
22 // Set the CDB storage location
23 AliCDBManager * man = AliCDBManager::Instance();
24 man->SetDefaultStorage(ocdb);
9e160db9 25
ca1ed0f3 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");
ca1ed0f3 31 }
9e160db9 32
33 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
34 gROOT->LoadMacro("localOCDBaccessConfig.C");
35 localOCDBaccessConfig();
36 }
37
ca1ed0f3 38 // All friends
f9c0fe49 39 rec.SetFractionFriends(2.0);
ca1ed0f3 40
41 // AliReconstruction settings - hardwired MB trigger for calibration
42
43 TString newfilename = filename;
a6168b42 44 newfilename += options;
ca1ed0f3 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
51 rec.SetDeleteRecPoints("TPC TRD ITS");
9e160db9 52
ca1ed0f3 53
54 // Switch off the V0 finder - saves time!
383fa54e 55 rec.SetRunMultFinder(kTRUE);
ca1ed0f3 56 rec.SetRunV0Finder(kFALSE);
57
58 //
59 // QA options - all QA is off
60 //
61 rec.SetRunQA(":");
62 rec.SetRunGlobalQA(kFALSE);
63
64 // AliReconstruction settings
65 rec.SetWriteESDfriend(kTRUE);
66 rec.SetWriteAlignmentData();
67 rec.SetUseTrackingErrorsForAlignment("ITS");
d474eb93 68 rec.SetRunReconstruction("ALL -HLT");
ca1ed0f3 69 rec.SetCleanESD(kFALSE);
70
ca1ed0f3 71 //Ignore SetStopOnError
72 rec.SetStopOnError(kFALSE);
73
74 AliLog::Flush();
75 rec.Run();
76}
77