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

Public Member Functions

def __init__ (self, type=2, pxd=True, svd=True)
 
def configure_collector (self, collector)
 
def generate (self)
 

Public Attributes

 type
 Constraint type.
 
 pxd
 Flag for PXD.
 
 svd
 Flag for SVD.
 

Detailed Description

Constraints for VXD hierarchy

They come in 3 types:

0 : no hierarchy, just sensors aligned in their local system
1 : sensors -> half-shells (no ladders)
2 : sensors -> ladders ->half-shells (aka full hierarchy)

and additionally can use them for PXD, SVD or both (default) (setting pxd/svd to False
will disable the hierarchy for that sub-detector)

NOTE: the filename cannot be currently changed, it is hard-coded in the collector module
as these constraints are actually generated by C++ code and not by python modules as others.

Definition at line 121 of file constraints.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  type = 2,
  pxd = True,
  svd = True 
)
 Initialize
type : int
  Type of constraints (0 - no, 1 - half-shells, 2 -full)
pxd : bool
  Use constraints for PXD?
svd : bool
  Use constraints for SVD?

Reimplemented from Constraints.

Definition at line 138 of file constraints.py.

138 def __init__(self, type=2, pxd=True, svd=True):
139 """ Initialize
140 type : int
141 Type of constraints (0 - no, 1 - half-shells, 2 -full)
142 pxd : bool
143 Use constraints for PXD?
144 svd : bool
145 Use constraints for SVD?
146 """
147
148 # TODO: cannot currently change the filename in collector, so fixed here
149 super().__init__("constraints.txt")
150
151 self.type = type
152
153 self.pxd = pxd
154
155 self.svd = svd
156

Member Function Documentation

◆ configure_collector()

def configure_collector (   self,
  collector 
)
Propagate the hierarchy configuration to the collector

Reimplemented from Constraints.

Definition at line 157 of file constraints.py.

157 def configure_collector(self, collector):
158 """
159 Propagate the hierarchy configuration to the collector
160 """
161 collector.param('hierarchyType', self.type)
162 collector.param('enablePXDHierarchy', self.pxd)
163 collector.param('enableSVDHierarchy', self.svd)
164

◆ generate()

def generate (   self)
Generate the constraints - does nothing. The collector will make the job

Reimplemented from Constraints.

Definition at line 165 of file constraints.py.

165 def generate(self):
166 """
167 Generate the constraints - does nothing. The collector will make the job
168 """
169 print("Generating constraints for VXD (no-op, file created by collector) ...")
170 return []
171
172

Member Data Documentation

◆ pxd

pxd

Flag for PXD.

Definition at line 153 of file constraints.py.

◆ svd

svd

Flag for SVD.

Definition at line 155 of file constraints.py.

◆ type

type

Constraint type.

Definition at line 151 of file constraints.py.


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