|
| 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 368 of file record.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
fit_method = None |
|
) |
| |
Constructor
Definition at line 379 of file record.py.
379 def __init__(self, fit_method=None):
380 """Constructor"""
381
382
386 self.fit_method = fit_method
387 if not fit_method:
388 self.fit_method = self.default_fit_method
389
390 super().__init__()
391
◆ default_fit_method()
def default_fit_method |
( |
|
segmentPair | ) |
|
|
static |
Default method to fit the generated segment pairs.
Definition at line 372 of file record.py.
372 def default_fit_method(segmentPair):
373 """Default method to fit the generated segment pairs."""
374
376 CDCAxialStereoFusion.reconstructFuseTrajectories(segmentPair,
377 True)
378
Utility class implementing the Kalmanesk combination of to two dimensional trajectories to one three ...
◆ event()
Called by basf2 for each event
Definition at line 392 of file record.py.
392 def event(self):
393 """Called by basf2 for each event"""
394 self.fitStoredPairs()
395
◆ fitStoredPairs()
def fitStoredPairs |
( |
|
self | ) |
|
Fits all pairs in the StoreArray with designated fit method.
Definition at line 396 of file record.py.
396 def fitStoredPairs(self):
397 """Fits all pairs in the StoreArray with designated fit method."""
398
399 fit_method = self.fit_method
400
402 wrapped_segment_pair_relations = stored_segment_pair_relations.obj()
403 segment_pair_relations = wrapped_segment_pair_relations.get()
404
405 for segment_pair_relation in segment_pair_relations:
406 fit_method(segment_pair_relation)
407
408
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 386 of file record.py.
The documentation for this class was generated from the following file:
- tracking/trackFindingCDC/studies/segmentPairFit/record.py