8#include <tracking/modules/vxdCDCTrackMerger/StoreArrayMerger.h>
10#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
11#include <tracking/trackFindingCDC/utilities/Algorithms.h>
13#include <framework/core/ModuleParamList.templateDetails.h>
46 cdcRecoTrackVector.push_back(&recoTrack);
50 vxdRecoTrackVector.push_back(&recoTrack);
66 const auto& trackHasAlreadyRelations = [&partnerStoreArrayName](
const RecoTrack * recoTrack) {
67 return recoTrack->getRelated<
RecoTrack>(partnerStoreArrayName) !=
nullptr;
70 TrackFindingCDC::erase_remove_if(tracks, trackHasAlreadyRelations);
The Module parameter list class.
This is the Reconstruction Event-Data Model Track.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
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.
std::string m_param_cdcRecoTrackStoreArrayName
StoreArray name of the CDC Track Store Array.
void initialize() override
Require/register the store arrays.
std::string m_param_vxdRecoTrackStoreArrayName
StoreArray name of the VXD Track Store Array.
void removeCDCRecoTracksWithPartner(std::vector< RecoTrack * > &tracks)
Helper function to remove all tracks, which have a related VXD track from the vector.
StoreArray< RecoTrack > m_vxdRecoTracks
VXD Reco Tracks Store Array.
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...
void removeVXDRecoTracksWithPartner(std::vector< RecoTrack * > &tracks)
Helper function to remove all tracks, which have a related CDC track from the vector.
StoreArray< RecoTrack > m_cdcRecoTracks
CDC Reco Tracks Store Array.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the findlet.
int getEntries() const
Get the number of objects in the array.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
void initialize() override
Receive and dispatch signal before the start of the event processing.
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Forward prefixed parameters of this findlet to the module parameter list.
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.