|
| fit_method |
| fit_method : function A function called on each stored segment pair as its only argument to update its fit inplace.
|
|
Fit axial and stereo track segment pairs
Definition at line 365 of file record.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
fit_method = None |
|
) |
| |
Constructor
Definition at line 376 of file record.py.
376 def __init__(self, fit_method=None):
377 """Constructor"""
378
379
383 self.fit_method = fit_method
384 if not fit_method:
385 self.fit_method = self.default_fit_method
386
387 super().__init__()
388
◆ default_fit_method()
def default_fit_method |
( |
|
segmentPair | ) |
|
|
static |
Default method to fit the generated segment pairs.
Definition at line 369 of file record.py.
369 def default_fit_method(segmentPair):
370 """Default method to fit the generated segment pairs."""
371
373 CDCAxialStereoFusion.reconstructFuseTrajectories(segmentPair,
374 True)
375
Utility class implementing the Kalmanesk combination of to two dimensional trajectories to one three ...
◆ event()
Called by basf2 for each event
Definition at line 389 of file record.py.
389 def event(self):
390 """Called by basf2 for each event"""
391 self.fitStoredPairs()
392
◆ fitStoredPairs()
def fitStoredPairs |
( |
|
self | ) |
|
Fits all pairs in the StoreArray with designated fit method.
Definition at line 393 of file record.py.
393 def fitStoredPairs(self):
394 """Fits all pairs in the StoreArray with designated fit method."""
395
396 fit_method = self.fit_method
397
399 wrapped_segment_pair_relations = stored_segment_pair_relations.obj()
400 segment_pair_relations = wrapped_segment_pair_relations.get()
401
402 for segment_pair_relation in segment_pair_relations:
403 fit_method(segment_pair_relation)
404
405
a (simplified) python wrapper for StoreObjPtr.
◆ fit_method
fit_method : function A function called on each stored segment pair as its only argument to update its fit inplace.
See default_fit_method for an example. Defaults to None meaning the default_fit_method is used Method used to fit the individual segment pairs
Definition at line 383 of file record.py.
The documentation for this class was generated from the following file:
- tracking/trackFindingCDC/studies/segmentPairFit/record.py