Belle II Software  release-08-01-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 373 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 378 of file caf_cdcdedx.py.

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

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