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>
26 VALIDATION_OUTPUT_FILE =
'toCDCCKFTrackingValidationBkg.root'
30 basf2.set_random_seed(1337)
34 """Validate the ToCDCCKF Kalman finder/filter algorithm with Y(4S) events"""
38 generator_module =
'generic'
40 root_input_file =
'../EvtGenSim.root'
44 """Add the ToCDCCKF module and related modules to the basf2 path"""
46 path.add_module(
'SetupGenfitExtrapolation',
47 energyLossBrems=
False, noiseBrems=
False)
50 tracking.add_vxd_track_finding_vxdtf2(path, reco_tracks=
"RecoTracksSVD", components=[
"SVD"])
51 path.add_module(
"DAFRecoFitter", recoTracksStoreArrayName=
"RecoTracksSVD")
53 path.add_module(
"TFCDC_WireHitPreparer",
54 wirePosition=
"aligned",
56 flightTimeEstimation=
"outwards")
57 path.add_module(
"ToCDCCKF",
58 inputWireHits=
"CDCWireHitVector",
59 inputRecoTrackStoreArrayName=
"RecoTracksSVD",
60 relatedRecoTrackStoreArrayName=
"CKFCDCRecoTracks",
61 relationCheckForDirection=
"backward",
62 outputRecoTrackStoreArrayName=
"CKFCDCRecoTracks",
63 outputRelationRecoTrackStoreArrayName=
"RecoTracksSVD",
64 writeOutDirection=
"backward",
65 stateBasicFilterParameters={
"maximalHitDistance": 0.75},
66 stateExtrapolationFilterParameters={
"direction":
"forward"},
67 pathFilter=
"arc_length")
69 path.add_module(
"RelatedTracksCombiner",
70 CDCRecoTracksStoreArrayName=
"CKFCDCRecoTracks",
71 VXDRecoTracksStoreArrayName=
"RecoTracksSVD",
72 recoTracksStoreArrayName=
"RecoTracks")
74 path.add_module(
"DAFRecoFitter", recoTracksStoreArrayName=
"RecoTracks")
76 path.add_module(
'TrackCreator', recoTrackColName=
'RecoTracks')
89 use_fit_information =
True
95 output_file_name = VALIDATION_OUTPUT_FILE
100 validation_run.configure_and_execute_from_commandline()
103 if __name__ ==
'__main__':
104 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.