8#include <tracking/trackFindingCDC/filters/segmentRelation/MCSegmentRelationFilter.h>
10#include <tracking/trackFindingCDC/mclookup/CDCMCSegment2DLookUp.h>
12#include <tracking/trackingUtilities/eventdata/segments/CDCSegment2D.h>
14#include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.icc.h>
16#include <tracking/trackingUtilities/numerics/EForwardBackward.h>
18#include <framework/core/ModuleParamList.templateDetails.h>
23using namespace TrackFindingCDC;
24using namespace TrackingUtilities;
34 const std::string& prefix)
37 moduleParamList->
addParameter(prefixed(prefix,
"requireRLPure"),
39 "Switch to require the segment combination contain mostly correct rl information",
50 EForwardBackward pairFBInfo =
55 if (pairFBInfo == EForwardBackward::c_Invalid)
return NAN;
57 if (pairFBInfo == EForwardBackward::c_Forward or
62 if (fromNPassedSuperLayers == c_InvalidIndex)
return NAN;
65 if (toNPassedSuperLayers == c_InvalidIndex)
return NAN;
68 if (fromNPassedSuperLayers != toNPassedSuperLayers)
return NAN;
70 return fromSegment.size() + toSegment.size();
The Module parameter list class.
TrackingUtilities::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...
TrackingUtilities::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...
TrackingUtilities::Index getFirstNPassedSuperLayers(const ACDCHitCollection *ptrHits) const
Getter for number of passed superlayer till the first hit the collection of hits which has the Monte ...
TrackingUtilities::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...
Specialisation of the lookup for the truth values of two dimensional segments.
static const CDCMCSegment2DLookUp & getInstance()
Getter for the singletone instance.
bool m_param_requireRLPure
Parameter : Switch to require the segment combination contain mostly correct rl information.
MCSymmetric< BaseSegmentRelationFilter > Super
Type of the super class.
TrackingUtilities::Weight operator()(const TrackingUtilities::CDCSegment2D &fromSegment, const TrackingUtilities::CDCSegment2D &toSegment) final
Checks if a segment relation is a good combination.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
MCSegmentRelationFilter(bool allowReverse=true)
Constructor.
Mixin for filters that use Monte Carlo information.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
bool getAllowReverse() const
A reconstructed sequence of two dimensional hits in one super layer.
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.