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

Public Member Functions

 __init__ (self, filename='cdc-T0-constraints.txt')
 
 generate (self)
 
 configure_collector (self, collector)
 

Public Attributes

 filename = filename
 File name.
 

Static Public Attributes

list wires_in_layer
 CDC layer/wire configuration.
 

Detailed Description

Constraint to fix sum of corrections to CDC T0's (per wire) to zero

Definition at line 343 of file constraints.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
filename = 'cdc-T0-constraints.txt' )
 Initialize
filename : str
  Can use different filename

Definition at line 360 of file constraints.py.

360 def __init__(self, filename='cdc-T0-constraints.txt'):
361 """ Initialize
362 filename : str
363 Can use different filename
364 """
365 super().__init__(filename)
366 pass
367

Member Function Documentation

◆ configure_collector()

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

Reimplemented in CDCWireConstraints, and VXDHierarchyConstraints.

Definition at line 83 of file constraints.py.

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

◆ generate()

generate ( self)
Generate the constraints

Reimplemented from Constraints.

Definition at line 368 of file constraints.py.

368 def generate(self):
369 """
370 Generate the constraints
371 """
372 print("Generating constraints for CDC T0's ...")
373 consts = []
374 const = Constraint()
375
376 for layer in range(0, 56):
377 for wire in range(0, self.wires_in_layer[layer]):
378 label = Belle2.GlobalLabel()
379 label.construct(Belle2.CDCTimeZeros.getGlobalUniqueID(), Belle2.WireID(layer, wire).getEWire(), 0)
380 const.add(label.label(), 1.0)
381
382 consts.append(const)
383 return consts
384
385
static unsigned short getGlobalUniqueID()
Get global unique id.
Class to convert to/from global labels for Millepede II to/from detector & parameter identificators.
Definition GlobalLabel.h:41
Class to identify a wire inside the CDC.
Definition WireID.h:34

Member Data Documentation

◆ filename

filename = filename
inherited

File name.

Definition at line 72 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 349 of file constraints.py.


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