ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleCnv_p3.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRACKPARTICLE_CNV_P3_REC_H
6#define TRACKPARTICLE_CNV_P3_REC_H
7
10
13
16
20
22#include <vector>
23
24class MsgStream;
25
27public T_AthenaPoolTPCnvBase<Rec::TrackParticle, Rec::TrackParticle_p3> {
28public:
30 virtual void persToTrans( const Rec :: TrackParticle_p3 *persObj, Rec :: TrackParticle *transObj, MsgStream &log );
31 virtual void transToPers( const Rec :: TrackParticle *transObj, Rec :: TrackParticle_p3 *persObj, MsgStream &log );
32
34 // Because we want to use a single convertor for all parameter types, we need to force the retrieval
35 // of a convertor for TrackParameters. Can't just instantiate the right one (I think) because it needs
36 // to be the exact convertor which belongs to the TL object, so that it has right place to store
37 // ObjRefs.
39 if (!m_parameterCnv) m_parameterCnv = dynamic_cast<TrackParametersCnv_p2*>(dummy); //FIXME - doesn't work for some reason...
40 // std::cout<<"TrackParticleCnv_p3::initPrivateConverters - have set m_parameterCnv to "<<m_parameterCnv<<std::endl;
41 }
42
43private:
44
45 // typedef T_AthenaPoolTPPolyVectorCnv< std::vector<const Trk::ParametersBase*>, std::vector<TPObjRef>, TrackParametersCnv_p2 > vecParametersBaseCnv_p2;
46
50
53};
54
55#endif
TopLevelTPCnvBase AthenaPoolTopLevelTPCnvBase
This file contains the class definition for the ElementLinkCnv_p3 class.
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
virtual TopLevelTPCnvBase * topConverter()
Base interface class for all TP converters - typeless.
ITPConverter * converterForType(const std::type_info &info) const
Find and return a TP converter for a given C++ type info.
New convertor which handles all track parameters in one go - i.e.
TrackSummaryCnv_p2 * m_trackSummaryCnv
ElementLinkCnv_p3< ElementLink< VxContainer > > m_elementLinkVxContainerConverter
ElementLinkCnv_p3< ElementLink< TrackCollection > > m_elementLinkTrackCollectionConverter
virtual void persToTrans(const Rec ::TrackParticle_p3 *persObj, Rec ::TrackParticle *transObj, MsgStream &log)
virtual void initPrivateConverters(AthenaPoolTopLevelTPCnvBase *)
TrackParametersCnv_p2 * m_parameterCnv
AthenaBarCodeCnv_p1 m_AthenaBarCodeCnv
virtual void transToPers(const Rec ::TrackParticle *transObj, Rec ::TrackParticle_p3 *persObj, MsgStream &log)
ParametersBase< TrackParametersDim, Charged > TrackParameters