ATLAS Offline Software
CollinearityConstraint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrkVertexKinematicFitterUtils_CollinearityConstraint_h
6 #define TrkVertexKinematicFitterUtils_CollinearityConstraint_h
7 
8 // This object defines a Collinearity constraint to be used with the constrained kinematic vertex fitter
9 // It minimizes the angles between the tracks (phi in the x-y plane and theta in the z-plane) using scalar products
10 
12 
13 namespace Trk {
15 {
16 public:
17 
18 
20  virtual ~CollinearityConstraint() = default;
21 
23  std::vector<Amg::VectorX>& cart_coordList,
24  std::vector<int>& charges,
25  Amg::Vector3D refPoint,
26  double b_fieldTesla) const override final;
27 
29  std::vector<Amg::VectorX>& cart_coordList,
30  std::vector<int>& charges,
31  Amg::Vector3D refPoint,
32  double b_fieldTesla) const override final;
33 
34  virtual int numberOfEquations() const override final { return s_eqno; }
35 
36 private:
37  static constexpr int s_eqno = 2; // number of constraint-equations used
38 };
39 }
40 
41 #endif //TrkVertexKinematicFitterUtils_CollinearityConstraint_h
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition: EventPrimitives.h:30
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Trk::CollinearityConstraint::numberOfEquations
virtual int numberOfEquations() const override final
Definition: CollinearityConstraint.h:34
Trk::IKinematicConstraint
Definition: IKinematicConstraint.h:31
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Trk::CollinearityConstraint::vectorOfValues
virtual Amg::VectorX vectorOfValues(std::vector< Amg::VectorX > &cart_coordList, std::vector< int > &charges, Amg::Vector3D refPoint, double b_fieldTesla) const override final
Definition: CollinearityConstraint.cxx:13
Trk::CollinearityConstraint::~CollinearityConstraint
virtual ~CollinearityConstraint()=default
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::CollinearityConstraint::CollinearityConstraint
CollinearityConstraint()=default
Trk::CollinearityConstraint::matrixOfDerivatives
virtual Amg::MatrixX matrixOfDerivatives(std::vector< Amg::VectorX > &cart_coordList, std::vector< int > &charges, Amg::Vector3D refPoint, double b_fieldTesla) const override final
Definition: CollinearityConstraint.cxx:60
IKinematicConstraint.h
Trk::CollinearityConstraint
Definition: CollinearityConstraint.h:15
Trk::CollinearityConstraint::s_eqno
static constexpr int s_eqno
Definition: CollinearityConstraint.h:37