Functions | Variables
wirecell.util.wires.common Namespace Reference

Functions

def bounding_box (wires)
 

Variables

 Wire = namedtuple("Wire","plane ch wip seg beg end")
 

Detailed Description

Objects for describing wires

Function Documentation

def wirecell.util.wires.common.bounding_box (   wires)
Return a bounding box exactly containing the given collection of
Wire objects.

Definition at line 15 of file common.py.

15 def bounding_box(wires):
16  '''
17  Return a bounding box exactly containing the given collection of
18  Wire objects.
19  '''
20  mins = list()
21  maxs = list()
22 
23  for axis in range(3):
24  pts = list()
25  pts += [w.beg[axis] for w in wires]
26  pts += [w.end[axis] for w in wires]
27  mins.append(min(pts))
28  maxs.append(max(pts))
29  return Ray(Point3D(*mins), Point3D(*maxs))
30 
::fhicl::TupleAs< Point(::geo::Length_t,::geo::Length_t,::geo::Length_t)> Point3D
Atom object for reading a 3D point or vector (centimeters).
static int max(int a, int b)
def bounding_box(wires)
Definition: common.py:15
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:55

Variable Documentation

wirecell.util.wires.common.Wire = namedtuple("Wire","plane ch wip seg beg end")

Definition at line 13 of file common.py.