 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/trackRelation/MCTrackRelationFilter.h>
12 #include <tracking/trackFindingCDC/mclookup/CDCMCTrackLookUp.h>
14 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
16 #include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.icc.h>
19 using namespace TrackFindingCDC;
35 if (pairFBInfo == EForwardBackward::c_Invalid)
return NAN;
37 if (pairFBInfo == EForwardBackward::c_Forward or
41 if (fromNPassedSuperLayers == c_InvalidIndex)
return NAN;
44 if (toNPassedSuperLayers == c_InvalidIndex)
return NAN;
46 if (fromNPassedSuperLayers == toNPassedSuperLayers)
return NAN;
51 if (fromNLoops != toNLoops)
return NAN;
53 return fromTrack.size() + toTrack.size();
bool getAllowReverse() const
Getter for the allow reverse parameter.
Class representing a sequence of three dimensional reconstructed 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 ...
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
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...
static const CDCMCTrackLookUp & getInstance()
Getter for the singletone instance.
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...
Abstract base class for different kinds of events.
Weight operator()(const CDCTrack &fromTrack, const CDCTrack &toTrack) final
Checks if a track relation is a good combination.
MCTrackRelationFilter(bool allowReverse=false)
Constructor also setting the switch , if the reversed version of a track relation (in comparision to ...
Specialisation of the lookup for the truth values of reconstructed tracks.
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...