|
def | __init__ (self, name, algorithms, input_file_dict, max_iterations=5, dependencies=None, collector_granularity='All') |
|
CDCDedxCalibration is a specialized calibration for cdcdedx.
Definition at line 399 of file caf_cdcdedx.py.
◆ __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 404 of file caf_cdcdedx.py.
410 collector_granularity=
'All'):
413 name: name of calibration
414 algorithims: algorithm of calibration
415 input_file_dict: input files list
416 max_iterations: maximum number of iterations
417 dependenices: depends on the previous calibration
418 collector_granularity: granularity : all or run
420 super().__init__(name=name,
421 algorithms=algorithms
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)
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)
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)
441 self.add_collection(name=cal_name, collection=collection)
444 self.max_iterations = max_iterations
446 if dependencies
is not None:
447 for dep
in dependencies:
The documentation for this class was generated from the following file: