Belle II Software development
|
Class providing information whether a PR CDC track is the best match or a clone. More...
#include <CDCMCCloneLookUp.h>
Public Member Functions | |
CDCMCCloneLookUp (CDCMCCloneLookUp &)=delete | |
Singleton: Delete copy constructor and assignment operator. | |
CDCMCCloneLookUp & | operator= (const CDCMCCloneLookUp &)=delete |
Operator =. | |
void | fill (std::vector< CDCTrack > &cdcTracks) |
fill with all cdcTracks in an event | |
void | clear () |
Clear eventwise lookup tables. | |
bool | isTrackClone (const CDCTrack &cdcTrack) |
getter for information from m_cdcTrackIsCloneMap | |
Static Public Member Functions | |
static CDCMCCloneLookUp & | getInstance () |
Getter for the singletone instance. | |
Private Member Functions | |
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. | |
CDCTrack * | findBestMatchedTrack (std::vector< CDCTrack * > matchedTrackPtrs) |
Helper function which takes a vector of pointers to CDCTracks which are matched to the same MC particle. | |
Private Attributes | |
std::map< const CDCTrack *, bool > | m_cdcTrackIsCloneMap |
Map of track pointers to isClone indicator from MCTruth-based assumption. | |
Class providing information whether a PR CDC track is the best match or a clone.
In contrast to all other MC lookup classes, it requires the information of all tracks in an event to decide which are clones. Therofore, it has to be filled once with a CDCTrack vector before being used.
The definition of which track is a better match and thus which to classify * as a clone is encoded in the separate functor CompareCDCTracks.
Definition at line 35 of file CDCMCCloneLookUp.h.
void clear | ( | ) |
Clear eventwise lookup tables.
Definition at line 85 of file CDCMCCloneLookUp.cc.
void fill | ( | std::vector< CDCTrack > & | cdcTracks | ) |
fill with all cdcTracks in an event
Fill LookUp Table which stores information, which tracks are clones from curlers.
per default, set all tracks to "not clone"
get lookup table of MC track IDs to vectors of CDC track pointers
Vector of track pointers which are mapped to this mcTrackID
Definition at line 91 of file CDCMCCloneLookUp.cc.
Helper function which takes a vector of pointers to CDCTracks which are matched to the same MC particle.
Returns track ptr which is assumed to be not a clone.
Definition at line 73 of file CDCMCCloneLookUp.cc.
|
static |
Getter for the singletone instance.
Definition at line 18 of file CDCMCCloneLookUp.cc.
|
private |
Helper function which returns a map of MCTrackIDs to vectors of CDTrack pointers.
Need that to find clone candidates: tracks with same MCTrackID
Definition at line 24 of file CDCMCCloneLookUp.cc.
bool isTrackClone | ( | const CDCTrack & | cdcTrack | ) |
getter for information from m_cdcTrackIsCloneMap
Definition at line 120 of file CDCMCCloneLookUp.cc.
|
private |
Map of track pointers to isClone indicator from MCTruth-based assumption.
Definition at line 72 of file CDCMCCloneLookUp.h.