Belle II Software development
RealisticSegmentRelationFilterTrainingRun Class Reference
Inheritance diagram for RealisticSegmentRelationFilterTrainingRun:
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 after the feasible filter and retrain its mva method

Definition at line 19 of file trainRealisticSegmentRelationFilter.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 trainRealisticSegmentRelationFilter.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 "realistic",
51 "filter(truth)",
52 ]
53 skim = "feasible"
54
55 elif self.task == "eval":
56 varSets = [
57 "filter(feasible)",
58 "filter(realistic)",
59 "filter(truth)",
60 ]
61 skim = ""
62
63 elif self.task == "explore":
64 varSets = [
65 "realistic",
66 "hit_gap",
67 "fit",
68 "filter(truth)",
69 ]
70 skim = "feasible"
71
72 else:
73 raise ValueError("Unknown task " + self.task)
74
75 path.add_module("TFCDC_SegmentFinderFacetAutomaton",
76 SegmentRelationFilter="unionrecording",
77 SegmentRelationFilterParameters={
78 "rootFileName": self.sample_file_name,
79 "varSets": varSets,
80 "skim": skim,
81 })
82
83 return path
84
85

◆ identifier()

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

Definition at line 33 of file trainRealisticSegmentRelationFilter.py.

33 def identifier(self):
34 """Database identifier of the filter being trained"""
35 return "trackfindingcdc_RealisticSegmentRelationFilter.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 trainRealisticSegmentRelationFilter.py.

◆ generator_module

str generator_module = "generic"
static

use the generic event generator

Definition at line 25 of file trainRealisticSegmentRelationFilter.py.

◆ n_events

int n_events = 10000
static

number of events to generate

Definition at line 23 of file trainRealisticSegmentRelationFilter.py.

◆ task

task

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

Definition at line 48 of file trainRealisticSegmentRelationFilter.py.

◆ truth

str truth = "truth_positive"
static

degree of MC truth-matching

Definition at line 30 of file trainRealisticSegmentRelationFilter.py.


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