Small fixes
authorcholm <Christian.Holm.Christensen@cern.ch>
Mon, 22 Sep 2014 13:15:56 +0000 (15:15 +0200)
committercholm <Christian.Holm.Christensen@cern.ch>
Mon, 22 Sep 2014 13:15:56 +0000 (15:15 +0200)
PWGLF/FORWARD/analysis2/corrs/Browse.C
PWGLF/FORWARD/analysis2/corrs/CopySec.C

index a326b51..d8afced 100644 (file)
@@ -1,4 +1,4 @@
-TObject* Browse(Bool_t rw=false)
+TObject* Browse(Bool_t fmd=true, Bool_t rw=false)
 {
   if (gROOT->IsBatch()) { 
     Error("", "Cannot run Forward OADB browser in batch mode");
@@ -13,7 +13,7 @@ TObject* Browse(Bool_t rw=false)
   gROOT->LoadMacro(macro);
   
   AliOADBForward* db = new AliOADBForward;
-  db->Open("fmd_corrections.root", "*", rw);
+  db->Open(fmd ? "fmd_corrections.root" : "spd_corrections.root", "*", rw);
   
   ForwardOADBGui(db);
 
index bdcb8da..c4808e5 100644 (file)
@@ -13,9 +13,9 @@ CopySec(Bool_t      fmd=true,
   const char* fwd = "${ALICE_ROOT}/PWGLF/FORWARD/analysis2";
   gROOT->LoadMacro(Form("%s/corrs/CopyCorr.C", fwd));
 
-  CopyCorr(true, "secondary", 
+  CopyCorr(fmd, "secondary", 
           tgtRun, tgtSys, tgtSNN, tgtFld, 
-          srcRun, srcSys, srcSNN, srcFld);
+          srcRun, srcSys, srcSNN, srcFld, false);
 }
 //
 // EOF