2 CopySec(Bool_t fmd=true, UShort_t sys=2, UShort_t sNN=2760, Short_t fld=-5, ULong_t run=0)
4 const char* fwd = "${ALICE_ROOT}/PWGLF/FORWARD/analysis2";
5 if (!gROOT->GetClass("AliOADBForward"))
6 gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
8 TString table = "secondary";
9 ULong_t oldRun = 118506;
10 UShort_t oldSys = 1; // pp
11 UShort_t oldSNN = 900;
13 const char* det = fmd ? "fmd" : "spd";
14 AliOADBForward* db = new AliOADBForward;
15 db->Open(Form("%s_corrections.root", det), table, true);
17 if (!db->CopyEntry(table,
18 oldRun, oldSys, oldSNN, oldFld,
21 Warning("CopySec", "Failed to copy %s %lu/%hu/%hu/%hd -> %lu/%hu/%hu/%hd",
23 oldRun, oldSys, oldSNN, oldFld,