8 #include <tracking/ckf/pxd/filters/relations/LoosePXDPairFilter.h>
9 #include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
11 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
12 #include <framework/core/ModuleParamList.templateDetails.h>
15 using namespace TrackFindingCDC;
17 TrackFindingCDC::Weight
20 const CKFToPXDState::stateCache& currentStateCache = relation.first->getStateCache();
21 const CKFToPXDState::stateCache& nextStateCache = relation.second->getStateCache();
26 if (currentStateCache.geoLayer == nextStateCache.geoLayer) {
27 if (fabs(currentStateCache.theta - nextStateCache.theta) > m_param_ThetaOverlayRegionPrecut) {
32 float phiDiff = currentStateCache.phi - nextStateCache.phi;
33 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
34 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;
36 if (not currentStateCache.isHitState) {
37 if (fabs(phiDiff) > m_param_PhiSeedHitPrecut) {
40 }
else if (!(fabs(phiDiff) < m_param_PhiHitHitPrecut and
41 fabs(currentStateCache.theta - nextStateCache.theta) < m_param_ThetaHitHitPrecut)) {
50 moduleParamList->
addParameter(TrackFindingCDC::prefixed(prefix,
"thetaOverlayRegionCut"), m_param_ThetaOverlayRegionPrecut,
51 "Pre-cut in theta for the overlay region.", m_param_ThetaOverlayRegionPrecut);
52 moduleParamList->
addParameter(TrackFindingCDC::prefixed(prefix,
"phiSeedHitCut"), m_param_PhiSeedHitPrecut,
53 "Pre-cut in phi for relations between seed states and hit states.", m_param_PhiSeedHitPrecut);
54 moduleParamList->
addParameter(TrackFindingCDC::prefixed(prefix,
"phiHitHitCut"), m_param_PhiHitHitPrecut,
55 "Pre-cut in phi for relations between hit states.", m_param_PhiHitHitPrecut);
56 moduleParamList->
addParameter(TrackFindingCDC::prefixed(prefix,
"thetaHitHitCut"), m_param_ThetaHitHitPrecut,
57 "Pre-cut in theta for relations between hit states.", m_param_ThetaHitHitPrecut);
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters.
TrackFindingCDC::Weight operator()(const std::pair< const CKFToPXDState *, const CKFToPXDState * > &relation) override
Return the weight based on azimuthal-angle separation.
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.