]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/corrs/CopySec.C
Added script to copy secondary correction
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / corrs / CopySec.C
CommitLineData
d6cea8ac 1void
2CopySec(Bool_t fmd=true, UShort_t sys=2, UShort_t sNN=2760, Short_t fld=-5, ULong_t run=0)
3{
4 const char* fwd = "${ALICE_ROOT}/PWGLF/FORWARD/analysis2";
5 if (!gROOT->GetClass("AliOADBForward"))
6 gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
7
8 TString table = "secondary";
9 ULong_t oldRun = 118506;
10 UShort_t oldSys = 1; // pp
11 UShort_t oldSNN = 900;
12 Short_t oldFld = +5;
13 const char* det = fmd ? "fmd" : "spd";
14 AliOADBForward* db = new AliOADBForward;
15 db->Open(Form("%s_corrections.root", det), table, true);
16
17 if (!db->CopyEntry(table,
18 oldRun, oldSys, oldSNN, oldFld,
19 run, sys, sNN, fld,
20 false, false))
21 Warning("CopySec", "Failed to copy %s %lu/%hu/%hu/%hd -> %lu/%hu/%hu/%hd",
22 det,
23 oldRun, oldSys, oldSNN, oldFld,
24 run, sys, sNN, fld);
25}
26//
27// EOF
28//
29
30
31
32
33
34
35