14 <contact>software-tracking@belle2.org</contact>
15 <input>EvtGenSim.root</input>
16 <output>toCDCCKFTrackingValidationBkg.root</output>
17 <description>This module validates ToCDCCKF module using Y(4S) runs with background.</description>
27 VALIDATION_OUTPUT_FILE =
'toCDCCKFTrackingValidationBkg.root'
31 basf2.set_random_seed(1337)
35 """Validate the ToCDCCKF Kalman finder/filter algorithm with Y(4S) events"""
39 generator_module =
'generic'
41 root_input_file =
'../EvtGenSim.root'
45 """Add the ToCDCCKF module and related modules to the basf2 path"""
47 path.add_module(
'SetupGenfitExtrapolation',
48 energyLossBrems=
False, noiseBrems=
False)
51 tracking.add_vxd_track_finding_vxdtf2(path, reco_tracks=
"RecoTracksSVD", components=[
"SVD"])
52 path.add_module(
"DAFRecoFitter", recoTracksStoreArrayName=
"RecoTracksSVD")
54 path.add_module(
"TFCDC_WireHitPreparer",
55 wirePosition=
"aligned",
57 flightTimeEstimation=
"outwards")
58 path.add_module(
"ToCDCCKF",
59 inputWireHits=
"CDCWireHitVector",
60 inputRecoTrackStoreArrayName=
"RecoTracksSVD",
61 relatedRecoTrackStoreArrayName=
"CKFCDCRecoTracks",
62 relationCheckForDirection=
"backward",
63 outputRecoTrackStoreArrayName=
"CKFCDCRecoTracks",
64 outputRelationRecoTrackStoreArrayName=
"RecoTracksSVD",
65 writeOutDirection=
"backward",
66 stateBasicFilterParameters={
"maximalHitDistance": 0.75},
67 stateExtrapolationFilterParameters={
"direction":
"forward"},
68 pathFilter=
"arc_length")
70 path.add_module(
"RelatedTracksCombiner",
71 CDCRecoTracksStoreArrayName=
"CKFCDCRecoTracks",
72 VXDRecoTracksStoreArrayName=
"RecoTracksSVD",
73 recoTracksStoreArrayName=
"RecoTracks")
75 path.add_module(
"DAFRecoFitter", recoTracksStoreArrayName=
"RecoTracks")
77 path.add_module(
'TrackCreator', recoTrackColName=
'RecoTracks')
90 use_fit_information =
True
96 output_file_name = VALIDATION_OUTPUT_FILE
101 validation_run.configure_and_execute_from_commandline()
104 if __name__ ==
'__main__':
105 logging.basicConfig(level=logging.INFO)
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)
int main(int argc, char **argv)
Run all tests.