Belle II Software  release-05-02-19
tracking.adjustments Namespace Reference

Functions

def adjust_module (path, module_type, params={}, **kwds)
 
def skip_modules_after (path, module_type)
 
def disable_deltas (path)
 
def keep_secondaries (path)
 
def enable_wire_by_wire_mode (path)
 

Detailed Description

Contains functions that operate on populated path adjust some module parameters

Function Documentation

◆ adjust_module()

def tracking.adjustments.adjust_module (   path,
  module_type,
  params = {},
**  kwds 
)
Set parameters of the module with the given type in the path to the given parameters

Arguments
---------
path : basf2.Path
    Module path to be adjusted.
module_type : str
    Type of the module to adjusted as returned by Module.type()
params : dict
   Dictionary of parameters served to Module.param(params)
**kwds
   Keyword parameters served to Module.param(params)

Definition at line 6 of file adjustments.py.

6 def adjust_module(path, module_type, params={}, **kwds):
7  """Set parameters of the module with the given type in the path to the given parameters
8 
9  Arguments
10  ---------
11  path : basf2.Path
12  Module path to be adjusted.
13  module_type : str
14  Type of the module to adjusted as returned by Module.type()
15  params : dict
16  Dictionary of parameters served to Module.param(params)
17  **kwds
18  Keyword parameters served to Module.param(params)
19  """
20  for module in path.modules():
21  if module.type() == module_type:
22  module.param(params)
23  module.param(kwds)
24  for sub_path in module.get_all_condition_paths():
25  adjust_module(sub_path, module_type, params=params, **kwds)
26 
27 

◆ disable_deltas()

def tracking.adjustments.disable_deltas (   path)
Disables the generation of delta electrons in FullSim

Arguments
---------
path : basf2.Path

Definition at line 45 of file adjustments.py.

◆ enable_wire_by_wire_mode()

def tracking.adjustments.enable_wire_by_wire_mode (   path)
Enables the wire by wire material distribution in the CDC

Arguments
---------
path : basf2.Path

Definition at line 75 of file adjustments.py.

◆ keep_secondaries()

def tracking.adjustments.keep_secondaries (   path)
Keep all secondaries from the FullSim

Arguments
---------
path : basf2.Path

Definition at line 58 of file adjustments.py.

◆ skip_modules_after()

def tracking.adjustments.skip_modules_after (   path,
  module_type 
)
Inserts a conditional path at the module of the given type such that modules after are skipped.

Arguments
---------
path : basf2.Path
    Module path to be adjusted.
module_type : str
    Type of the module to adjusted as returned by Module.type()

Definition at line 28 of file adjustments.py.