8#include <tracking/modules/cosmicsTrackMerger/PhiRecoTrackRelationFilter.h>
10#include <tracking/trackingUtilities/eventdata/trajectories/CDCTrajectory2D.h>
12#include <tracking/trackingUtilities/numerics/Angle.h>
13#include <tracking/trackingUtilities/utilities/StringManipulation.h>
15#include <framework/core/ModuleParamList.templateDetails.h>
17#include <Math/Vector2D.h>
20using namespace TrackingUtilities;
23 const std::string& prefix)
25 moduleParamList->
addParameter(prefixed(prefix,
"maximalPhiDistance"),
27 "Maximal Phi distance below to tracks should be merged.",
34 if (fromTrack->getPositionSeed().Y() < toTrack->getPositionSeed().Y()) {
38 const CDCTrajectory2D fromTrajectory(VectorUtil::getXYVector(fromTrack->getPositionSeed()), 0,
39 VectorUtil::getXYVector(fromTrack->getMomentumSeed()), fromTrack->getChargeSeed());
40 const CDCTrajectory2D toTrajectory(VectorUtil::getXYVector(toTrack->getPositionSeed()), 0,
41 VectorUtil::getXYVector(toTrack->getMomentumSeed()), toTrack->getChargeSeed());
43 const ROOT::Math::XYVector origin;
The Module parameter list class.
double m_param_maximalPhiDistance
Parameter : The maximal deviation in phi between the trajectories of the track.
TrackingUtilities::Weight operator()(const CellularRecoTrack &fromTrack, const CellularRecoTrack &toTrack) final
Implementation of the phi calculation.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Export all parameters.
Particle trajectory as it is seen in xy projection represented as a circle.
ROOT::Math::XYVector getFlightDirection2D(const ROOT::Math::XYVector &point) const
Get the unit direction of flight at the given point, where arcLength2D = 0.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
TrackingUtilities::WithAutomatonCell< const RecoTrack * > CellularRecoTrack
Type of a reco track with automaton cell.
Abstract base class for different kinds of events.
static double normalised(const double angle)
Normalise an angle to lie in the range from [-pi, pi].