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

Public Member Functions

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

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__()

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

Reimplemented from Constraints.

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

◆ generate()

def 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.
Definition: CDCTimeZeros.h:140
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

◆ 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: