ATLAS Offline Software
RecVertexCnv_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 #include "VxVertex/RecVertex.h"
8 
9 void RecVertexCnv_p1::persToTrans(const Trk::RecVertex_p1 * persObj, Trk::RecVertex * transObj, MsgStream &log)
10 {
11  fillTransFromPStore( &m_vertexConverter, persObj->vtx, transObj, log);
12 
13  // fillTransFromPStore( &m_errorMatrixConverter, persObj->m_positionError, &transObj->m_positionCovariance, log );
16  EigenHelpers::vectorToEigenMatrix(dummy.values, transObj->m_positionCovariance, "RecVertexCnv_p1");
17 
19 
20 // std::cout<<"ILIJA read RecVertex p1 --- > "<<(*transObj)<<std::endl;
21 }
22 
23 void RecVertexCnv_p1::transToPers(const Trk::RecVertex * transObj, Trk::RecVertex_p1 * persObj, MsgStream &log)
24 {
25  persObj->vtx = baseToPersistent(&m_vertexConverter, transObj, log );
26  // persObj->m_positionError = toPersistent( &m_errorMatrixConverter, &(transObj->m_positionCovariance), log );
27 
28  Trk::ErrorMatrix pMat;
29  EigenHelpers::eigenMatrixToVector(pMat.values, transObj->m_positionCovariance, "RecVertexCnv_p1");
31 
32 
33  persObj->m_fitQuality = toPersistent( &m_fitQualityConverter, &(transObj->m_fitQuality), log );
34 
35 // std::cout<<"ILIJA write RecVertex p1 --- > "<<(*transObj)<<std::endl;
36 }
RecVertex.h
Trk::RecVertex::m_fitQuality
Trk::FitQuality m_fitQuality
Definition: RecVertex.h:115
RecVertexCnv_p1::m_fitQualityConverter
ITPConverterFor< Trk::FitQuality > * m_fitQualityConverter
Definition: RecVertexCnv_p1.h:46
Trk::RecVertex_p1::m_positionError
TPObjRef m_positionError
Definition: RecVertex_p1.h:34
RecVertexCnv_p1::persToTrans
void persToTrans(const Trk::RecVertex_p1 *persObj, Trk::RecVertex *transObj, MsgStream &log)
Conversion methods.
Definition: RecVertexCnv_p1.cxx:9
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
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
RecVertexCnv_p1::m_vertexConverter
ITPConverterFor< Trk::Vertex > * m_vertexConverter
Definition: RecVertexCnv_p1.h:45
Trk::RecVertex_p1::vtx
TPObjRef vtx
Definition: RecVertex_p1.h:31
Trk::ErrorMatrix
Definition: ErrorMatrixCnv_p1.h:25
RecVertexCnv_p1::transToPers
void transToPers(const Trk::RecVertex *transObj, Trk::RecVertex_p1 *persObj, MsgStream &log)
Definition: RecVertexCnv_p1.cxx:23
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
RecVertexCnv_p1.h
EigenHelpers.h
python.xAODType.dummy
dummy
Definition: xAODType.py:4
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
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
Trk::RecVertex_p1
Definition: RecVertex_p1.h:23
Trk::RecVertex_p1::m_fitQuality
TPObjRef m_fitQuality
Definition: RecVertex_p1.h:37
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RecVertexCnv_p1::m_errorMatrixConverter
ITPConverterFor< Trk::ErrorMatrix > * m_errorMatrixConverter
Definition: RecVertexCnv_p1.h:44