21 const std::pair<IdentifierHash, IdentifierHash>&
elementIdList,
23 const std::pair<const Trk::PrepRawData*, const Trk::PrepRawData*>& clusList)
33 const std::pair<IdentifierHash, IdentifierHash>&
elementIdList,
35 const std::pair<const Trk::PrepRawData*, const Trk::PrepRawData*>&
41 assert((clusList.first != 0) && (clusList.second != 0));
42 assert(clusList.first->detectorElement());
43 std::optional<Amg::Vector2D> locpos{
44 clusList.first->detectorElement()->surface().globalToLocal(position)};
57 constexpr double deltaY = 0.0004;
58 constexpr double offdiag = 25. * deltaY;
59 constexpr double elem11 = 1600. * deltaY;
61 cov << deltaY, offdiag,
70 std::ostringstream os;
79 const std::string lf{
"\n"};
80 out <<
"SCT_SpacePoint contains: " << lf;
81 out <<
"Identifier Hashes ( " << int(this->
elementIdList().first) <<
" , ";
84 out <<
"Global Covariance Matrix " <<
Amg::toString(this->globCovariance(), 3)
88 out <<
"Cluster 1 :" << lf << (*this->
clusterList().first) << lf;
89 out <<
"Cluster 2 :" << lf << (*this->
clusterList().second) << std::endl;
virtual MsgStream & dump(MsgStream &out) const override final
Interface method for output, to be overloaded by child classes*.
SCT_SpacePoint()=default
Default constructor.
void setup(const std::pair< IdentifierHash, IdentifierHash > &elementIdList, const Amg::Vector3D &position, const std::pair< const Trk::PrepRawData *, const Trk::PrepRawData * > &clusList)
common method used in constructors.
void setupLocalCovarianceSCT()
method to set up the local Covariance Matrix.
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
LocalParameters m_localParams
Amg::MatrixX m_localCovariance
virtual const Amg::Vector3D & globalPosition() const override final
Interface method to get the global Position.
void setupGlobalFromLocalCovariance()
set up the global covariance matrix by rotating the local one
const std::pair< IdentifierHash, IdentifierHash > & elementIdList() const
return the pair of Ids of the element by reference
std::pair< IdentifierHash, IdentifierHash > m_elemIdList
const std::pair< const PrepRawData *, const PrepRawData * > & clusterList() const
return the pair of cluster pointers by reference
std::pair< const PrepRawData *, const PrepRawData * > m_clusList
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.