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

Public Member Functions

def identifier (self)
 
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 = 10000
 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
 
str truth = "truth_positive"
 degree of MC truth-matching
 

Detailed Description

Run to record segment relations encountered at the SegmentLinker and retrain its mva method

Definition at line 19 of file trainFeasibleSegmentRelationFilter.py.

Member Function Documentation

◆ create_path()

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

Reimplemented from ReadOrGenerateEventsRun.

Definition at line 37 of file trainFeasibleSegmentRelationFilter.py.

37 def create_path(self):
38 """Setup the recording path after the simulation"""
39 path = super().create_path()
40 path.add_module("TFCDC_WireHitPreparer",
41 flightTimeEstimation="outwards")
42
43 path.add_module("TFCDC_ClusterPreparer",
44 SuperClusterDegree=3,
45 SuperClusterExpandOverApogeeGap=True)
46
47
48 if self.task == "train":
49 varSets = [
50 "feasible",
51 "filter(truth)",
52 ]
53
54 elif self.task == "eval":
55 varSets = [
56 "filter(feasible)",
57 "filter(truth)",
58 ]
59
60 elif self.task == "explore":
61 varSets = [
62 "feasible",
63 "hit_gap",
64 "fit",
65 "filter(truth)",
66 ]
67
68 else:
69 raise ValueError("Unknown task " + self.task)
70
71 path.add_module("TFCDC_SegmentFinderFacetAutomaton",
72 SegmentRelationFilter="unionrecording",
73 SegmentRelationFilterParameters={
74 "rootFileName": self.sample_file_name,
75 "varSets": varSets,
76 })
77
78 return path
79
80

◆ identifier()

def identifier (   self)
Database identifier of the filter being trained

Definition at line 33 of file trainFeasibleSegmentRelationFilter.py.

33 def identifier(self):
34 """Database identifier of the filter being trained"""
35 return "trackfindingcdc_FeasibleSegmentRelationFilter.xml"
36

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 trainFeasibleSegmentRelationFilter.py.

◆ generator_module

str generator_module = "generic"
static

use the generic event generator

Definition at line 25 of file trainFeasibleSegmentRelationFilter.py.

◆ n_events

int n_events = 10000
static

number of events to generate

Definition at line 23 of file trainFeasibleSegmentRelationFilter.py.

◆ task

task

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

Definition at line 48 of file trainFeasibleSegmentRelationFilter.py.

◆ truth

str truth = "truth_positive"
static

degree of MC truth-matching

Definition at line 30 of file trainFeasibleSegmentRelationFilter.py.


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