Belle II Software  release-08-00-05
CDCDedxCalibration Class Reference
Inheritance diagram for CDCDedxCalibration:
Collaboration diagram for CDCDedxCalibration:

Public Member Functions

def __init__ (self, name, algorithms, input_file_dict, max_iterations=5, dependencies=None, collector_granularity='All')
 

Public Attributes

 max_iterations
 maximum iterations
 

Detailed Description

CDCDedxCalibration is a specialized calibration for cdcdedx.

Definition at line 364 of file caf_cdcdedx.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name,
  algorithms,
  input_file_dict,
  max_iterations = 5,
  dependencies = None,
  collector_granularity = 'All' 
)
parameters:
    name: name of calibration
    algorithims: algorithm of calibration
    input_file_dict: input files list
    max_iterations: maximum number of iterations
    dependenices: depends on the previous calibration
    collector_granularity: granularity : all or run

Definition at line 369 of file caf_cdcdedx.py.

375  collector_granularity='All'):
376  '''
377  parameters:
378  name: name of calibration
379  algorithims: algorithm of calibration
380  input_file_dict: input files list
381  max_iterations: maximum number of iterations
382  dependenices: depends on the previous calibration
383  collector_granularity: granularity : all or run
384  '''
385  super().__init__(name=name,
386  algorithms=algorithms
387  )
388 
389  from caf.framework import Collection
390 
391  if name == "bd" or name == "wg":
392  collection = Collection(collector=collector(granularity=collector_granularity, name=name),
393  input_files=input_file_dict[2],
394  pre_collector_path=pre_collector(name)
395  )
396  elif name == "cc" or name == "ce":
397  collection = Collection(collector=collector(granularity=collector_granularity, name=name),
398  input_files=input_file_dict[1],
399  pre_collector_path=pre_collector(name)
400  )
401  else:
402  collection = Collection(collector=collector(granularity=collector_granularity, name=name),
403  input_files=input_file_dict[0],
404  pre_collector_path=pre_collector(name)
405  )
406  self.add_collection(name=name, collection=collection)
407 
408 
409  self.max_iterations = max_iterations
410 
411  if dependencies is not None:
412  for dep in dependencies:
413  self.depends_on(dep)

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