16from trackfindingcdc.run.training
import TrainingRunMixin
20 """Run to record clusters encountered at the ClusterBackgroundDetector and retrain its mva method"""
25 generator_module =
"generic"
27 bkg_files = os.path.join(os.environ[
"VO_BELLE2_SW_DIR"],
"bkg")
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")
42 elif self.
task ==
"eval":
48 elif self.
task ==
"explore":
56 path.add_module(
"TFCDC_ClusterPreparer",
57 ClusterFilter=
"unionrecording",
58 ClusterFilterParameters={
59 "rootFileName": self.sample_file_name,
68 run.configure_and_execute_from_commandline()
71if __name__ ==
"__main__":
73 logging.basicConfig(stream=sys.stdout, level=logging.INFO, format=
'%(levelname)s:%(message)s')
task
Process each event according to the user's desired task (train, eval, explore)