namespace LHCB_2016_I1490663_ratios
LHCB_2016_I1490663_ratios #
Functions ##
Attributes ##
Functions Documentation ##
function showHelp ##
function makeRatio ##
def makeRatio(
yd yd,
sref sref,
hn hn,
hd hd
)
Attributes Documentation ##
variable aname05 ##
string aname05 = 'LHCB_2016_I1490663';
variable aname13 ##
string aname13 = 'LHCB_2015_I1396331';
variable nybins ##
variable arg13 ##
variable arg05 ##
variable ratiodef ##
list ratiodef = [('d05', 'd01', 'd01'), ('d06', 'd02', 'd02'), ('d07', 'd03', 'd03'), ('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 pre05 ##
list pre05 = [re.compile(r'/RAW/%s/%s-x01-y0[1-5]' % (aname05, ds[2])) for ds in ratiodef];
variable ref05 ##
list ref05 = [re.compile(r'/REF/%s/%s-x01-y0[1-5]' % (aname05, ds[0])) for ds in ratiodef];
variable d13 ##
d13 = yoda.read(arg13, patterns=pre13);
variable d05 ##
d05 = yoda.read(arg05, patterns=pre05);
variable ys ##
variable srefs ##
srefs = yoda.read('%s.yoda' % aname05, patterns=ref05);
variable xyset ##
string xyset = '-x01-y0%d' % i;
variable rk05 ##
string rk05 = u'/REF/%s/%s%s' % (aname05, rdef[0], xyset);
variable dk13 ##
string dk13 = u'/RAW/%s/%s%s' % (aname13, rdef[1], xyset);
variable dk05 ##
string dk05 = u'/RAW/%s/%s%s' % (aname05, rdef[2], xyset);
variable bname ##
bname = os.path.splitext(arg05)[0];
variable rFile ##
string rFile = '%s+ratios.yoda' % bname;
Updated on 2022-08-07 at 20:46:08 +0100