Belle II Software development
|
Specialisation of the lookup for the truth values of reconstructed tracks. More...
#include <CDCMCTrackLookUp.h>
Public Member Functions | |
CDCMCTrackLookUp ()=default | |
Default constructor, needs to be public for initialization in CDCMCManager. | |
CDCMCTrackLookUp (CDCMCTrackLookUp &)=delete | |
Singleton: Delete copy constructor and assignment operator. | |
CDCMCTrackLookUp & | operator= (const CDCMCTrackLookUp &)=delete |
Operator =. | |
void | clear () |
Clears all Monte Carlo information left from the last event. | |
MCTrackIdPurityPair | getHighestPurity (const CDCTrack &hits) const |
Get the track id with the highest corresponding purity. | |
ITrackType | getMCTrackId (const CDCTrack *ptrHits) const |
Getter for the Monte Carlo track id matched to this collection of hits. | |
int | getCorrectRLVote (const CDCTrack *ptrHits) const |
Getter for the difference of correct versus incorrect right left passage information. | |
double | getRLPurity (const CDCTrack *ptrHits) const |
Getter for the right left passge purity which respects the forward backward reconstruction. | |
const MCParticle * | getMCParticle (const CDCTrack *ptrHits) const |
Getter for the mc particle matched to this collection of hits. | |
const CDCHit * | getFirstHit (const CDCTrack *ptrHits) const |
Getter for the first hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
const CDCHit * | getLastHit (const CDCTrack *ptrHits) const |
Getter for the last hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getFirstInTrackId (const CDCTrack *ptrHits) const |
Getter for in track id for the first hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getLastInTrackId (const CDCTrack *ptrHits) const |
Getter for in track id for the last hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getFirstInTrackSegmentId (const CDCTrack *ptrHits) const |
Getter for in track collection of hits id for the first hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getLastInTrackSegmentId (const CDCTrack *ptrHits) const |
Getter for in track collection of hits id for the last hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getFirstNPassedSuperLayers (const CDCTrack *ptrHits) const |
Getter for number of passed superlayer till the first hit the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getLastNPassedSuperLayers (const CDCTrack *ptrHits) const |
Getter for number of passed superlayer till the last hit the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getFirstNLoops (const CDCTrack *ptrHits) const |
Getter for number of loops till the first hit the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
Index | getLastNLoops (const CDCTrack *ptrHits) const |
Getter for number of loops till the last hit the collection of hits which has the Monte Carlo track id matched to this collection of hits. | |
EForwardBackward | isForwardOrBackwardToMCTrack (const CDCTrack *ptrHits) const |
Returns the orientation of the collection of hits relative to its matched track. | |
EForwardBackward | areAlignedInMCTrack (const CDCTrack *ptrFromHits, const CDCTrack *ptrToHits) const |
Returns if the second collection of hits follows the first collection of hits in their common Monte Carlo track. | |
EForwardBackward | areAlignedInMCTrackWithRLCheck (const CDCTrack *ptrFromHits, const CDCTrack *ptrToHits) const |
Returns if the second collection of hits follows the first collection of hits in their common Monte Carlo track. | |
CDCTrajectory3D | getTrajectory3D (const CDCTrack *ptrHits) const |
Returns the trajectory of the collection of hits. | |
Static Public Member Functions | |
static const CDCMCTrackLookUp & | getInstance () |
Getter for the singletone instance. | |
Private Member Functions | |
std::map< ITrackType, size_t > | getHitCountByMCTrackId (const CDCTrack &hits) const |
Fill a map with the number of hits for each track id contained in the given hit range. | |
Private Attributes | |
float | m_minimalMatchPurity |
Threshold for the purity that must be exceeded to be considered as a match. | |
float | m_minimalRLPurity |
Threshold for the correct fraction of right left passage information to be considered a match. | |
Specialisation of the lookup for the truth values of reconstructed tracks.
Definition at line 23 of file CDCMCTrackLookUp.h.
|
inherited |
Returns if the second collection of hits follows the first collection of hits in their common Monte Carlo track.
Check if the segments are in the same track
Definition at line 168 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Returns if the second collection of hits follows the first collection of hits in their common Monte Carlo track.
Also checks that the majority of the right left passage information agrees with the forward backward information
Definition at line 176 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Clears all Monte Carlo information left from the last event.
Definition at line 74 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Getter for the difference of correct versus incorrect right left passage information.
Definition at line 95 of file CDCMCHitCollectionLookUp.icc.h.
Getter for the first hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 105 of file CDCMCHitCollectionLookUp.icc.h.
|
inlineinherited |
Getter for in track id for the first hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 113 of file CDCMCHitCollectionLookUp.h.
|
inlineinherited |
Getter for in track collection of hits id for the first hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 123 of file CDCMCHitCollectionLookUp.h.
|
inlineinherited |
Getter for number of loops till the first hit the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 141 of file CDCMCHitCollectionLookUp.h.
|
inlineinherited |
Getter for number of passed superlayer till the first hit the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 133 of file CDCMCHitCollectionLookUp.h.
|
inherited |
Get the track id with the highest corresponding purity.
Definition at line 85 of file CDCMCHitCollectionLookUp.icc.h.
|
privateinherited |
Fill a map with the number of hits for each track id contained in the given hit range.
Definition at line 81 of file CDCMCHitCollectionLookUp.icc.h.
|
static |
Getter for the singletone instance.
Definition at line 21 of file CDCMCTrackLookUp.cc.
Getter for the last hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 108 of file CDCMCHitCollectionLookUp.icc.h.
|
inlineinherited |
Getter for in track id for the last hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 117 of file CDCMCHitCollectionLookUp.h.
|
inlineinherited |
Getter for in track collection of hits id for the last hit in the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 127 of file CDCMCHitCollectionLookUp.h.
|
inlineinherited |
Getter for number of loops till the last hit the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 145 of file CDCMCHitCollectionLookUp.h.
|
inlineinherited |
Getter for number of passed superlayer till the last hit the collection of hits which has the Monte Carlo track id matched to this collection of hits.
Definition at line 137 of file CDCMCHitCollectionLookUp.h.
|
inherited |
Getter for the mc particle matched to this collection of hits.
Definition at line 101 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Getter for the Monte Carlo track id matched to this collection of hits.
On first encounter of a collection of hits this evaluates the purities for the contained track ids. The match is valid if the highest purity exceeds the s_minimalMatchPurity threshold. In case the highest purity is to low to result will be INVALID_ITRACK. To result is stored in member map object for fast look up for repeated calls.
Definition at line 92 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Getter for the right left passge purity which respects the forward backward reconstruction.
Definition at line 98 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Returns the trajectory of the collection of hits.
Definition at line 180 of file CDCMCHitCollectionLookUp.icc.h.
|
inherited |
Returns the orientation of the collection of hits relative to its matched track.
Definition at line 155 of file CDCMCHitCollectionLookUp.icc.h.
|
privateinherited |
Threshold for the purity that must be exceeded to be considered as a match.
Definition at line 184 of file CDCMCHitCollectionLookUp.h.
|
privateinherited |
Threshold for the correct fraction of right left passage information to be considered a match.
Definition at line 187 of file CDCMCHitCollectionLookUp.h.