|
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 373 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 378 of file caf_cdcdedx.py.
384 collector_granularity=
'All'):
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
394 super().__init__(name=name,
395 algorithms=algorithms
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)
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)
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)
415 self.add_collection(name=cal_name, collection=collection)
418 self.max_iterations = max_iterations
420 if dependencies
is not None:
421 for dep
in dependencies:
The documentation for this class was generated from the following file: