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 368 of file record.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

def event (   self)
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
401 stored_segment_pair_relations = Belle2.PyStoreObj("CDCSegmentPairVector")
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.
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 386 of file record.py.


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