1 from common
import bounding_box
4 for iplane
in range(3):
5 wires = [w
for w
in all_wires
if w.plane == iplane]
6 chans = [w.ch
for w
in wires]
7 wids = [w.wip
for w
in wires]
9 minpt, maxpt = bb.tail, bb.head
11 fmt =
"plane %s: %d wires [%d - %d], %d chans [%04d - %04d], minpt=(%+.1f, %+.1f, %+.4f), maxpt=(%+.1f, %+.1f, %+.1f)" 12 dat = (
"UVW"[iplane], len(wires),
min(wids),
max(wids), len(chans),
min(chans),
max(chans),
13 minpt[0],minpt[1],minpt[2],maxpt[0],maxpt[1],maxpt[2])
def wire_summary(all_wires)
static int max(int a, int b)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)