ATLAS Offline Software
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 
23  Amg::MatrixX* temp = new Amg::MatrixX;
24  EigenHelpers::vectorToEigenMatrix(dummy.values, *temp, "ExtendedVxCandidateCnv_p1");
25  transObj->m_fullCovariance = temp;
26 }
27 
29 {
31  // persObj->m_fullCovariance = toPersistent( &m_errorMatrixConverter, transObj->m_fullCovariance, log );
32  Trk::ErrorMatrix pMat;
33  EigenHelpers::eigenMatrixToVector(pMat.values, *transObj->m_fullCovariance, "ExtendedVxCandidateCnv_p1");
35 
36 }
ExtendedVxCandidateCnv_p1.h
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Trk::ExtendedVxCandidate_p1::m_vxCandidate
TPObjRef m_vxCandidate
Definition: ExtendedVxCandidate_p1.h:29
ExtendedVxCandidateCnv_p1::m_errorMatrixConverter
ITPConverterFor< Trk::ErrorMatrix > * m_errorMatrixConverter
Definition: ExtendedVxCandidateCnv_p1.h:45
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
ExtendedVxCandidateCnv_p1::transToPers
void transToPers(const Trk::ExtendedVxCandidate *transObj, Trk::ExtendedVxCandidate_p1 *persObj, MsgStream &log)
Definition: ExtendedVxCandidateCnv_p1.cxx:28
Trk::ErrorMatrix
Definition: ErrorMatrixCnv_p1.h:25
EigenHelpers::vectorToEigenMatrix
static void vectorToEigenMatrix(VECTOR &vec, COVARIANCE &cov, const char *)
Helper fn to fill the covariance from the raw data (vec<float>)
Definition: EigenHelpers.h:22
EigenHelpers.h
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ExtendedVxCandidateCnv_p1::m_vxCandidateConverter
ITPConverterFor< Trk::VxCandidate > * m_vxCandidateConverter
Definition: ExtendedVxCandidateCnv_p1.h:44
EigenHelpers::eigenMatrixToVector
static void eigenMatrixToVector(VECTOR &vec, COVARIANCE &cov, const char *)
Helper fn to get raw data (vec<float>) from the covariance.
Definition: EigenHelpers.h:30
Trk::ExtendedVxCandidate_p1::m_fullCovariance
TPObjRef m_fullCovariance
Definition: ExtendedVxCandidate_p1.h:32
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Trk::ErrorMatrix::values
std::vector< float > values
Definition: ErrorMatrixCnv_p1.h:27
ExtendedVxCandidate.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Trk::ExtendedVxCandidate::m_fullCovariance
const Amg::MatrixX * m_fullCovariance
Full covariance matrix of the vertex and all corresponding tracks.
Definition: ExtendedVxCandidate.h:83
ExtendedVxCandidateCnv_p1::persToTrans
void persToTrans(const Trk::ExtendedVxCandidate_p1 *persObj, Trk::ExtendedVxCandidate *transObj, MsgStream &log)
Conversion methods.
Definition: ExtendedVxCandidateCnv_p1.cxx:16
Trk::ExtendedVxCandidate_p1
Definition: ExtendedVxCandidate_p1.h:23
Trk::ExtendedVxCandidate
Definition: ExtendedVxCandidate.h:33