8#include <tracking/trackFindingCDC/filters/segmentRelation/MCSegmentRelationFilter.h>
10#include <tracking/trackFindingCDC/mclookup/CDCMCSegment2DLookUp.h>
12#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
14#include <tracking/trackFindingCDC/filters/base/MCSymmetricFilter.icc.h>
16#include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
18#include <framework/core/ModuleParamList.templateDetails.h>
23using namespace TrackFindingCDC;
33 const std::string& prefix)
36 moduleParamList->
addParameter(prefixed(prefix,
"requireRLPure"),
38 "Switch to require the segment combination contain mostly correct rl information",
49 EForwardBackward pairFBInfo =
54 if (pairFBInfo == EForwardBackward::c_Invalid)
return NAN;
56 if (pairFBInfo == EForwardBackward::c_Forward or
61 if (fromNPassedSuperLayers == c_InvalidIndex)
return NAN;
64 if (toNPassedSuperLayers == c_InvalidIndex)
return NAN;
67 if (fromNPassedSuperLayers != toNPassedSuperLayers)
return NAN;
69 return fromSegment.size() + toSegment.size();
The Module parameter list class.
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...
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...
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...
Index getFirstNPassedSuperLayers(const ACDCHitCollection *ptrHits) const
Getter for number of passed superlayer till the first hit the collection of hits which has the Monte ...
Specialisation of the lookup for the truth values of two dimensional segments.
static const CDCMCSegment2DLookUp & getInstance()
Getter for the singletone instance.
A reconstructed sequence of two dimensional hits in one super layer.
bool m_param_requireRLPure
Parameter : Switch to require the segment combination contain mostly correct rl information.
MCSymmetric< BaseSegmentRelationFilter > Super
Type of the super class.
Weight operator()(const CDCSegment2D &fromSegment, const 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
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.