Belle II Software development
MainTask Class Reference
Inheritance diagram for MainTask:

Public Member Functions

def requires (self)
 

Static Public Attributes

b2luigi n_events_training
 Number of events to generate for the training data set.
 
b2luigi n_events_testing
 Number of events to generate for the test data set.
 
b2luigi n_events_per_task
 Number of events per task.
 
b2luigi num_processes
 Number of basf2 processes to use in Basf2PathTasks.
 
b2luigi bkgfiles_by_exp = b2luigi.get_setting("bkgfiles_by_exp")
 Dictionary with experiment numbers as keys and background directory paths as values.
 
dict bkgfiles_by_exp = {int(key): val for (key, val) in bkgfiles_by_exp.items()}
 Transform dictionary keys (exp.
 

Detailed Description

Wrapper task that needs to finish for b2luigi to finish running this steering file.

It is done if the outputs of all required subtasks exist.  It is thus at the
top of the luigi task graph.  Edit the ``requires`` method to steer which
tasks and with which parameters you want to run.

Definition at line 684 of file cdc_and_svd_ckf_merger_mva_training.py.

Member Function Documentation

◆ requires()

def requires (   self)
Generate list of tasks that needs to be done for luigi to finish running
this steering file.

Definition at line 722 of file cdc_and_svd_ckf_merger_mva_training.py.

722 def requires(self):
723 """
724 Generate list of tasks that needs to be done for luigi to finish running
725 this steering file.
726 """
727
728 fast_bdt_options = [
729 [50, 8, 3, 0.1],
730 [100, 8, 3, 0.1],
731 [200, 8, 3, 0.1],
732 ]
733 cut_values = []
734 for i in range(4):
735 cut_values.append((i+1) * 0.2)
736
737 experiment_numbers = b2luigi.get_setting("experiment_numbers")
738
739 # iterate over all possible combinations of parameters from the above defined parameter lists
740 for experiment_number, fast_bdt_option, cut_value in itertools.product(
741 experiment_numbers, fast_bdt_options, cut_values
742 ):
743 yield ValidationAndOptimisationTask(
744 experiment_number=experiment_number,
745 n_events_training=self.n_events_training,
746 fast_bdt_option=fast_bdt_option,
747 n_events_testing=self.n_events_testing,
748 result_filter_cut=cut_value,
749 )
750
751

Member Data Documentation

◆ bkgfiles_by_exp [1/2]

b2luigi bkgfiles_by_exp = b2luigi.get_setting("bkgfiles_by_exp")
static

Dictionary with experiment numbers as keys and background directory paths as values.

Definition at line 718 of file cdc_and_svd_ckf_merger_mva_training.py.

◆ bkgfiles_by_exp [2/2]

dict bkgfiles_by_exp = {int(key): val for (key, val) in bkgfiles_by_exp.items()}
static

Transform dictionary keys (exp.

numbers) from strings to int

Definition at line 720 of file cdc_and_svd_ckf_merger_mva_training.py.

◆ n_events_per_task

b2luigi n_events_per_task
static
Initial value:
= b2luigi.get_setting(
)

Number of events per task.

Used to split up the simulation tasks.

Definition at line 705 of file cdc_and_svd_ckf_merger_mva_training.py.

◆ n_events_testing

b2luigi n_events_testing
static
Initial value:
= b2luigi.get_setting(
)

Number of events to generate for the test data set.

Definition at line 699 of file cdc_and_svd_ckf_merger_mva_training.py.

◆ n_events_training

b2luigi n_events_training
static
Initial value:
= b2luigi.get_setting(
)

Number of events to generate for the training data set.

Definition at line 693 of file cdc_and_svd_ckf_merger_mva_training.py.

◆ num_processes

b2luigi num_processes
static
Initial value:
= b2luigi.get_setting(
)

Number of basf2 processes to use in Basf2PathTasks.

Definition at line 711 of file cdc_and_svd_ckf_merger_mva_training.py.


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