Belle II Software development
|
Public Member Functions | |
def | __init__ (self, filename='cdc-wire-constraints.txt', layers=None, layer_rigid=True, layer_radius=None, cdc_radius=False, hemisphere=None) |
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. | |
layer_rigid | |
6 x 56 (6/layer) constraints. | |
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) | |
hemisphere | |
list of layer subject to hemisphere constraints | |
Static Public Attributes | |
list | wires_in_layer |
CDC layer/wire configuration. | |
Various constraints for CDC wires (w.r.t. layers)
Definition at line 384 of file constraints.py.
def __init__ | ( | self, | |
filename = 'cdc-wire-constraints.txt' , |
|||
layers = None , |
|||
layer_rigid = True , |
|||
layer_radius = None , |
|||
cdc_radius = False , |
|||
hemisphere = None |
|||
) |
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 : list(int) 2 constraints to fix average change of layer radius (wires in layer moving away from origin) for all layers in list cdc_radius : bool 1 constraint - fix average change in CDC radius from all wires hemisphere : list(int) Modifies rigid and layer_radius (layer_radius constraint is added if not present for selected layer(s)) constraint by splitting the constraints for a given list of layers to L/R up/down half of CDC
Reimplemented from Constraints.
Definition at line 401 of file constraints.py.
def configure_collector | ( | self, | |
collector | |||
) |
Enables wire-by-wire derivatives in collector
Reimplemented from Constraints.
Definition at line 452 of file constraints.py.
def generate | ( | self | ) |
Generate constraints
Reimplemented from Constraints.
Definition at line 466 of file constraints.py.
def get_label | ( | self, | |
layer, | |||
wire, | |||
parameter | |||
) |
Return GlobalLabel for wire parameter
Definition at line 458 of file constraints.py.
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)
Definition at line 446 of file constraints.py.
hemisphere |
list of layer subject to hemisphere constraints
Definition at line 450 of file constraints.py.
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)
Definition at line 443 of file constraints.py.
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 438 of file constraints.py.
layers |
List of layers for whose wires to generate the constraints.
None = all layers
Definition at line 433 of file constraints.py.
|
static |
CDC layer/wire configuration.
Definition at line 390 of file constraints.py.