Belle II Software  release-08-00-10
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 369 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 374 of file caf_cdcdedx.py.

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

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