18from trackfindingcdc.run.training
import TrainingRunMixin
23 """Run to record tracks encountered at the TrackRejecter and retrain its mva method"""
28 generator_module =
"generic"
30 bkg_files = os.path.join(os.environ[
"VO_BELLE2_SW_DIR"],
"bkg")
37 """Database identifier of the filter being trained"""
38 return "trackfindingcdc_TrackFilter.xml"
40 def create_path(self):
41 """Setup the recording path after the simulation"""
42 path = super().create_path()
44 add_cdc_track_finding(path)
48 filterName =
"recording"
50 elif self.
task ==
"eval":
55 elif self.
task ==
"explore":
57 filterName =
"recording"
59 adjust_module(path,
"TFCDC_SegmentTrackCombiner",
60 trackFilter=filterName,
61 trackFilterParameters={
62 "rootFileName": self.sample_file_name,
68 """Post-process the results for MC-truth acceptance"""
69 if self.
task ==
"eval":
76 run.configure_and_execute_from_commandline()
79if __name__ ==
"__main__":
81 logging.basicConfig(stream=sys.stdout, level=logging.INFO, format=
'%(levelname)s:%(message)s')
truth
Modify degree of MC truth-matching.
task
Process each event according to the user's desired task (train, eval, explore)
str truth
degree of MC truth-matching