Belle II Software  release-08-01-10
FacetRelationFilterTrainingRun Class Reference
Inheritance diagram for FacetRelationFilterTrainingRun:
Collaboration diagram for FacetRelationFilterTrainingRun:

Public Member Functions

def identifier (self)
 
def create_path (self)
 
def create_argument_parser (self, **kwds)
 
def configure (self, arguments)
 
def execute (self)
 
def name (self)
 
def configure_and_execute_from_commandline (self)
 
def run (self, path)
 
def configure_from_commandline (self)
 
def adjust_path (self, path)
 

Public Attributes

 task
 Post-process events according to the user's desired task (train, eval, explore)
 
 variables
 Signal some variables to select in the classification analysis.
 
 groupby
 group output by superlayer_id
 
 auxiliaries
 auxiliary histograms
 
 root_input_file
 generating events, so there is no ROOT input file
 

Static Public Attributes

int n_events = 1000
 Suggested number for this analysis.
 
string generator_module = "generic"
 Suggested generator module.
 
string task = "explore"
 Default task set to explore.
 
string truth = "truth_positive"
 Name of the truth variables.
 
string description = "Simulate events using various generator and detector setups from command line."
 Description of the run setup to be displayed on command line.
 
string detector_setup = "Default"
 By default, use the default detector setup.
 
list bkg_files = []
 By default, no background overlay.
 
 components = None
 By default, do specific components.
 
bool disable_deltas = False
 By default, do not disable delta-ray generation.
 
 simulation_output = None
 By default, do no store the simulation output.
 
bool allow_input = True
 By default, this basf2 job can read events from an input ROOT TFile.
 
 random_seed = None
 By default, the random-number seed is unassigned.
 
int n_processes = 0
 By default, no parallel processing.
 
int n_events_to_skip = 0
 By default, do not skip any events at the start of the input ROOT TFile.
 

Detailed Description

Run for recording facets encountered at the filter

Definition at line 24 of file trainFacetRelationFilter.py.

Member Function Documentation

◆ adjust_path()

def adjust_path (   self,
  path 
)
inherited
Hook that gives the opportunity to check the path for consistency before processing it

Reimplemented in HarvestingRunMixin.

Definition at line 95 of file minimal.py.

◆ configure()

def configure (   self,
  arguments 
)
inherited
Configure for basf2 job; disable ROOT input if simulating events

Reimplemented from EmptyRun.

Reimplemented in CDCDisplayRun.

Definition at line 123 of file event_generation.py.

◆ configure_and_execute_from_commandline()

def configure_and_execute_from_commandline (   self)
inherited
Configure basf2 job script from command-line arguments then run it

Definition at line 46 of file minimal.py.

◆ configure_from_commandline()

def configure_from_commandline (   self)
inherited
Convert the command-line arguments to a basf2 job script

Definition at line 68 of file minimal.py.

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
inherited

◆ create_path()

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

Reimplemented from ReadOrGenerateEventsRun.

Definition at line 44 of file trainFacetRelationFilter.py.

44  def create_path(self):
45  """Setup the recording path after the simulation"""
46  path = super().create_path()
47 
48 
49  if self.task == "train":
50  var_sets = [
51  "mva",
52  "filter(truth)",
53  ]
54 
55  elif self.task == "eval":
56  var_sets = [
57  "basic",
58  "filter(chi2)",
59  "filter(chi2_old)",
60  "filter(simple)",
61  "filter(truth)",
62  ]
63 
64  self.variables = [
65  "chi2_weight",
66  "chi2_accept",
67  "chi2_old_weight",
68  "chi2_old_accept",
69  "simple_accept",
70  ]
71 
72  self.groupby = ["", "superlayer_id"]
73  self.auxiliaries = [
74  "superlayer_id",
75  ]
76 
77  elif self.task == "explore":
78  var_sets = [
79  "basic",
80  "bend",
81  "fit",
82  "filter(chi2)",
83  "filter(simple)",
84  "filter(truth)",
85  ]
86 
87 
88  self.variables = [
89  # "delta_phi",
90  # "delta_phi_pull",
91  # "delta_phi_pull_per_r",
92  # "delta_curv",
93  # "delta_curv_pull",
94  # "delta_curv_pull_per_r",
95 
96  # "cos_delta",
97  # "from_middle_cos_delta",
98  # "to_middle_cos_delta",
99 
100  "chi2_0",
101  # "chi2_0_per_s",
102  # "erf_0",
103  # "fit_0_phi0",
104  # "fit_0_cos_delta",
105 
106  # "chi2_1",
107  # "chi2_1_per_s",
108  # "fit_1_phi0",
109  # "fit_1_cos_delta",
110 
111  # "chi2",
112  # "chi2_per_s",
113  # "fit_phi0",
114  # "fit_cos_delta",
115 
116  # "phi0_from_sigma",
117  # "phi0_to_sigma",
118 
119  # "phi0_ref_pull",
120  # "phi0_ref_diff",
121  # "phi0_ref_sigma",
122 
123  # "chi2_comb",
124  # "phi0_comb_pull",
125  # "phi0_comb_diff",
126  # "phi0_comb_sigma",
127 
128  # "chi2_kari_unit",
129  # "abs_curv_unit",
130 
131  # "chi2_kari_l",
132  # "abs_curv_l",
133 
134  # "chi2_kari_pseudo",
135  # "abs_curv_pseudo",
136 
137  # "chi2_kari_proper",
138  # "abs_curv_proper",
139  ]
140 
141 
142  self.groupby = ["", "superlayer_id"]
143 
144  self.auxiliaries = [
145  "superlayer_id",
146  ]
147 
148  path.add_module("TFCDC_WireHitPreparer",
149  flightTimeEstimation="outwards",
150  UseNLoops=1.0)
151 
152  path.add_module("TFCDC_ClusterPreparer")
153 
154  path.add_module("TFCDC_SegmentFinderFacetAutomaton",
155  FacetRelationFilter="unionrecording",
156  FacetRelationFilterParameters={
157  "rootFileName": self.sample_file_name,
158  "varSets": var_sets,
159  })
160 
161  return path
162 
163 

◆ execute()

def execute (   self)
inherited
Run the basf2 job

Reimplemented from EmptyRun.

Definition at line 131 of file event_generation.py.

◆ identifier()

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

Definition at line 40 of file trainFacetRelationFilter.py.

◆ name()

def name (   self)
inherited
provide name of this object

Definition at line 42 of file minimal.py.

◆ run()

def run (   self,
  path 
)
inherited
Process the basf2 path

Reimplemented in PostProcessingRunMixin.

Definition at line 59 of file minimal.py.


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