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 341 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 358 of file constraints.py.

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

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 366 of file constraints.py.

366 def generate(self):
367 """
368 Generate the constraints
369 """
370 print("Generating constraints for CDC T0's ...")
371 consts = []
372 const = Constraint()
373
374 for layer in range(0, 56):
375 for wire in range(0, self.wires_in_layer[layer]):
376 label = Belle2.GlobalLabel()
377 label.construct(Belle2.CDCTimeZeros.getGlobalUniqueID(), Belle2.WireID(layer, wire).getEWire(), 0)
378 const.add(label.label(), 1.0)
379
380 consts.append(const)
381 return consts
382
383
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 347 of file constraints.py.


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