|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef TRKEVENTUTILS_COMPARISONFUNCTION_H
10 #define TRKEVENTUTILS_COMPARISONFUNCTION_H
84 double lmag2 =
m_line.mag();
86 double dp1_mag2 = distPosOne.mag();
88 double pl1_2 =
m_line.dot(distPosOne);
90 double distOne = (lmag2 * dp1_mag2 - pl1_2) / dp1_mag2;
93 double dp2_mag2 = distPosTwo.mag();
95 double pl2_2 =
m_line.dot(distPosTwo);
97 double distTwo = (lmag2 * dp2_mag2 - pl2_2) / dp2_mag2;
99 return (fabs(distOne) < fabs(distTwo));
103 const std::unique_ptr<T>&
two)
const {
~ComparisonFunction()=default
ComparisonFunction()=default
Default.
ComparisonFunction & operator=(ComparisonFunction &&cpf)=default
bool operator()(const T *one, const T *two) const
ComparisonFunction(const ComparisonFunction &cpf)=default
ComparisonFunction(const Amg::Vector3D &sp)
Constructor for pointlike Search.
ComparisonFunction(double cradius)
Search wrt to distance wrt to radius.
ComparisonFunction(const Amg::Vector3D &sp, const Amg::Vector3D &dir)
Constructor with point and line, search with direction.
ComparisonFunction & operator=(const ComparisonFunction &cpf)=default
Ensure that the ATLAS eigen extensions are properly loaded.
Eigen::Matrix< double, 3, 1 > Vector3D
bool operator()(const std::unique_ptr< T > &one, const std::unique_ptr< T > &two) const
ComparisonFunction(ComparisonFunction &&cpf)=default