 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/segmentPair/MCSegmentPairFilter.h>
12 #include <tracking/trackFindingCDC/mclookup/CDCMCSegment2DLookUp.h>
14 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
15 #include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
17 #include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.icc.h>
19 #include <framework/core/ModuleParamList.templateDetails.h>
22 using namespace TrackFindingCDC;
32 const std::string& prefix)
35 moduleParamList->
addParameter(prefixed(prefix,
"requireRLPure"),
37 "Switch to require the segment combination contain mostly correct rl information",
41 moduleParamList->
addParameter(prefixed(prefix,
"minSegmentSize"),
43 "Minimum segment size to pass as monte carlo truth",
53 assert(ptrFromSegment);
72 if (pairFBInfo == EForwardBackward::c_Invalid)
return NAN;
74 if (pairFBInfo == EForwardBackward::c_Forward or
78 if (fromNPassedSuperLayers == c_InvalidIndex)
return NAN;
81 if (toNPassedSuperLayers == c_InvalidIndex)
return NAN;
83 if (abs(fromNPassedSuperLayers - toNPassedSuperLayers) > 1)
return NAN;
88 if (pairFBInfo == EForwardBackward::c_Backward) {
93 return pairFBInfo *
static_cast<Weight
>(fromSegment.size() + toSegment.size());
bool getAllowReverse() const
Getter for the allow reverse parameter.
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 ...
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
Specialisation of the lookup for the truth values of two dimensional segments.
bool isFitted() const
Checks if the trajectory has already been set to a valid value.
Weight operator()(const CDCSegmentPair &segmentPair) final
Checks if a axial stereo segment pair is a good combination.
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
static const CDCMCSegment2DLookUp & getInstance()
Getter for the singletone instance.
int m_param_minSegmentSize
Parameter : Minimum segment size to pass as monte carlo truth.
const CDCSegment2D * getToSegment() const
Getter for the to segment.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
bool m_param_requireRLPure
Parameter : Switch to require the segment combination contain mostly correct rl information.
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...
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
A reconstructed sequence of two dimensional hits in one super layer.
CDCTrajectory3D & getTrajectory3D() const
Getter for the three dimensional trajectory.
MCSegmentPairFilter(bool allowReverse=true)
Constructor.
void reverse()
Reverses the trajectory in place.
The Module parameter list class.
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
void setTrajectory3D(const CDCTrajectory3D &trajectory3D) const
Setter for the three dimensional trajectory.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
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...