xboa
Public Member Functions | Public Attributes | List of all members
MatrixTracking Class Reference

Class to mimic tracking using simple, user-supplied transfer matrices Each transfer matrix M_i0 must be of type numpy.matrix, where M is defined by u_i = M_i*(u_in-v_in) + v_i and u, v are matrices with shape (1, 6) going like (x, px, y, py, t, energy) More...

Inherits TrackingBase.

Public Member Functions

def __init__
 Initialisation. More...
 
def track_one
 Track a hit and return a list of output hits. More...
 

Public Attributes

 tm_list
 
 offset_list
 
 offset_in
 

Detailed Description

Class to mimic tracking using simple, user-supplied transfer matrices Each transfer matrix M_i0 must be of type numpy.matrix, where M is defined by u_i = M_i*(u_in-v_in) + v_i and u, v are matrices with shape (1, 6) going like (x, px, y, py, t, energy)

Definition at line 38 of file _matrix_tracking.py.

Constructor & Destructor Documentation

def __init__ (   self,
  list_of_transfer_matrices,
  list_of_offsets,
  offset_in 
)

Initialisation.

  • list_of_transfer_matrices list of transfer matrices. Each element should be a numpy matrix of shape (6,6)
  • list_of_offsets list of offsets v_i. Each element should be a numpy matrix of shape (1,6)
  • offset_in offset v_in. Should be a numpy matrix of shape (1,6)

Definition at line 48 of file _matrix_tracking.py.

Member Function Documentation

def track_one (   self,
  hit 
)

Track a hit and return a list of output hits.

  • hit initial particle coordinates to be tracked

Return a list of hits, with the first hit being equal to the input hit and subsequent hits given by u_i = M_i0 * u_0 with u = (x, px, y, py, t, energy)

Definition at line 81 of file _matrix_tracking.py.

References MatrixTracking.offset_in, MatrixTracking.offset_list, and MatrixTracking.tm_list.

Referenced by TrackingBase.track_many().

Member Data Documentation

tm_list

Definition at line 68 of file _matrix_tracking.py.

Referenced by MatrixTracking.track_one().

offset_list

Definition at line 69 of file _matrix_tracking.py.

Referenced by MatrixTracking.track_one().

offset_in

Definition at line 70 of file _matrix_tracking.py.

Referenced by MatrixTracking.track_one().


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