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

Public Member Functions

def __init__ (self, algorithm)
 
def apply_experiment_settings (self, algorithm, experiment)
 

Public Attributes

 millepede_entries
 Number of Millepede entries.
 
 millepede_entries_exp7
 Number of Millepede entries for experiment 7.
 

Static Public Attributes

dict usable_params
 The params that you could set on the Algorithm object which this Strategy would use.
 
list allowed_granularities = ["run"]
 Granularity of collector that can be run by this algorithm properly.
 

Detailed Description

Custom stragery for KLM alignment. Based on SequentialRunByRun strategy,
but requires custom experiment-dependent settings.

Definition at line 17 of file klm_alignment.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  algorithm 
)
 

Definition at line 35 of file klm_alignment.py.

35 def __init__(self, algorithm):
36 """
37 """
38 super().__init__(algorithm)
39
40 self.millepede_entries = 0
41
42 self.millepede_entries_exp7 = 0
43

Member Function Documentation

◆ apply_experiment_settings()

def apply_experiment_settings (   self,
  algorithm,
  experiment 
)
Apply experiment-dependent settings.

Definition at line 44 of file klm_alignment.py.

44 def apply_experiment_settings(self, algorithm, experiment):
45 """
46 Apply experiment-dependent settings.
47 """
48 if "millepede_entries" in self.algorithm.params:
49 self.millepede_entries = self.algorithm.params["millepede_entries"]
50
51 if "millepede_entries_exp7" in self.algorithm.params:
52 self.millepede_entries_exp7 = self.algorithm.params["millepede_entries_exp7"]
53 if experiment == 7:
54 algorithm.setMinEntries(self.millepede_entries_exp7)
55 else:
56 algorithm.setMinEntries(self.millepede_entries)

Member Data Documentation

◆ allowed_granularities

list allowed_granularities = ["run"]
static

Granularity of collector that can be run by this algorithm properly.

Definition at line 33 of file klm_alignment.py.

◆ millepede_entries

millepede_entries

Number of Millepede entries.

Definition at line 40 of file klm_alignment.py.

◆ millepede_entries_exp7

millepede_entries_exp7

Number of Millepede entries for experiment 7.

Definition at line 42 of file klm_alignment.py.

◆ usable_params

dict usable_params
static
Initial value:
= {
"has_experiment_settings": bool, # Used in SequentialRunByRun.
"iov_coverage": IoV, # Used in SequentialRunByRun.
"millepede_entries": int,
"millepede_entries_exp7": int,
"step_size": int # Used in SequentialRunByRun.
}

The params that you could set on the Algorithm object which this Strategy would use.

Just here for documentation reasons.

Definition at line 24 of file klm_alignment.py.


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