 |
Belle II Software
release-05-01-25
|
3 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
4 #include <tracking/trackFindingCDC/mclookup/ITrackType.h>
6 #include <tracking/trackFindingCDC/mclookup/CDCMCTrackLookUp.h>
7 #include <tracking/trackFindingCDC/mclookup/CDCMCHitLookUp.h>
17 namespace TrackFindingCDC {
38 void fill(std::vector<CDCTrack>& cdcTracks);
53 std::vector<CDCTrack>& cdcTracks);
Class representing a sequence of three dimensional reconstructed hits.
CDCMCCloneLookUp()=default
Singleton: Default ctor only available to getInstance method.
std::map< const ITrackType, std::vector< CDCTrack * > > getMatchedCDCTracksByMCID(std::vector< CDCTrack > &cdcTracks)
Helper function which returns a map of MCTrackIDs to vectors of CDTrack pointers.
unsigned int getNumberOfCorrectHits(const CDCTrack *ptrCDCTrack) const
Get number of hits in track that are correctly matched.
std::map< const CDCTrack *, bool > m_cdcTrackIsCloneMap
Map of track pointers to isClone indicator from MCTruth-based assumption.
void fill(std::vector< CDCTrack > &cdcTracks)
fill with all cdcTracks in an event
const CDCMCHitLookUp & m_CDCMCHitLookUp
Reference to a CDCMCHitLookUp instance, assigned in the constructor of this functor.
Abstract base class for different kinds of events.
Interface class to the Monte Carlo information for individual hits.
Class providing information whether a PR CDC track is the best match or a clone.
bool operator()(const CDCTrack *ptrCDCTrack1, const CDCTrack *ptrCDCTrack2) const
Compare both CDC tracks to get the better matched one.
Functor which which decides which of two tracks to declare as best match.
Tag class to facilitate marking of class as a functor in the sense of this code.
CDCTrack * findBestMatchedTrack(std::vector< CDCTrack * > matchedTrackPtrs)
Helper function which takes a vector of pointers to CDCTracks which are matched to the same MC partic...
CompareCDCTracks(const CDCMCTrackLookUp &cdcMCTrackLookUp, const CDCMCHitLookUp &cdcMCHitLookUp)
Constructor of the CDC track comparer to get the better match, taking references to MC lookup singlet...
static CDCMCCloneLookUp & getInstance()
Getter for the singletone instance.
void clear()
Clear eventwise lookup tables.
Specialisation of the lookup for the truth values of reconstructed tracks.
const CDCMCTrackLookUp & m_CDCMCTrackLookUp
Reference to a CDCMCTrackLookUp instance, assigned in the constructor of this functor.
bool isTrackClone(const CDCTrack &cdcTrack)
getter for information from m_cdcTrackIsCloneMap