11 #include <tracking/modules/trackQualityEstimator/TrackQETrainingDataCollectorModule.h>
21 setDescription(
"Module to collect training data for a specified qualityEstimator and store it in a root file.");
22 setPropertyFlags(c_ParallelProcessingCertified | c_TerminateInAllProcesses);
24 addParam(
"recoTracksStoreArrayName",
25 m_recoTracksStoreArrayName,
26 "Name of the recoTrack StoreArray.",
27 m_recoTracksStoreArrayName);
29 addParam(
"SVDCDCRecoTracksStoreArrayName",
30 m_svdCDCRecoTracksStoreArrayName,
31 "Name of the SVD-CDC StoreArray.",
32 m_svdCDCRecoTracksStoreArrayName);
34 addParam(
"SVDPlusCDCStandaloneRecoTracksStoreArrayName",
35 m_svdPlusCDCStandaloneRecoTracksStoreArrayName,
36 "Name of the combined CDC-SVD StoreArray with tracks added from the CDC to SVD CKF.",
37 m_svdPlusCDCStandaloneRecoTracksStoreArrayName);
39 addParam(
"CDCRecoTracksStoreArrayName",
40 m_cdcRecoTracksStoreArrayName,
41 "Name of the CDC StoreArray.",
42 m_cdcRecoTracksStoreArrayName);
44 addParam(
"SVDRecoTracksStoreArrayName",
45 m_svdRecoTracksStoreArrayName,
46 "Name of the SVD StoreArray.",
47 m_svdRecoTracksStoreArrayName);
49 addParam(
"PXDRecoTracksStoreArrayName",
50 m_pxdRecoTracksStoreArrayName,
51 "Name of the PXD StoreArray.",
52 m_pxdRecoTracksStoreArrayName);
54 addParam(
"TrainingDataOutputName",
55 m_TrainingDataOutputName,
56 "Name of the output rootfile.",
57 m_TrainingDataOutputName);
59 addParam(
"collectEventFeatures",
60 m_collectEventFeatures,
61 "Whether to use eventwise features.",
62 m_collectEventFeatures);
88 m_truth = float(recoTrack.getMatchingStatus() == RecoTrack::MatchingStatus::c_matched);
94 RecoTrack* svdPlusCDCStandaloneRecoTrackPtr =
nullptr;
100 if (svdCDCRecoTrackPtr) {
105 if (not svdPlusCDCStandaloneRecoTrackPtr) {
108 svdPlusCDCStandaloneRecoTrackPtr = svdCDCRecoTrackPtr;