13 <contact>software-tracking@belle2.org</contact>
14 <input>EvtGenSim.root</input>
15 <output>VXDTF2TrackingValidationBkg.root</output>
17 This module validates that the VXDTF2 SVD-only track finding
is capable of reconstructing tracks
in Y(4S) runs
with bkg included.
23from tracking.validation.run import TrackingValidationRun
28VALIDATION_OUTPUT_FILE = 'VXDTF2TrackingValidationBkg.root'
33def setupFinderModule(path):
34 tracking.add_hit_preparation_modules(path, components=["SVD"])
35 tracking.add_vxd_track_finding_vxdtf2(path, components=[
"SVD"])
40 Validation class for the four 4-SVD Layer tracking
45 generator_module = 'generic'
47 root_input_file =
'../EvtGenSim.root'
52 finder_module = staticmethod(setupFinderModule)
56 'WhichParticles': [
'SVD'],
67 use_expert_folder =
False
69 output_file_name = VALIDATION_OUTPUT_FILE
75 testing_secmap_name = os.getenv(
"BELLE2_TESTING_VXDTF2_SECMAP")
76 if testing_secmap_name
is not None:
77 basf2.B2WARNING(
"Using non-default (the one in the db) SectorMap: " + testing_secmap_name)
78 basf2.set_module_parameters(path,
"SectorMapBootstrap", ReadSecMapFromDB=
False)
79 basf2.set_module_parameters(path,
"SectorMapBootstrap", ReadSectorMap=
True)
80 basf2.set_module_parameters(path,
"SectorMapBootstrap", SectorMapsInputFile=testing_secmap_name)
85 create SVD validation class and
execute
87 basf2.set_random_seed(1337)
89 validation_run.configure_and_execute_from_commandline()
92if __name__ ==
'__main__':
93 logging.basicConfig(level=logging.INFO)
97 print(
"This validation deactivated and thus basf2 is not executed.\n"
98 "If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"
def adjust_path(self, path)