7#include "AthLinks/ElementLink.h"
8#include "Identifier/Identifier.h"
24 EigenHelpers::vectorToEigenMatrix(dummy.values, localCovariance,
"SCT_ClusterOnTrackCnv_p2");
27 const Identifier::value_type
upper = 0XFFFFFFFF00000000LL;
28 const Identifier::value_type lower = 0X00000000FFFFFFFFLL;
29 const Identifier::value_type testUpper = persObj->
m_id &
upper;
30 const Identifier::value_type testLower = persObj->
m_id & lower;
32 if ( testUpper == 0 && testLower > 0) {
50 log << MSG::WARNING<<
"Unable to reset DetEl for this RIO_OnTrack, "
51 <<
"probably because of a problem with the Identifier/IdentifierHash : ("
57 if (transObj==
nullptr or persObj==
nullptr)
return;
68 using SCTContainer = InDet::SCT_ClusterContainer;
77 "Bkg_ITkStripClusters"};
79 struct ContainerCandidate {
81 const char* overlayOutputName;
83 static const ContainerCandidate candidates[] = {
84 {sctClusters,
"Bkg_SCT_Clusters"},
85 {itkStripClusters,
"Bkg_ITkStripClusters"},
86 {bkgSctClusters,
"Bkg_SCT_Clusters"},
87 {bkgItkStripClusters,
"Bkg_ITkStripClusters"},
96 for (
const ContainerCandidate& candidate : candidates) {
100 transObj, candidate.key, hashAndIndex);
102 if (!found)
continue;
105 doOverlay ? candidate.overlayOutputName : candidate.key.key();
ElementLink< InDet::SCT_ClusterContainer > ElementLinkToIDCSCT_ClusterContainer
size_t index_type
Type of the index used on the container.
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
value_type get_compact() const
Get the compact id.
ElementLinkInt_p1 m_prdLink
IdentifierHash::value_type m_idDE
float m_positionAlongStrip
Specific class to represent the SCT measurements.
double positionAlongStrip() const
virtual const InDetDD::SiDetectorElement * detectorElement() const override final
returns the detector element, assoicated with the PRD of this class
virtual IdentifierHash idDE() const override
returns the DE hashID*
bool isBroadCluster() const
void persToTrans(const InDet::SCT_ClusterOnTrack_p2 *persObj, InDet::SCT_ClusterOnTrack *transObj, MsgStream &log)
ErrorMatrixCnv_p1 * m_errorMxCnv
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
ElementLinkCnv_p1< ElementLinkToIDCSCT_ClusterContainer > m_elCnv
void transToPers(const InDet::SCT_ClusterOnTrack *transObj, InDet::SCT_ClusterOnTrack_p2 *persObj, MsgStream &log)
LocalParametersCnv_p1 * m_localParCnv
ReadHandleKey that initializes during construction.
Property holding a SG store/key/clid from which a ReadHandle is made.
std::vector< float > values
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
Identifier identify() const
return the identifier -extends MeasurementBase
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
static void eigenMatrixToVector(VECTOR &vec, COVARIANCE &cov, const char *)