Belle II Software development
|
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. | |
int | getCorrectRLVote (const ACDCHitCollection *ptrHits) const |
Getter for the difference of correct versus incorrect right left passage information. | |
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. | |
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. | |
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. | |
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 information to be considered a match. | |
Interface class to the Monte Carlo information for collections of hits.
Definition at line 70 of file CDCMCHitCollectionLookUp.h.
|
inline |
Dummy constructor to silence the intel-compiler warnings (NOTE: using "=default" will make the intel compilation fail)
Definition at line 77 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 information agrees with the forward backward information
Definition at line 319 of file CDCMCHitCollectionLookUp.icc.h.
void clear |
Clears all Monte Carlo information left from the last event.
Definition at line 31 of file CDCMCHitCollectionLookUp.icc.h.
int getCorrectRLVote | ( | const ACDCHitCollection * | ptrHits | ) | const |
Getter for the difference of correct versus incorrect right left passage information.
Definition at line 106 of file CDCMCHitCollectionLookUp.icc.h.
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.
Definition at line 148 of file CDCMCHitCollectionLookUp.icc.h.
|
inline |
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.
|
inline |
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.
|
inline |
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.
|
inline |
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.
MCTrackIdPurityPair getHighestPurity | ( | const ACDCHitCollection & | hits | ) | const |
Get the track id with the highest corresponding purity.
Definition at line 54 of file CDCMCHitCollectionLookUp.icc.h.
|
private |
Fill a map with the number of hits for each track id contained in the given hit range.
Definition at line 38 of file CDCMCHitCollectionLookUp.icc.h.
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.
Definition at line 166 of file CDCMCHitCollectionLookUp.icc.h.
|
inline |
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.
|
inline |
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.
|
inline |
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.
|
inline |
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.
const MCParticle * getMCParticle | ( | const ACDCHitCollection * | ptrHits | ) | const |
Getter for the mc particle matched to this collection of hits.
Definition at line 138 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.
double getRLPurity | ( | const ACDCHitCollection * | ptrHits | ) | const |
Getter for the right left passge purity which respects the forward backward reconstruction.
Definition at line 121 of file CDCMCHitCollectionLookUp.icc.h.
CDCTrajectory3D getTrajectory3D | ( | const ACDCHitCollection * | ptrHits | ) | const |
Returns the trajectory of the collection of hits.
Definition at line 351 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.
|
private |
Threshold for the purity that must be exceeded to be considered as a match.
Definition at line 184 of file CDCMCHitCollectionLookUp.h.
|
private |
Threshold for the correct fraction of right left passage information to be considered a match.
Definition at line 187 of file CDCMCHitCollectionLookUp.h.