Belle II Software development
CDCDedxCalibration Class Reference
Inheritance 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 399 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
    algorithms: algorithm of calibration
    input_file_dict: input files list
    max_iterations: maximum number of iterations
    dependencies: depends on the previous calibration
    collector_granularity: granularity : all or run

Definition at line 404 of file caf_cdcdedx.py.

410 collector_granularity='All'):
411 '''
412 parameters:
413 name: name of calibration
414 algorithms: algorithm of calibration
415 input_file_dict: input files list
416 max_iterations: maximum number of iterations
417 dependencies: depends on the previous calibration
418 collector_granularity: granularity : all or run
419 '''
420 super().__init__(name=name,
421 algorithms=algorithms
422 )
423
424 from caf.framework import Collection
425 cal_name = ''.join([i for i in name if not i.isdigit()])
426 if cal_name == "badwire" or cal_name == "wiregain":
427 collection = Collection(collector=collector(granularity=collector_granularity, name=cal_name),
428 input_files=input_file_dict[2],
429 pre_collector_path=pre_collector(cal_name)
430 )
431 elif cal_name == "coscorr" or cal_name == "cosedge" or cal_name == "onedcell":
432 collection = Collection(collector=collector(granularity=collector_granularity, name=cal_name),
433 input_files=input_file_dict[1],
434 pre_collector_path=pre_collector(cal_name)
435 )
436 else:
437 collection = Collection(collector=collector(granularity=collector_granularity, name=cal_name),
438 input_files=input_file_dict[0],
439 pre_collector_path=pre_collector(cal_name)
440 )
441 self.add_collection(name=cal_name, collection=collection)
442
443
444 self.max_iterations = max_iterations
445
446 if dependencies is not None:
447 for dep in dependencies:
448 self.depends_on(dep)

Member Data Documentation

◆ max_iterations

max_iterations

maximum iterations

Definition at line 444 of file caf_cdcdedx.py.


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