Belle II Software development
AxialStereoPairFitterModule Class Reference
Inheritance diagram for AxialStereoPairFitterModule:

Public Member Functions

def __init__ (self, fit_method=None)
 
def event (self)
 
def fitStoredPairs (self)
 

Static Public Member Functions

def default_fit_method (segmentPair)
 

Public Attributes

 fit_method
 fit_method : function A function called on each stored segment pair as its only argument to update its fit inplace.
 

Detailed Description

Fit axial and stereo track segment pairs

Definition at line 365 of file record.py.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ 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()

def event (   self)
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
398 stored_segment_pair_relations = Belle2.PyStoreObj("CDCSegmentPairVector")
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.
Definition: PyStoreObj.h:67

Member Data Documentation

◆ fit_method

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: