namespace LHCB_2015_I1396331_ratios

LHCB_2015_I1396331_ratios

Functions

Name
defshowHelp()
defmakeRatio(yd yd, sref sref, hn hn, hd hd)

Attributes

Name
stringaname07
stringaname13
intnybins
arg13
arg07
listratiodef
listpre13
listpre07
listref13
d13
d07
ys
srefs
stringxyset
stringrk13
stringdk13
stringdk07
bname
stringrFile

Functions Documentation

function showHelp

def showHelp()

function makeRatio

def makeRatio(
    yd yd,
    sref sref,
    hn hn,
    hd hd
)

Attributes Documentation

variable aname07

string aname07 =  'LHCB_2013_I1218996';

variable aname13

string aname13 =  'LHCB_2015_I1396331';

variable nybins

int nybins =  5;

variable arg13

arg13 =  sys.argv[1];

variable arg07

arg07 =  sys.argv[2];

variable ratiodef

list ratiodef =  [('d05', 'd01', 'd02'), ('d06', 'd02', 'd03'), ('d07', 'd03', 'd05'), ('d08', 'd04', 'd04')];

variable pre13

list pre13 =  [re.compile(r'/RAW/%s/%s-x01-y0[1-5]' % (aname13, ds[1])) for ds in ratiodef];

variable pre07

list pre07 =  [re.compile(r'/RAW/%s/%s-x01-y0[1-5]' % (aname07, ds[2])) for ds in ratiodef];

variable ref13

list ref13 =  [re.compile(r'/REF/%s/%s-x01-y0[1-5]' % (aname13, ds[0])) for ds in ratiodef];

variable d13

d13 =  yoda.read(arg13, patterns=pre13);

variable d07

d07 =  yoda.read(arg07, patterns=pre07);

variable ys

ys =  yoda.read(arg13);

variable srefs

srefs =  yoda.read('%s.yoda' % aname13, patterns=ref13);

variable xyset

string xyset =  '-x01-y0%d' % i;

variable rk13

string rk13 =  u'/REF/%s/%s%s' % (aname13, rdef[0], xyset);

variable dk13

string dk13 =  u'/RAW/%s/%s%s' % (aname13, rdef[1], xyset);

variable dk07

string dk07 =  u'/RAW/%s/%s%s' % (aname07, rdef[2], xyset);

variable bname

bname =  os.path.splitext(arg13)[0];

variable rFile

string rFile =  '%s+ratios.yoda' % bname;

Updated on 2022-08-07 at 20:46:08 +0100