ATLAS Offline Software
Loading...
Searching...
No Matches
ExtendedVxCandidateCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5//-----------------------------------------------------------------------------
6//
7// file: ExtendedVxCandidate_p1.cxx
8//
9//-----------------------------------------------------------------------------
10
14
15
17{
19 // transObj->m_fullCovariance = createTransFromPStore( &m_errorMatrixConverter, persObj->m_fullCovariance, log );
20
21 Trk::ErrorMatrix dummy;
23 Amg::MatrixX* temp = new Amg::MatrixX;
24 EigenHelpers::vectorToEigenMatrix(dummy.values, *temp, "ExtendedVxCandidateCnv_p1");
25 transObj->m_fullCovariance = temp;
26}
27
29{
30 persObj->m_vxCandidate = baseToPersistent(&m_vxCandidateConverter, transObj, log );
31 // persObj->m_fullCovariance = toPersistent( &m_errorMatrixConverter, transObj->m_fullCovariance, log );
33 EigenHelpers::eigenMatrixToVector(pMat.values, *transObj->m_fullCovariance, "ExtendedVxCandidateCnv_p1");
34 persObj->m_fullCovariance = toPersistent( &m_errorMatrixConverter, &pMat, log );
35
36}
void persToTrans(const Trk::ExtendedVxCandidate_p1 *persObj, Trk::ExtendedVxCandidate *transObj, MsgStream &log)
Conversion methods.
void transToPers(const Trk::ExtendedVxCandidate *transObj, Trk::ExtendedVxCandidate_p1 *persObj, MsgStream &log)
ITPConverterFor< Trk::ErrorMatrix > * m_errorMatrixConverter
ITPConverterFor< Trk::VxCandidate > * m_vxCandidateConverter
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
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
std::vector< float > values
Extends the standard Trk::VxCandidate to store the full covariance matrix of a fitted vertex all part...
const Amg::MatrixX * m_fullCovariance
Full covariance matrix of the vertex and all corresponding tracks.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
static void eigenMatrixToVector(VECTOR &vec, COVARIANCE &cov, const char *)