 |
Belle II Software
release-05-02-19
|
10 #include <tracking/modules/vxdCDCTrackMerger/StoreArrayMerger.h>
12 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
13 #include <tracking/trackFindingCDC/utilities/Algorithms.h>
15 #include <framework/core/ModuleParamList.templateDetails.h>
48 cdcRecoTrackVector.push_back(&recoTrack);
52 vxdRecoTrackVector.push_back(&recoTrack);
68 const auto& trackHasAlreadyRelations = [&partnerStoreArrayName](
const RecoTrack * recoTrack) {
69 return recoTrack->getRelated<
RecoTrack>(partnerStoreArrayName) !=
nullptr;
72 TrackFindingCDC::erase_remove_if(tracks, trackHasAlreadyRelations);
void apply(std::vector< RecoTrack * > &cdcRecoTrackVector, std::vector< RecoTrack * > &vxdRecoTrackVector) override
Fetch the RecoTracks from the two input Store Arrays and fill them into two vectors.
StoreArray< RecoTrack > m_cdcRecoTracks
CDC Reco Tracks Store Array.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the findlet.
StoreArray< RecoTrack > m_vxdRecoTracks
VXD Reco Tracks Store Array.
void initialize() override
Receive and dispatch signal before the start of the event processing.
This is the Reconstruction Event-Data Model Track.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
virtual void exposeParameters(ModuleParamList *moduleParamList __attribute__((unused)), const std::string &prefix __attribute__((unused)))
Forward prefixed parameters of this findlet to the module parameter list.
void initialize() override
Require/register the store arrays.
void removeCDCRecoTracksWithPartner(std::vector< RecoTrack * > &tracks)
Helper function to remove all tracks, which have a related VXD track from the vector.
std::string m_param_vxdRecoTrackStoreArrayName
StoreArray name of the VXD Track Store Array.
void removeVXDRecoTracksWithPartner(std::vector< RecoTrack * > &tracks)
Helper function to remove all tracks, which have a related CDC track from the vector.
The Module parameter list class.
void removeRecoTracksWithPartner(std::vector< RecoTrack * > &tracks, const std::string &partnerStoreArrayName)
Helper function to remove all element in a std::vector, which have already a relation to the given st...
std::string m_param_cdcRecoTrackStoreArrayName
StoreArray name of the CDC Track Store Array.