 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/mclookup/CDCMCHitLookUp.h>
14 #include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
15 #include <tracking/trackFindingCDC/numerics/Index.h>
27 namespace TrackFindingCDC {
28 class CDCTrajectory3D;
31 struct MCTrackIdPurityPair {
71 template <
typename ACDCHitCollection>
94 ITrackType
getMCTrackId(
const ACDCHitCollection* ptrHits)
const;
100 double getRLPurity(
const ACDCHitCollection* ptrHits)
const;
171 const ACDCHitCollection* ptrToHits)
const;
179 const ACDCHitCollection* ptrToHits)
const;
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 ...
float m_minimalMatchPurity
Threshold for the purity that must be exceeded to be considered as a match.
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 C...
Index getFirstNPassedSuperLayers(const ACDCHitCollection *ptrHits) const
Getter for number of passed superlayer till the first hit the collection of hits which has the Monte ...
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...
Structure representing a matched Monte Carlo track id with the corresponding purity.
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
ITrackType getMCTrackId() const
Getter for the Monte Carlo track Id.
Index getNPassedSuperLayers(const CDCHit *ptrHit) const
Returns the number of superlayers the track traversed until this hit.
float m_purity
Purity wrt mc track.
CDCMCHitCollectionLookUp()
Dummy constructor to silence the intel-compiler warnings (NOTE: using "=default" will make the intel ...
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
ITrackType getMCTrackId(const ACDCHitCollection *ptrHits) const
Getter for 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 ...
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 ...
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 i...
float m_minimalRLPurity
Threshold for the correct fraction of right left passage informations to be considered a match.
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 Mo...
void clear()
Clears all Monte Carlo information left from the last event.
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 C...
Interface class to the Monte Carlo information for collections of hits.
int getCorrectRLVote(const ACDCHitCollection *ptrHits) const
Getter for the difference of correct versus incorrect right left passage informations.
Abstract base class for different kinds of events.
Index getNLoops(const CDCHit *ptrHit) const
Returns the number of loops the track traversed until this hit.
EForwardBackward isForwardOrBackwardToMCTrack(const ACDCHitCollection *ptrHits) const
Returns the orientation of the collection of hits relative to its matched track.
def purity(truths, predictions)
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...
const MCParticle * getMCParticle(const ACDCHitCollection *ptrHits) const
Getter for the mc particle 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 M...
ITrackType m_mcTrackId
Id of the mc track.
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.
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.
int m_correctRLVote
Number of correct rl information in the track.
Index getInTrackId(const CDCHit *ptrHit) const
Returns the position of the wire hit in the track along the travel direction.
MCTrackIdPurityPair(ITrackType mcTrackId, float purity, int correctRLVote)
Constructor taking the Monte Carlo track id and the purity to be stored.
MCTrackIdPurityPair getHighestPurity(const ACDCHitCollection &hits) const
Get the track id with the highest corresponding purity.
float getPurity() const
Getter for the purity.
A Class to store the Monte Carlo particle information.
double getRLPurity(const ACDCHitCollection *ptrHits) const
Getter for the right left passge purity which respects the forward backward reconstruction.
int getCorrectRLVote() const
Getter for the rl vote.
Particle full three dimensional trajectory.
CDCTrajectory3D getTrajectory3D(const ACDCHitCollection *ptrHits) const
Returns the trajectory of the 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 C...
Index getInTrackSegmentId(const CDCHit *ptrHit) const
Returns the id of the segment in the track.