ATLAS Offline Software
TrackParticleContainerCnv_tlp1.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 
18 // addTPConverter( &m_trackParticleBaseCnv);
20 
21 // REMOVE LATER?
25 
37 
49 
55 
62 
67 
68  // Added with TrackParticleTPCnv-00-01-00
71 
72 //trackInfo
74 
75  //Added with TrackParticleTPCnv-00-02-05
77 
78  //Added with TrackParticleTPCnv-00-02-06
79 
81 
82  // HEY YOU --- YES YOU --- READ THE COMMENT AT THE START OF THIS FUNCTION!!!!
83 
84 // REMOVE LATER END
85 }
86 
88 {
89 // for implicit TrackCollection_p1 from the base class:
91 
92 // for all converters defined in this top level converter
94 
95 // REMOVE LATER?
96 // for all converters defined in this top level converter
99  m_trackCnv. setPStorage(&storage->m_tracks);
100 
104 
109 
110  m_ataDiscsCnv. setPStorage( &storage->m_ataSurfaces );
114 
118 
123 
128 
135 
136 
137  m_surfacesCnv. setPStorage( &storage->m_surfaces );
145 
148 
153 // REMOVE LATER END
154 
155 
156 
157 }
158 
159 
163  MsgStream& msg)
164 {
165  // FIXME: TPConverter uses the same non-const member m_pStorage
166  // for both reading and writing, but we want it to be const
167  // in the former case.
169  const_cast<Rec::TrackParticleContainer_tlp1*> (pers);
170  setPStorage (pers_nc);
171  m_mainConverter.pstoreToTrans (0, trans, msg);
172 }
173 
177  MsgStream& msg) {
178 
179  this->setTLPersObject( pers );
180  m_mainConverter.virt_toPersistent(trans, msg);
181  this->clearTLPersObject();
182 
183 }
184 
185 
187 {
190 
192 }
193 
TrackParticleContainerCnv_tlp1::m_rotatedTrapesoidBoundsCnv
RotatedTrapezoidBoundsCnv_p1 m_rotatedTrapesoidBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:175
TrackParticleContainerCnv_tlp1::m_fitQualityCnv
FitQualityCnv_p1 m_fitQualityCnv
Definition: TrackParticleContainerCnv_tlp1.h:182
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_tlp1::m_tracks
std::vector< Trk::Track_p1 > m_tracks
Definition: TrackParticleContainer_tlp1.h:104
TrackParticleContainerCnv_tlp1::m_ataDiscsCnv
AtaDiscCnv_p1 m_ataDiscsCnv
Definition: TrackParticleContainerCnv_tlp1.h:138
TrackParticleContainerCnv_tlp1::m_neutralPerigeeCnv
NeutralPerigeeCnv_p1 m_neutralPerigeeCnv
Definition: TrackParticleContainerCnv_tlp1.h:150
TrackParticleContainerCnv_tlp1::m_trackSummaryCnv
TrackSummaryCnv_p1 m_trackSummaryCnv
Definition: TrackParticleContainerCnv_tlp1.h:178
TrackParticleContainerCnv_tlp1::m_perigeeCnv
PerigeeCnv_p1 m_perigeeCnv
Definition: TrackParticleContainerCnv_tlp1.h:137
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
TrackParticleContainerCnv_tlp1::m_neutralParametersCnv
NeutralParametersCnv_p1 m_neutralParametersCnv
Definition: TrackParticleContainerCnv_tlp1.h:149
TrackParticleContainerCnv_tlp1::m_measuredNeutralAtaCylindersCnv
MeasuredNeutralAtaCylinderCnv_p1 m_measuredNeutralAtaCylindersCnv
Definition: TrackParticleContainerCnv_tlp1.h:157
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_tlp1::m_trackSummaries
std::vector< Trk::TrackSummary_p1 > m_trackSummaries
Definition: TrackParticleContainer_tlp1.h:115
Rec::TrackParticleContainer_tlp1::m_boundSurfaces
std::vector< Trk::BoundSurface_p1 > m_boundSurfaces
Definition: TrackParticleContainer_tlp1.h:120
TrackParticleContainerCnv_tlp1::m_cylinderSurfacesCnv
CylinderSurfaceCnv_p1 m_cylinderSurfacesCnv
Definition: TrackParticleContainerCnv_tlp1.h:164
TrackParticleContainerCnv_tlp1::m_neutralAtaDiscsCnv
NeutralAtaDiscCnv_p1 m_neutralAtaDiscsCnv
Definition: TrackParticleContainerCnv_tlp1.h:151
TrackParticleContainerCnv_tlp1::m_measuredNeutralPerigeeCnv
MeasuredNeutralPerigeeCnv_p1 m_measuredNeutralPerigeeCnv
Definition: TrackParticleContainerCnv_tlp1.h:155
TopLevelTPConverter::addMainTPConverter
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
Definition: TopLevelTPConverter.h:146
Rec::TrackParticleContainer_tlp1::m_trackParameters
std::vector< Trk::TrackParameters_p1 > m_trackParameters
Definition: TrackParticleContainer_tlp1.h:108
Rec::TrackParticleContainer_tlp1::m_muonTrackSummaries
std::vector< Trk::MuonTrackSummary_p1 > m_muonTrackSummaries
Definition: TrackParticleContainer_tlp1.h:117
Rec::TrackParticleContainer_tlp1::m_trackInfos
std::vector< Trk::TrackInfo_p1 > m_trackInfos
Definition: TrackParticleContainer_tlp1.h:136
Rec::TrackParticleContainer_tlp1::m_surfaces
std::vector< Trk::Surface_p1 > m_surfaces
Definition: TrackParticleContainer_tlp1.h:121
TrackParticleContainerCnv_tlp1::m_trackParticleBaseCnv
TrackParticleBaseCnv_p1 m_trackParticleBaseCnv
Definition: TrackParticleContainerCnv_tlp1.h:129
Rec::TrackParticleContainer_tlp1::m_vxCandidates
std::vector< Trk::VxCandidate_p1 > m_vxCandidates
Definition: TrackParticleContainer_tlp1.h:105
TrackParticleContainerCnv_tlp1::m_errorMatricesCnv
ErrorMatrixCnv_p1 m_errorMatricesCnv
Definition: TrackParticleContainerCnv_tlp1.h:184
ITPConverterFor::topConverter
virtual TopLevelTPCnvBase * topConverter()
return the top-level converter for this elemental TP converter
Definition: TPConverter.h:191
TrackParticleContainerCnv_tlp1::m_discBoundsCnv
DiscBoundsCnv_p1 m_discBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:172
Rec::TrackParticleContainer_tlp1::m_cylinderBounds
std::vector< Trk::CylinderBounds_p1 > m_cylinderBounds
Definition: TrackParticleContainer_tlp1.h:122
Rec::TrackParticleContainer_tlp1::m_measuredAtaSurfaces
std::vector< Trk::MeasuredAtaSurface_p1 > m_measuredAtaSurfaces
Definition: TrackParticleContainer_tlp1.h:110
TopLevelTPCnvBase::addTPConverter
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
Definition: TopLevelTPCnvBase.cxx:11
TrackParticleContainerCnv_tlp1::m_muonTrackSummaryCnv
MuonTrackSummaryCnv_p1 m_muonTrackSummaryCnv
Definition: TrackParticleContainerCnv_tlp1.h:179
TrackParticleContainerCnv_tlp1::m_measuredPerigeeCnv
MeasuredPerigeeCnv_p1 m_measuredPerigeeCnv
Definition: TrackParticleContainerCnv_tlp1.h:142
TrackParticleContainerCnv_tlp1::m_measuredAtaStraightLinesCnv
MeasuredAtaStraightLineCnv_p1 m_measuredAtaStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp1.h:146
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_tlp1::m_surfacesCnv
SurfaceCnv_p1 m_surfacesCnv
Definition: TrackParticleContainerCnv_tlp1.h:168
TrackParticleContainerCnv_tlp1::m_neutralAtaStraightLinesCnv
NeutralAtaStraightLineCnv_p1 m_neutralAtaStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp1.h:154
Rec::TrackParticleContainer_tlp1::m_trackParticle
std::vector< Rec::TrackParticle_p1 > m_trackParticle
Definition: TrackParticleContainer_tlp1.h:96
Rec::TrackParticleContainer_tlp1::m_measPerigees
std::vector< Trk::MeasuredPerigee_p1 > m_measPerigees
Definition: TrackParticleContainer_tlp1.h:112
Rec::TrackParticleContainer_tlp1::m_rotatedTrapesoidBounds
std::vector< Trk::RotatedTrapezoidBounds_p1 > m_rotatedTrapesoidBounds
Definition: TrackParticleContainer_tlp1.h:128
Rec::TrackParticleContainer_tlp1::m_diamondBounds
std::vector< Trk::DiamondBounds_p1 > m_diamondBounds
Definition: TrackParticleContainer_tlp1.h:123
TrackParticleContainerCnv_tlp1::m_trackParametersCnv
TrackParametersCnv_p1 m_trackParametersCnv
Definition: TrackParticleContainerCnv_tlp1.h:136
Rec::TrackParticleContainer_tlp1::m_perigees
std::vector< Trk::Perigee_p1 > m_perigees
Definition: TrackParticleContainer_tlp1.h:111
Rec::TrackParticleContainer_tlp1::m_detElementSurfaces
std::vector< Trk::DetElementSurface_p1 > m_detElementSurfaces
Definition: TrackParticleContainer_tlp1.h:129
TrackParticleContainerCnv_tlp1::setPStorage
virtual void setPStorage(Rec::TrackParticleContainer_tlp1 *storage)
Definition: TrackParticleContainerCnv_tlp1.cxx:87
Rec::TrackParticleContainer_tlp1::m_discBounds
std::vector< Trk::DiscBounds_p1 > m_discBounds
Definition: TrackParticleContainer_tlp1.h:125
TrackParticleContainerCnv_tlp1::m_cylinderBoundsCnv
CylinderBoundsCnv_p1 m_cylinderBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:169
TrackParticleContainerCnv_tlp1::m_detElSurfCnv
DetElementSurfaceCnv_p1 m_detElSurfCnv
Definition: TrackParticleContainerCnv_tlp1.h:166
TrackParticleContainerCnv_tlp1::m_neutralAtaPlanesCnv
NeutralAtaPlaneCnv_p1 m_neutralAtaPlanesCnv
Definition: TrackParticleContainerCnv_tlp1.h:153
TrackParticleContainerCnv_tlp1::m_perigeeSurfacesCnv
PerigeeSurfaceCnv_p1 m_perigeeSurfacesCnv
Definition: TrackParticleContainerCnv_tlp1.h:161
TrackParticleContainerCnv_tlp1::m_covarianceMatricesCnv
CovarianceMatrixCnv_p1 m_covarianceMatricesCnv
Definition: TrackParticleContainerCnv_tlp1.h:183
TrackParticleContainerCnv_tlp1::m_diamondBoundsCnv
DiamondBoundsCnv_p1 m_diamondBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:170
TrackParticleContainerCnv_tlp1.h
TrackParticleContainerCnv_tlp1::TrackParticleContainerCnv_tlp1
TrackParticleContainerCnv_tlp1()
Definition: TrackParticleContainerCnv_tlp1.cxx:8
TrackParticleContainerCnv_tlp1::m_ataCylindersCnv
AtaCylinderCnv_p1 m_ataCylindersCnv
Definition: TrackParticleContainerCnv_tlp1.h:139
Rec::TrackParticleContainer_tlp1::m_ataSurfaces
std::vector< Trk::AtaSurface_p1 > m_ataSurfaces
Definition: TrackParticleContainer_tlp1.h:109
TrackParticleContainerCnv_tlp1::m_vxCandidateCnv
VxCandidateCnv_p1 m_vxCandidateCnv
Definition: TrackParticleContainerCnv_tlp1.h:133
TrackParticleContainerCnv_tlp1::m_discSurfacesCnv
DiscSurfaceCnv_p1 m_discSurfacesCnv
Definition: TrackParticleContainerCnv_tlp1.h:162
TrackParticleContainerCnv_tlp1::m_measuredAtaCylindersCnv
MeasuredAtaCylinderCnv_p1 m_measuredAtaCylindersCnv
Definition: TrackParticleContainerCnv_tlp1.h:144
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
Rec::TrackParticleContainer_tlp1::m_hepSymMatrices
std::vector< Trk::HepSymMatrix_p1 > m_hepSymMatrices
Definition: TrackParticleContainer_tlp1.h:133
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
TrackParticleContainerCnv_tlp1::m_rotatedDiamondBoundsCnv
RotatedDiamondBoundsCnv_p1 m_rotatedDiamondBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:171
Rec::TrackParticleContainer_tlp1::m_trapesoidBounds
std::vector< Trk::TrapezoidBounds_p1 > m_trapesoidBounds
Definition: TrackParticleContainer_tlp1.h:127
TrackParticleContainerCnv_tlp1::m_measuredAtaDiscsCnv
MeasuredAtaDiscCnv_p1 m_measuredAtaDiscsCnv
Definition: TrackParticleContainerCnv_tlp1.h:143
TrackParticleContainerCnv_tlp1::m_measuredNeutralAtaStraightLinesCnv
MeasuredNeutralAtaStraightLineCnv_p1 m_measuredNeutralAtaStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp1.h:159
TrackParticleContainerCnv_tlp1::m_neutralAtaCylindersCnv
NeutralAtaCylinderCnv_p1 m_neutralAtaCylindersCnv
Definition: TrackParticleContainerCnv_tlp1.h:152
Rec::TrackParticleContainer_tlp1::m_fitQualities
std::vector< Trk::FitQuality_p1 > m_fitQualities
Definition: TrackParticleContainer_tlp1.h:132
TrackParticleContainerCnv_tlp1::m_measuredNeutralAtaDiscsCnv
MeasuredNeutralAtaDiscCnv_p1 m_measuredNeutralAtaDiscsCnv
Definition: TrackParticleContainerCnv_tlp1.h:156
TrackParticleContainerCnv_tlp1::m_planeSurfacesCnv
PlaneSurfaceCnv_p1 m_planeSurfacesCnv
Definition: TrackParticleContainerCnv_tlp1.h:163
TrackParticleContainerCnv_tlp1::m_straightLineSurfacesCnv
StraightLineSurfaceCnv_p1 m_straightLineSurfacesCnv
Definition: TrackParticleContainerCnv_tlp1.h:165
TrackParticleContainerCnv_tlp1::m_trackParticleCnv
TrackParticleCnv_p1 m_trackParticleCnv
Definition: TrackParticleContainerCnv_tlp1.h:125
Rec::TrackParticleContainer_tlp1
Definition: TrackParticleContainer_tlp1.h:86
Rec::TrackParticleContainer_tlp1::m_rotatedDiamondBounds
std::vector< Trk::RotatedDiamondBounds_p1 > m_rotatedDiamondBounds
Definition: TrackParticleContainer_tlp1.h:124
TrackParticleContainerCnv_tlp1::m_measuredNeutralAtaPlanesCnv
MeasuredNeutralAtaPlaneCnv_p1 m_measuredNeutralAtaPlanesCnv
Definition: TrackParticleContainerCnv_tlp1.h:158
Rec::TrackParticleContainer_tlp1::m_trackParticleBase
std::vector< Trk::TrackParticleBase_p1 > m_trackParticleBase
Definition: TrackParticleContainer_tlp1.h:101
TrackParticleContainerARACnv_tlp1::m_dumDetElSurfCnv
DummyDetElementSurfaceCnv_p1 m_dumDetElSurfCnv
Definition: TrackParticleContainerCnv_tlp1.h:214
Rec::TrackParticleContainer_tlp1::m_rectangleBounds
std::vector< Trk::RectangleBounds_p1 > m_rectangleBounds
Definition: TrackParticleContainer_tlp1.h:126
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
TrackParticleContainerCnv_tlp1::m_trackCnv
TrackCnv_p1 m_trackCnv
Definition: TrackParticleContainerCnv_tlp1.h:132
TrackParticleContainerARACnv_tlp1::TrackParticleContainerARACnv_tlp1
TrackParticleContainerARACnv_tlp1()
Definition: TrackParticleContainerCnv_tlp1.cxx:186
TopLevelTPConverter::setMainCnvPStorage
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
Definition: TopLevelTPConverter.h:152
TrackParticleContainerCnv_tlp1::m_trapesoidBoundsCnv
TrapezoidBoundsCnv_p1 m_trapesoidBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:174
TrackParticleContainerCnv_tlp1::m_trackInfosCnv
TrackInfoCnv_p1 m_trackInfosCnv
Definition: TrackParticleContainerCnv_tlp1.h:187
checker_macros.h
Define macros for attributes used to control the static checker.
TrackParticleContainerCnv_tlp1::m_ataPlanesCnv
AtaPlaneCnv_p1 m_ataPlanesCnv
Definition: TrackParticleContainerCnv_tlp1.h:140
T_TPCnv
Definition: T_AthenaPoolTPConverter.h:17
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
TrackParticleContainerCnv_tlp1::m_ataStraightLinesCnv
AtaStraightLineCnv_p1 m_ataStraightLinesCnv
Definition: TrackParticleContainerCnv_tlp1.h:141
TrackParticleContainerCnv_tlp1::m_measuredAtaPlanesCnv
MeasuredAtaPlaneCnv_p1 m_measuredAtaPlanesCnv
Definition: TrackParticleContainerCnv_tlp1.h:145
TrackParticleContainerCnv_tlp1::m_rectangleBoundsCnv
RectangleBoundsCnv_p1 m_rectangleBoundsCnv
Definition: TrackParticleContainerCnv_tlp1.h:173
Rec::TrackParticleContainer_tlp1::m_trackParticleContainer
std::vector< Rec::TrackParticleContainer_p1 > m_trackParticleContainer
Definition: TrackParticleContainer_tlp1.h:95