Belle II Software development
Constraints Class Reference
Inheritance diagram for Constraints:
CDCLayerConstraints CDCTimeZerosConstraint CDCWireConstraints VXDHierarchyConstraints

Public Member Functions

def __init__ (self, filename)
 
def generate (self)
 
def configure_collector (self, collector)
 

Public Attributes

 filename
 File name.
 

Detailed Description

Base class representing a "generator" for file with set of constraints

Can be used directly if you already have a file with constraints.

Definition at line 59 of file constraints.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filename 
)
filename : str
  Desired filename for the constraint file

Reimplemented in CDCLayerConstraints, CDCTimeZerosConstraint, CDCWireConstraints, and VXDHierarchyConstraints.

Definition at line 66 of file constraints.py.

66 def __init__(self, filename):
67 """
68 filename : str
69 Desired filename for the constraint file
70 """
71
72 self.filename = filename
73

Member Function Documentation

◆ configure_collector()

def configure_collector (   self,
  collector 
)
Can be overriden be child classes to pass additional configuration to the
MillepedeCollector (activated by the use of the constraints)

Reimplemented in VXDHierarchyConstraints, and CDCWireConstraints.

Definition at line 83 of file constraints.py.

83 def configure_collector(self, collector):
84 """
85 Can be overriden be child classes to pass additional configuration to the
86 MillepedeCollector (activated by the use of the constraints)
87 """
88 pass
89
90

◆ generate()

def generate (   self)
Should be overriden by the deriving classes and actually
fill the dictionary with the constraints (this runs withing a basf2 module
event function - so you have geometry available)

Reimplemented in VXDHierarchyConstraints, CDCLayerConstraints, CDCTimeZerosConstraint, and CDCWireConstraints.

Definition at line 74 of file constraints.py.

74 def generate(self):
75 """
76 Should be overriden by the deriving classes and actually
77 fill the dictionary with the constraints (this runs withing a basf2 module
78 event function - so you have geometry available)
79 """
80 consts = []
81 return consts
82

Member Data Documentation

◆ filename

filename

File name.

Definition at line 72 of file constraints.py.


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