13 <contact>software-tracking@belle2.org</contact>
14 <input>EvtGenSim.root</input>
15 <output>toCDCCKFTrackingValidationBkg.root</output>
16 <description>This module validates ToCDCCKF module using Y(4S) runs
with background.</description>
20from tracking.validation.run import TrackingValidationRun
26VALIDATION_OUTPUT_FILE = 'toCDCCKFTrackingValidationBkg.root'
31class toCDCCKFValidationBkg(TrackingValidationRun):
32 """Validate the ToCDCCKF Kalman finder/filter algorithm with Y(4S) events"""
36 generator_module =
'generic'
38 root_input_file =
'../EvtGenSim.root'
42 """Add the ToCDCCKF module and related modules to the basf2 path"""
44 path.add_module(
'SetupGenfitExtrapolation',
45 energyLossBrems=
False, noiseBrems=
False)
48 tracking.add_vxd_track_finding_vxdtf2(path, reco_tracks=
"RecoTracksSVD", components=[
"SVD"])
49 path.add_module(
"DAFRecoFitter", recoTracksStoreArrayName=
"RecoTracksSVD")
51 path.add_module(
"TFCDC_WireHitPreparer",
52 wirePosition=
"aligned",
54 flightTimeEstimation=
"outwards")
55 path.add_module(
"ToCDCCKF",
56 inputWireHits=
"CDCWireHitVector",
57 inputRecoTrackStoreArrayName=
"RecoTracksSVD",
58 relatedRecoTrackStoreArrayName=
"CKFCDCRecoTracks",
59 relationCheckForDirection=
"backward",
60 outputRecoTrackStoreArrayName=
"CKFCDCRecoTracks",
61 outputRelationRecoTrackStoreArrayName=
"RecoTracksSVD",
62 writeOutDirection=
"backward",
63 stateBasicFilterParameters={
"maximalHitDistance": 0.75},
64 stateExtrapolationFilterParameters={
"direction":
"forward"},
65 pathFilter=
"arc_length")
67 path.add_module(
"RelatedTracksCombiner",
68 CDCRecoTracksStoreArrayName=
"CKFCDCRecoTracks",
69 VXDRecoTracksStoreArrayName=
"RecoTracksSVD",
70 recoTracksStoreArrayName=
"RecoTracks")
72 path.add_module(
"DAFRecoFitter", recoTracksStoreArrayName=
"RecoTracks")
74 path.add_module(
'TrackCreator', recoTrackColName=
'RecoTracks')
87 use_fit_information =
True
93 output_file_name = VALIDATION_OUTPUT_FILE
97 basf2.set_random_seed(1337)
99 validation_run.configure_and_execute_from_commandline()
102if __name__ ==
'__main__':
103 logging.basicConfig(level=logging.INFO)
107 print(
"This validation deactivated and thus basf2 is not executed.\n"
108 "If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"
None finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
def add_svd_reconstruction(path, isROIsimulation=False, createRecoDigits=False, applyMasking=False)