Belle II Software
release-08-01-10
|
Interface class to the Monte Carlo information for collections of hits. More...
#include <CDCMCHitCollectionLookUp.h>
Public Member Functions | |
void | clear () |
Clears all Monte Carlo information left from the last event. | |
CDCMCHitCollectionLookUp () | |
Dummy constructor to silence the intel-compiler warnings (NOTE: using "=default" will make the intel compilation fail) | |
MCTrackIdPurityPair | getHighestPurity (const ACDCHitCollection &hits) const |
Get the track id with the highest corresponding purity. | |
ITrackType | getMCTrackId (const ACDCHitCollection *ptrHits) const |
Getter for the Monte Carlo track id matched to this collection of hits. More... | |
int | getCorrectRLVote (const ACDCHitCollection *ptrHits) const |
Getter for the difference of correct versus incorrect right left passage informations. | |
double | getRLPurity (const ACDCHitCollection *ptrHits) const |
Getter for the right left passge purity which respects the forward backward reconstruction. | |
const MCParticle * | getMCParticle (const ACDCHitCollection *ptrHits) const |
Getter for the mc particle matched to this collection of hits. | |
const CDCHit * | getFirstHit (const ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *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 ACDCHitCollection *ptrHits) const |
Returns the orientation of the collection of hits relative to its matched track. More... | |
EForwardBackward | areAlignedInMCTrack (const ACDCHitCollection *ptrFromHits, const ACDCHitCollection *ptrToHits) const |
Returns if the second collection of hits follows the first collection of hits in their common Monte Carlo track. More... | |
EForwardBackward | areAlignedInMCTrackWithRLCheck (const ACDCHitCollection *ptrFromHits, const ACDCHitCollection *ptrToHits) const |
Returns if the second collection of hits follows the first collection of hits in their common Monte Carlo track. More... | |
CDCTrajectory3D | getTrajectory3D (const ACDCHitCollection *ptrHits) const |
Returns the trajectory of the collection of hits. | |
Private Member Functions | |
std::map< ITrackType, size_t > | getHitCountByMCTrackId (const ACDCHitCollection &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 = 0.5 |
Threshold for the purity that must be exceeded to be considered as a match. | |
float | m_minimalRLPurity = 0.5 |
Threshold for the correct fraction of right left passage informations to be considered a match. | |
Interface class to the Monte Carlo information for collections of hits.
Definition at line 70 of file CDCMCHitCollectionLookUp.h.
EForwardBackward areAlignedInMCTrack | ( | const ACDCHitCollection * | ptrFromHits, |
const ACDCHitCollection * | ptrToHits | ||
) | const |
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 202 of file CDCMCHitCollectionLookUp.icc.h.
EForwardBackward areAlignedInMCTrackWithRLCheck | ( | const ACDCHitCollection * | ptrFromHits, |
const ACDCHitCollection * | ptrToHits | ||
) | const |
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 informations agrees with the forward backward information
Definition at line 319 of file CDCMCHitCollectionLookUp.icc.h.
ITrackType getMCTrackId | ( | const ACDCHitCollection * | ptrHits | ) | const |
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 93 of file CDCMCHitCollectionLookUp.icc.h.
EForwardBackward isForwardOrBackwardToMCTrack | ( | const ACDCHitCollection * | ptrHits | ) | const |
Returns the orientation of the collection of hits relative to its matched track.
Definition at line 184 of file CDCMCHitCollectionLookUp.icc.h.