Public Member Functions | Public Attributes | List of all members
wirecell.util.wires.info.Ray Class Reference
Inheritance diagram for wirecell.util.wires.info.Ray:

Public Member Functions

def __init__ (self, wire)
 
def ray (self)
 
def center (self)
 

Public Attributes

 head
 
 tail
 

Detailed Description

Definition at line 67 of file info.py.

Constructor & Destructor Documentation

def wirecell.util.wires.info.Ray.__init__ (   self,
  wire 
)

Definition at line 68 of file info.py.

68  def __init__(self, wire):
69  self.head = numpy.asarray([wire['head'][c] for c in "xyz"])
70  self.tail = numpy.asarray([wire['tail'][c] for c in "xyz"])
def __init__(self, wire)
Definition: info.py:68

Member Function Documentation

def wirecell.util.wires.info.Ray.center (   self)

Definition at line 75 of file info.py.

75  def center(self):
76  return 0.5* (self.head + self.tail)
77 
78 
def wirecell.util.wires.info.Ray.ray (   self)

Definition at line 72 of file info.py.

72  def ray(self):
73  return self.head - self.tail

Member Data Documentation

wirecell.util.wires.info.Ray.head

Definition at line 69 of file info.py.

wirecell.util.wires.info.Ray.tail

Definition at line 70 of file info.py.


The documentation for this class was generated from the following file: