8#include <tracking/ckf/pxd/filters/relations/SensorPXDPairFilter.h>
9#include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
11#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
12#include <framework/core/ModuleParamList.templateDetails.h>
14#include <vxd/geometry/GeoCache.h>
17using namespace TrackFindingCDC;
19TrackFindingCDC::Weight
25 const CKFToPXDState::stateCache& fromStateCache = fromState.
getStateCache();
26 const CKFToPXDState::stateCache& toStateCache = toState.
getStateCache();
28 B2ASSERT(
"You have filled the wrong states into this!", toStateCache.isHitState);
30 if (not fromStateCache.isHitState) {
33 float phiDiff = fromStateCache.phi - toStateCache.sensorCenterPhi;
34 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
35 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;
47 if (fromStateCache.geoLayer == toStateCache.geoLayer and
48 fromStateCache.sensorID.getSensorNumber() == toStateCache.sensorID.getSensorNumber()) {
55 float phiDiff = fromStateCache.sensorCenterPhi - toStateCache.sensorCenterPhi;
56 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
57 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;
69 "Cut in phi for the difference between RecoTrack (seed) mSoP.getPos().Phi() and current hit-based state using its sensor centre phi.",
72 "Cut in phi between two hit-based states comparing the sensor centre phi of both states.",
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.
double m_param_PhiHitHitCut
Filter potential relations in phi between hit states We compare hitA.sensorCenterPhi with hitB....
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 Here we compare RecoTrack -> mSo...
TrackFindingCDC::Weight operator()(const std::pair< const CKFToPXDState *, const CKFToPXDState * > &relation) override
Return the weight based on 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.