26 return StatusCode::SUCCESS;
32 return StatusCode::SUCCESS;
48 Amg::Vector3D myTranslation=myAtaPlane->associatedSurface().transform().translation();
55 #ifdef Chi2TrackCompatibilityEstimator_DEBUG
56 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"Position is: " <<
vertex << std::endl;
57 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"Rotation is: " << myPlaneRotation << std::endl;
58 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"Norm of colX() is: " << myXdirPlane.mag() <<
" of colY() is: " << myYdirPlane.mag() << std::endl;
59 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"Translation is: " << myTranslation << std::endl;
64 #ifdef Chi2TrackCompatibilityEstimator_DEBUG
65 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"VertexMinusCenter: " << vertexMinusCenter << std::endl;
69 myVertexlocXlocY[0]=vertexMinusCenter.dot(myXdirPlane);
70 myVertexlocXlocY[1]=vertexMinusCenter.dot(myYdirPlane);
72 #ifdef Chi2TrackCompatibilityEstimator_DEBUG
73 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"Vertex local coordinates: " << myVertexlocXlocY << std::endl;
89 const AmgSymMatrix(5) * covar = (myAtaPlane->covariance());
91 myWeightXY = myWeightXY.
inverse().eval();
97 #ifdef Chi2TrackCompatibilityEstimator_DEBUG
98 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"Parameters local coordinates: " <<
" x: " <<myAtaPlane->parameters()[
Trk::locX] <<
99 " y: " << myAtaPlane->parameters()[
Trk::locY] << std::endl;
100 std::cout << std::setprecision(10) <<
"Chi2TrackCompatibilityEstimator: " <<
"VertexToTrack coordinates: " << myXY << std::endl;
103 ATH_MSG_DEBUG (
"The weight assigned to the track is " << myXY.dot(myWeightXY*myXY) );
109 return myXY.dot(myWeightXY*myXY);
117 if (myAtaPlane!=
nullptr && myAtaPlane->covariance()!=
nullptr) {
123 if (myNeutralAtaPlane!=
nullptr && myNeutralAtaPlane->covariance()!=
nullptr){
127 ATH_MSG_WARNING(
" No compatibility plane attached to the VxTrackAtVertex. Compatibility couldn't be found... 0 compatibility returned." );