Belle II Software  release-08-01-10
CompareCDCTracks Struct Reference

Functor which which decides which of two tracks to declare as best match. More...

#include <CDCMCCloneLookUp.h>

Collaboration diagram for CompareCDCTracks:

Public Member Functions

 operator FunctorTag ()
 marker function for the isFunctor test
 
 CompareCDCTracks (const CDCMCTrackLookUp &cdcMCTrackLookUp, const CDCMCHitLookUp &cdcMCHitLookUp)
 Constructor of the CDC track comparer to get the better match, taking references to MC lookup singletons.
 
bool operator() (const CDCTrack *ptrCDCTrack1, const CDCTrack *ptrCDCTrack2) const
 Compare both CDC tracks to get the better matched one. More...
 

Private Member Functions

unsigned int getNumberOfCorrectHits (const CDCTrack *ptrCDCTrack) const
 Get number of hits in track that are correctly matched.
 

Private Attributes

const CDCMCTrackLookUpm_CDCMCTrackLookUp
 Reference to a CDCMCTrackLookUp instance, assigned in the constructor of this functor.
 
const CDCMCHitLookUpm_CDCMCHitLookUp
 Reference to a CDCMCHitLookUp instance, assigned in the constructor of this functor.
 

Detailed Description

Functor which which decides which of two tracks to declare as best match.

Definition at line 76 of file CDCMCCloneLookUp.h.

Member Function Documentation

◆ operator()()

bool operator() ( const CDCTrack ptrCDCTrack1,
const CDCTrack ptrCDCTrack2 
) const

Compare both CDC tracks to get the better matched one.

Functor definition of comparison function for findBestMatchedTrack.

Returns true if track1 has a lower loop number at the first hit than track1. If both tracks have the same loop number, return true if track1 has larger number of matched hits.

Definition at line 55 of file CDCMCCloneLookUp.cc.


The documentation for this struct was generated from the following files: