8#include <tracking/modules/cosmicsTrackMerger/PhiRecoTrackRelationFilter.h>
10#include <tracking/trackFindingCDC/eventdata/trajectories/CDCTrajectory2D.h>
11#include <tracking/trackFindingCDC/geometry/Vector3D.h>
13#include <tracking/trackFindingCDC/numerics/Angle.h>
14#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
16#include <framework/core/ModuleParamList.templateDetails.h>
19using namespace TrackFindingCDC;
22 const std::string& prefix)
24 moduleParamList->
addParameter(prefixed(prefix,
"maximalPhiDistance"),
26 "Maximal Phi distance below to tracks should be merged.",
33 if (fromTrack->getPositionSeed().Y() < toTrack->getPositionSeed().Y()) {
38 Vector3D(fromTrack->getMomentumSeed()).xy(), fromTrack->getChargeSeed());
40 Vector3D(toTrack->getMomentumSeed()).xy(), toTrack->getChargeSeed());
The Module parameter list class.
double m_param_maximalPhiDistance
Parameter : The maximal deviation in phi between the trajectories of the track.
TrackFindingCDC::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.
Vector2D getFlightDirection2D(const Vector2D &point) const
Get the unit direction of flight at the given point, where arcLength2D = 0.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
double phi() const
Gives the azimuth angle being the angle to the x axes ( range -M_PI to M_PI )
Mixin class to attach an automaton cell to an object or pointer.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
HepGeom::Vector3D< double > Vector3D
3D Vector
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].