6 preqes = [ 25, 30, 40 ]
8 prerefs = [
"Opt",
"Pes" ]
20 sets = [ (
"DEF", defqes, defrefs, defthrs),
21 (
"EFF", preqes, defrefs, defthrs),
22 (
"REF", defqes, prerefs, defthrs),
23 (
"THR", defqes, defrefs, prethrs) ]
33 for ( name, iqes, irefs, ithrs )
in sets:
37 tag =
"{0}{1:02d}QE{2}Refl{3:d}PE".
format(name, qe, ref, thr)
40 qeval =
float(qe) / 1000.
44 params[tag][
"qe"] = qeval
45 params[tag][
"darkrate"] = noise
46 params[tag][
"linerms"] =
float(peakadc)/snr
47 params[tag][
"thresh"] =
int( (
float(thr)-0.3) * peakadc )
51 params[tag][
"refqe"] = 1.44*qeval
53 params[tag][
"refqe"] = 0.84*qeval
54 params[tag][
"qe"] /= 2
56 params[tag][
"refqe"] = 0
59 tags = sorted(params.keys())
static bool format(QChar::Decomposition tag, QString &str, int index, int len)