Belle II Software development
BackgroundClusterFilterTrainingRun Class Reference
Inheritance diagram for BackgroundClusterFilterTrainingRun:
ReadOrGenerateEventsRun MinimalRun EmptyRun

Public Member Functions

def create_path (self)
 

Public Attributes

 task
 Process each event according to the user's desired task (train, eval, explore)
 

Static Public Attributes

int n_events = 1000
 number of events to generate
 
str generator_module = "generic"
 use the generic event generator
 
os bkg_files = os.path.join(os.environ["VO_BELLE2_SW_DIR"], "bkg")
 overlay background hits from the events in these files
 

Detailed Description

Run to record clusters encountered at the ClusterBackgroundDetector and retrain its mva method

Definition at line 19 of file trainBackgroundClusterFilter.py.

Member Function Documentation

◆ create_path()

def create_path (   self)
Setup the recording path after the simulation

Reimplemented from ReadOrGenerateEventsRun.

Definition at line 29 of file trainBackgroundClusterFilter.py.

29 def create_path(self):
30 """Setup the recording path after the simulation"""
31 path = super().create_path()
32 path.add_module("TFCDC_WireHitPreparer",
33 flightTimeEstimation="outwards")
34
35
36 if self.task == "train":
37 varSets = [
38 "basic",
39 "bkg_truth",
40 ]
41
42 elif self.task == "eval":
43 varSets = [
44 "filter(mva_bkg)",
45 "bkg_truth",
46 ]
47
48 elif self.task == "explore":
49 # Change me.
50 varSets = [
51 "basic",
52 "bkg_truth",
53 "filter(mva_bkg)",
54 ]
55
56 path.add_module("TFCDC_ClusterPreparer",
57 ClusterFilter="unionrecording",
58 ClusterFilterParameters={
59 "rootFileName": self.sample_file_name,
60 "varSets": varSets,
61 })
62
63 return path
64
65

Member Data Documentation

◆ bkg_files

os bkg_files = os.path.join(os.environ["VO_BELLE2_SW_DIR"], "bkg")
static

overlay background hits from the events in these files

Definition at line 27 of file trainBackgroundClusterFilter.py.

◆ generator_module

str generator_module = "generic"
static

use the generic event generator

Definition at line 25 of file trainBackgroundClusterFilter.py.

◆ n_events

int n_events = 1000
static

number of events to generate

Definition at line 23 of file trainBackgroundClusterFilter.py.

◆ task

task

Process each event according to the user's desired task (train, eval, explore)

Definition at line 36 of file trainBackgroundClusterFilter.py.


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