ATLAS Offline Software
TrackParticleContainerCnv_tlp2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
9 {
10  // Add all converters defined in this top level converter.
11  // HEY YOU --- YES YOU --- READ THIS!!!!!!!
12  // NEVER change the order of the addTPConverter calls!
13  // NEVER delete an addTPConverter call!
14  // NEVER add an addTPConverter call in the middle --- only at the end!
15 
17 
29 
41 
47 
54 
58 
61 
63 
65 
66  // HEY YOU --- YES YOU --- READ THE COMMENT AT THE START OF THIS FUNCTION!!!
67 }
68 
70 {
73 
77 
82 
87 
91 
96 
101 
108 
109 
110  m_surfacesCnv. setPStorage( &storage->m_surfaces );
118 
122 
123 }
124 
125 
128  // FIXME: TPConverter uses the same non-const member m_pStorage
129  // for both reading and writing, but we want it to be const
130  // in the former case.
132  const_cast<Rec::TrackParticleContainer_tlp2*> (pers);
133  setPStorage (pers_nc);
134  m_mainConverter.pstoreToTrans (0, trans, msg);
135 }
136 
139  this->setTLPersObject( pers );
140  m_mainConverter.virt_toPersistent(trans, msg);
141  this->clearTLPersObject();
142 }
143 
144 
146 {
149 }
150 
TrackParticleContainerCnv_tlp2::m_measuredNeutralAtaPlanesCnv
MeasuredNeutralAtaPlaneCnv_p1 m_measuredNeutralAtaPlanesCnv
Definition: TrackParticleContainerCnv_tlp2.h:137
TrackParticleContainerCnv_tlp2::m_measuredAtaCylindersCnv
MeasuredAtaCylinderCnv_p1 m_measuredAtaCylindersCnv
Definition: TrackParticleContainerCnv_tlp2.h:123
TrackParticleContainerARACnv_tlp2::m_dumDetElSurfCnv
DummyDetElementSurfaceCnv_p1 m_dumDetElSurfCnv
Definition: TrackParticleContainerCnv_tlp2.h:187
TrackParticleContainerCnv_tlp2::m_measuredPerigeeCnv
MeasuredPerigeeCnv_p1 m_measuredPerigeeCnv
Definition: TrackParticleContainerCnv_tlp2.h:121
Rec::TrackParticleContainer_tlp2
Definition: TrackParticleContainer_tlp2.h:78
TopLevelTPCnvBase::addExtTPConverterForReading
virtual void addExtTPConverterForReading(ITPConverter *cnv)
add extending TP converter to this top level converter - to the list consulted when reading only.
Definition: TopLevelTPCnvBase.cxx:47
Rec::TrackParticleContainer_tlp2::m_surfaces
std::vector< Trk::Surface_p1 > m_surfaces
Definition: TrackParticleContainer_tlp2.h:102
TrackParticleContainerCnv_tlp2::m_diamondBoundsCnv
DiamondBoundsCnv_p1 m_diamondBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:149
TrackParticleContainerCnv_tlp2::m_perigeeSurfacesCnv
PerigeeSurfaceCnv_p1 m_perigeeSurfacesCnv
Definition: TrackParticleContainerCnv_tlp2.h:140
TrackParticleContainerCnv_tlp2::m_measuredNeutralAtaStraightLinesCnv
MeasuredNeutralAtaStraightLineCnv_p1 m_measuredNeutralAtaStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp2.h:138
Rec::TrackParticleContainer_tlp2::m_trapesoidBounds
std::vector< Trk::TrapezoidBounds_p1 > m_trapesoidBounds
Definition: TrackParticleContainer_tlp2.h:108
Rec::TrackParticleContainer_tlp2::m_trackParticle_p2
std::vector< Rec::TrackParticle_p2 > m_trackParticle_p2
Definition: TrackParticleContainer_tlp2.h:88
TPAbstractPolyCnvBase::setPStorage
void setPStorage(std::vector< PERS > *storage)
Tell this converter which storage vector it should use to store or retrieve persistent representation...
Definition: TPConverter.h:551
Rec::TrackParticleContainer_tlp2::m_perigees
std::vector< Trk::Perigee_p1 > m_perigees
Definition: TrackParticleContainer_tlp2.h:94
ITPConverterFor::typeID
virtual const TPObjRef::typeID_t & typeID() const
Return TP typeID for persistent objects produced by this converter.
Definition: TPConverter.h:208
Rec::TrackParticleContainer_tlp2::m_discBounds
std::vector< Trk::DiscBounds_p1 > m_discBounds
Definition: TrackParticleContainer_tlp2.h:106
Rec::TrackParticleContainer_tlp2::m_boundSurfaces
std::vector< Trk::BoundSurface_p1 > m_boundSurfaces
Definition: TrackParticleContainer_tlp2.h:101
TrackParticleContainerCnv_tlp2::m_cylinderBoundsCnv
CylinderBoundsCnv_p1 m_cylinderBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:148
TrackParticleContainerCnv_tlp2::m_rectangleBoundsCnv
RectangleBoundsCnv_p1 m_rectangleBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:152
Rec::TrackParticleContainer_tlp2::m_hepSymMatrices
std::vector< Trk::HepSymMatrix_p1 > m_hepSymMatrices
Definition: TrackParticleContainer_tlp2.h:113
TopLevelTPConverter::addMainTPConverter
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
Definition: TopLevelTPConverter.h:146
TrackParticleContainerCnv_tlp2::m_discSurfacesCnv
DiscSurfaceCnv_p1 m_discSurfacesCnv
Definition: TrackParticleContainerCnv_tlp2.h:141
TrackParticleContainerCnv_tlp2::m_surfacesCnv
SurfaceCnv_p1 m_surfacesCnv
Definition: TrackParticleContainerCnv_tlp2.h:147
ITPConverterFor::topConverter
virtual TopLevelTPCnvBase * topConverter()
return the top-level converter for this elemental TP converter
Definition: TPConverter.h:191
TrackParticleContainerCnv_tlp2::m_measuredAtaDiscsCnv
MeasuredAtaDiscCnv_p1 m_measuredAtaDiscsCnv
Definition: TrackParticleContainerCnv_tlp2.h:122
TopLevelTPCnvBase::addTPConverter
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
Definition: TopLevelTPCnvBase.cxx:11
Rec::TrackParticleContainer_tlp2::m_cylinderBounds
std::vector< Trk::CylinderBounds_p1 > m_cylinderBounds
Definition: TrackParticleContainer_tlp2.h:103
TopLevelTPCnvBase::addTPConverterForReading
virtual void addTPConverterForReading(ITPConverter *cnv)
Add a TP converter to this top level converter but only for reading.
Definition: TopLevelTPCnvBase.cxx:19
TrackParticleContainerCnv_tlp2::m_trackSummaryCnv
TrackSummaryCnv_p2 m_trackSummaryCnv
Definition: TrackParticleContainerCnv_tlp2.h:157
TrackParticleContainerCnv_tlp2::m_neutralAtaStraightLinesCnv
NeutralAtaStraightLineCnv_p1 m_neutralAtaStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp2.h:133
TrackParticleContainerCnv_tlp2::m_discBoundsCnv
DiscBoundsCnv_p1 m_discBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:151
TrackParticleContainerCnv_tlp2::m_measuredNeutralAtaDiscsCnv
MeasuredNeutralAtaDiscCnv_p1 m_measuredNeutralAtaDiscsCnv
Definition: TrackParticleContainerCnv_tlp2.h:135
TrackParticleContainerCnv_tlp2::m_ataDiscsCnv
AtaDiscCnv_p1 m_ataDiscsCnv
Definition: TrackParticleContainerCnv_tlp2.h:117
TrackParticleContainerCnv_tlp2::m_planeSurfacesCnv
PlaneSurfaceCnv_p1 m_planeSurfacesCnv
Definition: TrackParticleContainerCnv_tlp2.h:142
Rec::TrackParticleContainer_tlp2::m_rectangleBounds
std::vector< Trk::RectangleBounds_p1 > m_rectangleBounds
Definition: TrackParticleContainer_tlp2.h:107
TrackParticleContainerCnv_tlp2::m_errorMatricesCnv
ErrorMatrixCnv_p1 m_errorMatricesCnv
Definition: TrackParticleContainerCnv_tlp2.h:161
TrackParticleContainerCnv_tlp2.h
TrackParticleContainerCnv_tlp2::m_ataPlanesCnv
AtaPlaneCnv_p1 m_ataPlanesCnv
Definition: TrackParticleContainerCnv_tlp2.h:119
TrackParticleContainerCnv_tlp2::m_perigeeCnv
PerigeeCnv_p1 m_perigeeCnv
Definition: TrackParticleContainerCnv_tlp2.h:116
TrackParticleContainerCnv_tlp2::m_neutralAtaDiscsCnv
NeutralAtaDiscCnv_p1 m_neutralAtaDiscsCnv
Definition: TrackParticleContainerCnv_tlp2.h:130
Rec::TrackParticleContainer_tlp2::m_rotatedTrapesoidBounds
std::vector< Trk::RotatedTrapezoidBounds_p1 > m_rotatedTrapesoidBounds
Definition: TrackParticleContainer_tlp2.h:109
TrackParticleContainerCnv_tlp2::m_ataCylindersCnv
AtaCylinderCnv_p1 m_ataCylindersCnv
Definition: TrackParticleContainerCnv_tlp2.h:118
TrackParticleContainerCnv_tlp2::m_neutralParametersCnv
NeutralParametersCnv_p1 m_neutralParametersCnv
Definition: TrackParticleContainerCnv_tlp2.h:128
Rec::TrackParticleContainer_tlp2::m_rotatedDiamondBounds
std::vector< Trk::RotatedDiamondBounds_p1 > m_rotatedDiamondBounds
Definition: TrackParticleContainer_tlp2.h:105
TrackParticleContainerCnv_tlp2::m_trackParticleCnv_p2
TrackParticleCnv_p2 m_trackParticleCnv_p2
Definition: TrackParticleContainerCnv_tlp2.h:112
Rec::TrackParticleContainer_tlp2::m_ataSurfaces
std::vector< Trk::AtaSurface_p1 > m_ataSurfaces
Definition: TrackParticleContainer_tlp2.h:92
TrackParticleContainerCnv_tlp2::m_covarianceMatricesCnv
CovarianceMatrixCnv_p1 m_covarianceMatricesCnv
Definition: TrackParticleContainerCnv_tlp2.h:160
TrackParticleContainerCnv_tlp2::m_measuredNeutralAtaCylindersCnv
MeasuredNeutralAtaCylinderCnv_p1 m_measuredNeutralAtaCylindersCnv
Definition: TrackParticleContainerCnv_tlp2.h:136
ITPConverterFor::setTopConverter
virtual void setTopConverter(TopLevelTPCnvBase *topConverter, const TPObjRef::typeID_t &TPtypeID)
Set which top-level converter owns this elemental converter, and what TPtypeID was assigned to the pe...
Definition: TPConverter.h:221
TrackParticleContainerCnv_tlp2::m_rotatedDiamondBoundsCnv
RotatedDiamondBoundsCnv_p1 m_rotatedDiamondBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:150
TrackParticleContainerCnv_tlp2::TrackParticleContainerCnv_tlp2
TrackParticleContainerCnv_tlp2()
Definition: TrackParticleContainerCnv_tlp2.cxx:8
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
TrackParticleContainerCnv_tlp2::m_measuredNeutralPerigeeCnv
MeasuredNeutralPerigeeCnv_p1 m_measuredNeutralPerigeeCnv
Definition: TrackParticleContainerCnv_tlp2.h:134
Rec::TrackParticleContainer_tlp2::m_measPerigees
std::vector< Trk::MeasuredPerigee_p1 > m_measPerigees
Definition: TrackParticleContainer_tlp2.h:95
TrackParticleContainerCnv_tlp2::m_neutralAtaPlanesCnv
NeutralAtaPlaneCnv_p1 m_neutralAtaPlanesCnv
Definition: TrackParticleContainerCnv_tlp2.h:132
TrackParticleContainerCnv_tlp2::setPStorage
virtual void setPStorage(Rec::TrackParticleContainer_tlp2 *storage)
Definition: TrackParticleContainerCnv_tlp2.cxx:69
Rec::TrackParticleContainer_tlp2::m_trackSummaries
std::vector< Trk::TrackSummary_p2 > m_trackSummaries
Definition: TrackParticleContainer_tlp2.h:98
TrackParticleContainerCnv_tlp2::m_neutralAtaCylindersCnv
NeutralAtaCylinderCnv_p1 m_neutralAtaCylindersCnv
Definition: TrackParticleContainerCnv_tlp2.h:131
Rec::TrackParticleContainer_tlp2::m_trackParticleContainer_p2
std::vector< Rec::TrackParticleContainer_p2 > m_trackParticleContainer_p2
Definition: TrackParticleContainer_tlp2.h:87
TrackParticleContainerCnv_tlp2::m_detElSurfCnv
DetElementSurfaceCnv_p1 m_detElSurfCnv
Definition: TrackParticleContainerCnv_tlp2.h:145
TrackParticleContainerCnv_tlp2::m_cylinderSurfacesCnv
CylinderSurfaceCnv_p1 m_cylinderSurfacesCnv
Definition: TrackParticleContainerCnv_tlp2.h:143
TrackParticleContainerCnv_tlp2::m_measuredAtaPlanesCnv
MeasuredAtaPlaneCnv_p1 m_measuredAtaPlanesCnv
Definition: TrackParticleContainerCnv_tlp2.h:124
TrackParticleContainerCnv_tlp2::m_ataStraightLinesCnv
AtaStraightLineCnv_p1 m_ataStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp2.h:120
TrackParticleContainerCnv_tlp2::m_rotatedTrapesoidBoundsCnv
RotatedTrapezoidBoundsCnv_p1 m_rotatedTrapesoidBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:154
TrackParticleContainerCnv_tlp2::m_trapesoidBoundsCnv
TrapezoidBoundsCnv_p1 m_trapesoidBoundsCnv
Definition: TrackParticleContainerCnv_tlp2.h:153
TrackParticleContainerARACnv_tlp2::TrackParticleContainerARACnv_tlp2
TrackParticleContainerARACnv_tlp2()
Definition: TrackParticleContainerCnv_tlp2.cxx:145
Rec::TrackParticleContainer_tlp2::m_diamondBounds
std::vector< Trk::DiamondBounds_p1 > m_diamondBounds
Definition: TrackParticleContainer_tlp2.h:104
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
Rec::TrackParticleContainer_tlp2::m_measuredAtaSurfaces
std::vector< Trk::MeasuredAtaSurface_p1 > m_measuredAtaSurfaces
Definition: TrackParticleContainer_tlp2.h:93
TrackParticleContainerCnv_tlp2::m_neutralPerigeeCnv
NeutralPerigeeCnv_p1 m_neutralPerigeeCnv
Definition: TrackParticleContainerCnv_tlp2.h:129
TopLevelTPConverter::setMainCnvPStorage
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
Definition: TopLevelTPConverter.h:152
checker_macros.h
Define macros for attributes used to control the static checker.
Rec::TrackParticleContainer_tlp2::m_detElementSurfaces
std::vector< Trk::DetElementSurface_p1 > m_detElementSurfaces
Definition: TrackParticleContainer_tlp2.h:110
T_TPCnv
Definition: T_AthenaPoolTPConverter.h:17
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
TrackParticleContainerCnv_tlp2::m_straightLineSurfacesCnv
StraightLineSurfaceCnv_p1 m_straightLineSurfacesCnv
Definition: TrackParticleContainerCnv_tlp2.h:144
Rec::TrackParticleContainer_tlp2::m_trackParameters
std::vector< Trk::TrackParameters_p1 > m_trackParameters
Definition: TrackParticleContainer_tlp2.h:91
TrackParticleContainerCnv_tlp2::m_trackParametersCnv
TrackParametersCnv_p1 m_trackParametersCnv
Definition: TrackParticleContainerCnv_tlp2.h:115
TrackParticleContainerCnv_tlp2::m_measuredAtaStraightLinesCnv
MeasuredAtaStraightLineCnv_p1 m_measuredAtaStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp2.h:125