Belle II Software  release-05-02-19
CDCWireConstraints Class Reference
Inheritance diagram for CDCWireConstraints:
Collaboration diagram for CDCWireConstraints:

Public Member Functions

def __init__ (self, filename='cdc-wire-constraints.txt', layers=None, layer_rigid=True, layer_radius=False, cdc_radius=False)
 
def configure_collector (self, collector)
 
def get_label (self, layer, wire, parameter)
 
def generate (self)
 

Public Attributes

 layers
 List of layers for whose wires to generate the constraints. More...
 
 layer_rigid
 6 x 56 (6/layer) constraints. More...
 
 layer_radius
 2 x 56 constraints: Sum(dr)=0 for all wires in each layer at each end-plate -> layer radius kept same by this constraint (1 per layer)
 
 cdc_radius
 2 Constraints: Sum(dr)=0 for all wires in CDC at each end-plate -> "average CDC radius" kept same by this constraint (1 per CDC)
 
 filename
 File name. More...
 

Static Public Attributes

list wires_in_layer
 CDC layer/wire configuration. More...
 

Detailed Description

Various constraints for CDC wires (w.r.t. layers)

Definition at line 363 of file constraints.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filename = 'cdc-wire-constraints.txt',
  layers = None,
  layer_rigid = True,
  layer_radius = False,
  cdc_radius = False 
)
Initialize constraint

Parameters
----------
filename : str
  Can override the default file name
layers : list (int)
  List of layer numbers for which to generate the constraints (default is 0..55)
layer_rigid : bool
  6 constraints - fix sum of shifts of wire ends in x/y/rotation at fwd/bwd end-plate
layer_radius : bool
  2 constraints to fix average change of layer radius (wires in layer moving away from origin)
cdc_radius : bool
  1 constraint - fix average change in CDC radius from all wires

Definition at line 380 of file constraints.py.

Member Function Documentation

◆ configure_collector()

def configure_collector (   self,
  collector 
)
Enables wire-by-wire derivatives in collector

Reimplemented from Constraints.

Definition at line 415 of file constraints.py.

◆ generate()

def generate (   self)
Generate constraints 

Reimplemented from Constraints.

Definition at line 429 of file constraints.py.

◆ get_label()

def get_label (   self,
  layer,
  wire,
  parameter 
)
Return GlobalLabel for wire parameter

Definition at line 421 of file constraints.py.

Member Data Documentation

◆ filename

filename
inherited

File name.

filename : str
  Desired filename for the constraint file

Definition at line 67 of file constraints.py.

◆ layer_rigid

layer_rigid

6 x 56 (6/layer) constraints.

Sum(dX_B/dY_B/drot_B/dX_FB/dY_FB/drot_FB)=0 for all wires in each layer -> removes the basic unconstrained DoF when aligning wires and layers simultaneously. Average shift and rotation of wires in layer (at each end-plate) = 0. -> coherent movements of wires absorbed in layer parameters

Definition at line 407 of file constraints.py.

◆ layers

layers

List of layers for whose wires to generate the constraints.

None = all layers

Definition at line 402 of file constraints.py.

◆ wires_in_layer

list wires_in_layer
static
Initial value:
= [
160, 160, 160, 160, 160, 160, 160, 160,
160, 160, 160, 160, 160, 160,
192, 192, 192, 192, 192, 192,
224, 224, 224, 224, 224, 224,
256, 256, 256, 256, 256, 256,
288, 288, 288, 288, 288, 288,
320, 320, 320, 320, 320, 320,
352, 352, 352, 352, 352, 352,
384, 384, 384, 384, 384, 384]

CDC layer/wire configuration.

Definition at line 369 of file constraints.py.


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