14 const char*
fwd =
"${ALICE_PHYSICS}/PWGLF/FORWARD/analysis2";
15 if (!gROOT->GetClass(
"AliOADBForward"))
16 gROOT->Macro(Form(
"%s/scripts/LoadLibs.C", fwd));
19 const char* det = fmd ?
"fmd" :
"spd";
20 const char* possible[] = {
"elossfits",
28 const char** pTest = possible;
30 if (tab.EqualTo(*pTest))
break;
34 Warning(
"CopyCorr",
"Unknown table: %s", table);
38 if (tgtSys < 1) tgtSys = srcSys;
39 if (tgtSNN < 1) tgtSNN = srcSNN;
40 if (tgtFld >= 999) tgtFld = srcFld;
43 db->
Open(Form(
"%s_corrections.root", det), tab,
true);
46 srcRun, srcSys, srcSNN, srcFld,
47 tgtRun, tgtSys, tgtSNN, tgtFld,
50 "Failed to copy %s %lu/%hu/%hu/%hd/%s -> %lu/%hu/%hu/%hd/%s",
52 srcRun, srcSys, srcSNN, srcFld, (mc ?
"MC" :
"Real"),
53 tgtRun, tgtSys, tgtSNN, tgtFld, (mc ?
"MC" :
"Real"));
Bool_t CopyCorr(Bool_t fmd, const char *table, ULong_t tgtRun, UShort_t tgtSys, UShort_t tgtSNN, Short_t tgtFld, ULong_t srcRun, UShort_t srcSys, UShort_t srcSNN, Short_t srcFld, Bool_t mc)
Bool_t CopyEntry(const TString &table, ULong_t oldRunNo, UShort_t oldSys, UShort_t oldSNN, Short_t oldField, ULong_t newRunNo, UShort_t newSys, UShort_t newSNN, Short_t newField, Bool_t mc, Bool_t sat)
Bool_t Open(const TString &fileName, const TString &tables="*", Bool_t rw=false, Bool_t verb=false, Bool_t fallback=false)