10#include <tracking/trackingUtilities/eventdata/tracks/CDCTrack.h>
11#include <tracking/trackFindingCDC/mclookup/ITrackType.h>
13#include <tracking/trackFindingCDC/mclookup/CDCMCTrackLookUp.h>
14#include <tracking/trackFindingCDC/mclookup/CDCMCHitLookUp.h>
24 namespace TrackFindingCDC {
49 void fill(std::vector<TrackingUtilities::CDCTrack>& cdcTracks);
64 std::vector<TrackingUtilities::CDCTrack>& cdcTracks);
std::map< const TrackingUtilities::CDCTrack *, bool > m_cdcTrackIsCloneMap
Map of track pointers to isClone indicator from MCTruth-based assumption.
std::map< const ITrackType, std::vector< TrackingUtilities::CDCTrack * > > getMatchedCDCTracksByMCID(std::vector< TrackingUtilities::CDCTrack > &cdcTracks)
Helper function which returns a map of MCTrackIDs to vectors of CDTrack pointers.
CDCMCCloneLookUp()=default
Singleton: Default ctor only available to getInstance method.
CDCMCCloneLookUp(CDCMCCloneLookUp &)=delete
Singleton: Delete copy constructor and assignment operator.
static CDCMCCloneLookUp & getInstance()
Getter for the singletone instance.
CDCMCCloneLookUp & operator=(const CDCMCCloneLookUp &)=delete
Operator =.
TrackingUtilities::CDCTrack * findBestMatchedTrack(std::vector< TrackingUtilities::CDCTrack * > matchedTrackPtrs)
Helper function which takes a vector of pointers to CDCTracks which are matched to the same MC partic...
bool isTrackClone(const TrackingUtilities::CDCTrack &cdcTrack)
getter for information from m_cdcTrackIsCloneMap
void fill(std::vector< TrackingUtilities::CDCTrack > &cdcTracks)
fill with all cdcTracks in an event
void clear()
Clear eventwise lookup tables.
Interface class to the Monte Carlo information for individual hits.
Specialisation of the lookup for the truth values of reconstructed tracks.
Class representing a sequence of three dimensional reconstructed hits.
Abstract base class for different kinds of events.
unsigned int getNumberOfCorrectHits(const TrackingUtilities::CDCTrack *ptrCDCTrack) const
Get number of hits in track that are correctly matched.
CompareCDCTracks(const CDCMCTrackLookUp &cdcMCTrackLookUp, const CDCMCHitLookUp &cdcMCHitLookUp)
Constructor of the CDC track comparer to get the better match, taking references to MC lookup singlet...
const CDCMCHitLookUp & m_CDCMCHitLookUp
Reference to a CDCMCHitLookUp instance, assigned in the constructor of this functor.
const CDCMCTrackLookUp & m_CDCMCTrackLookUp
Reference to a CDCMCTrackLookUp instance, assigned in the constructor of this functor.
bool operator()(const TrackingUtilities::CDCTrack *ptrCDCTrack1, const TrackingUtilities::CDCTrack *ptrCDCTrack2) const
Compare both CDC tracks to get the better matched one.
Tag class to facilitate marking of class as a functor in the sense of this code.