18 \namespace xboa::tracking::_tracking_base
20 Should be imported directly from the xboa::tracking namespace
25 Base class provides an interface to particle tracking routines for use by
33 Track a hit and return a list of output hits
34 - hit initial particle coordinates to be tracked
36 Track a hit and return a list of output hits. The output hits should
37 corresponds to e.g. particle crossings over cell ends, depending on the
38 usage of the Tracking object. The first item in the list should be the
41 raise NotImplementedError(
"track_one was not implemented")
45 Track many hits and return a list of list of output hits
46 - list_of_hits list of initial particle corodinates to be tracked
48 Track many hits and return a list containing a list of output hits,
49 one for each track. This provides a hook for tracking codes that have
50 significant set up and tear down times, or which simulate collective
51 effects that need to be taken into account by the algorithm
53 By default this calls track_one for each hit; but can be overloaded by
56 hits_out = [self.
track_one(hit)
for hit
in list_of_hits]
def track_one
Track a hit and return a list of output hits.
def track_many
Track many hits and return a list of list of output hits.
Base class provides an interface to particle tracking routines for use by xboa.algorithms.