]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGPP/CalibMacros/CPass0/recCPass0.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGPP / CalibMacros / CPass0 / recCPass0.C
index 2b8bf8e68e8422d808137bd7de3d02fc7eb7df3e..a5c6a542194e2b8e6657d385f749d3c535e33316 100644 (file)
@@ -6,11 +6,19 @@
    - default OCDB storage set to "raw://"
 
    Example:
-   aliroot -b -q 'recPass0.C("raw.root",100)'
+   aliroot -b -q 'recCPass0.C("raw.root",100)'
 */
 
-void recPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://")
+void recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel")
 {
+
+  if (gSystem->Getenv("ALIROOT_FORCE_COREDUMP"))
+  {
+    printf("ALIROOT_FORCE_COREDUMP set\n");
+    gSystem->ResetSignal(kSigFloatingException);
+    gSystem->ResetSignal(kSigSegmentationViolation);
+  }
+
   // Load some system libs for Grid and monitoring
   // Set the CDB storage location
   AliCDBManager * man = AliCDBManager::Instance();
@@ -19,25 +27,33 @@ void recPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb
   AliReconstruction rec;
   // Upload CDB entries from the snapshot (local root file) if snapshot exist
   if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {        
-    rec.SetFromCDBSnapshot("OCDB.root");
+    rec.SetCDBSnapshotMode("OCDB.root");
+  }
+
+  if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {        
+    gROOT->LoadMacro("localOCDBaccessConfig.C");
+    localOCDBaccessConfig();
   }
+
   // All friends
-  rec.SetFractionFriends(1.0);
+  rec.SetFractionFriends(2.0);
 
  // AliReconstruction settings - hardwired MB trigger for calibration
 
   TString newfilename = filename;
-//  newfilename += "?Trigger=CPBI2_B1-B-NOPF-ALLNOTRD";
+  newfilename += options;
   rec.SetInput(newfilename.Data());
 
   // Set protection against too many events in a chunk (should not happen)
   if (nevents>0) rec.SetEventRange(0,nevents);
 
   // Remove recpoints after each event
-  rec.SetDeleteRecPoints("TPC TRD ITS");
+  rec.SetDeleteRecPoints("TPC TRD ITS"); 
+  //
+
 
   // Switch off the V0 finder - saves time!
-  rec.SetRunMultFinder(kFALSE);
+  //  rec.SetRunMultFinder(kFALSE);
   rec.SetRunV0Finder(kFALSE); 
 
   //
@@ -51,12 +67,8 @@ void recPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb
   rec.SetWriteAlignmentData();
   rec.SetUseTrackingErrorsForAlignment("ITS");
   rec.SetRunReconstruction("ALL");
-  rec.SetFillESD("ALL");
   rec.SetCleanESD(kFALSE);
 
-  // Specific reco params for ZDC (why isn't this automatic?)
-//  rec.SetRecoParam("ZDC",AliZDCRecoParamPbPb::GetHighFluxParam(2760));
-
   //Ignore SetStopOnError
   rec.SetStopOnError(kFALSE);