8#include <tracking/ckf/pxd/filters/relations/AngularDistancePXDPairFilter.h>
9#include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
11#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
12#include <framework/core/ModuleParamList.templateDetails.h>
15using namespace TrackFindingCDC;
17TrackFindingCDC::Weight
23 const CKFToPXDState::stateCache& fromStateCache = fromState.
getStateCache();
24 const CKFToPXDState::stateCache& toStateCache = toState.
getStateCache();
26 B2ASSERT(
"You have filled the wrong states into this!", toStateCache.isHitState);
28 float phiDiff = fromStateCache.phi - toStateCache.phi;
29 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
30 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;
32 if (not fromStateCache.isHitState) {
42 if (fromStateCache.geoLayer == toStateCache.geoLayer and
43 fromStateCache.sensorID.getSensorNumber() == toStateCache.sensorID.getSensorNumber()) {
double m_param_PhiHitHitCut
Filter potential relations in phi between hit states.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters.
double m_param_PhiRecoTrackToHitCut
Filter potential relations in phi between seed states and hit states.
TrackFindingCDC::Weight operator()(const std::pair< const CKFToPXDState *, const CKFToPXDState * > &relation) override
Return the weight based on azimuthal-angle separation.
Specialized CKF State for extrapolating into the PXD.
const struct stateCache & getStateCache() const
Get the cached data of this state.
The Module parameter list class.
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.