ATLAS Offline Software
Loading...
Searching...
No Matches
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
100
101 m_trackParametersCnv.setPStorage(&storage->m_trackParameters);
102 m_perigeeCnv.setPStorage(&storage->m_perigees);
103 m_measuredPerigeeCnv.setPStorage(&storage->m_measPerigees);
104
109
114
118
123
128
129 m_perigeeSurfacesCnv.setPStorage(&storage->m_surfaces);
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
193
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
std::vector< Trk::MuonTrackSummary_p1 > m_muonTrackSummaries
std::vector< Rec::TrackParticleContainer_p1 > m_trackParticleContainer
std::vector< Trk::TrackSummary_p1 > m_trackSummaries
std::vector< Trk::BoundSurface_p1 > m_boundSurfaces
std::vector< Rec::TrackParticle_p1 > m_trackParticle
std::vector< Trk::CylinderBounds_p1 > m_cylinderBounds
std::vector< Trk::FitQuality_p1 > m_fitQualities
std::vector< Trk::Perigee_p1 > m_perigees
std::vector< Trk::AtaSurface_p1 > m_ataSurfaces
std::vector< Trk::TrackInfo_p1 > m_trackInfos
std::vector< Trk::RotatedTrapezoidBounds_p1 > m_rotatedTrapesoidBounds
std::vector< Trk::DiamondBounds_p1 > m_diamondBounds
std::vector< Trk::TrapezoidBounds_p1 > m_trapesoidBounds
std::vector< Trk::TrackParticleBase_p1 > m_trackParticleBase
std::vector< Trk::DiscBounds_p1 > m_discBounds
std::vector< Trk::RectangleBounds_p1 > m_rectangleBounds
std::vector< Trk::HepSymMatrix_p1 > m_hepSymMatrices
std::vector< Trk::DetElementSurface_p1 > m_detElementSurfaces
std::vector< Trk::MeasuredAtaSurface_p1 > m_measuredAtaSurfaces
std::vector< Trk::Surface_p1 > m_surfaces
std::vector< Trk::MeasuredPerigee_p1 > m_measPerigees
std::vector< Trk::TrackParameters_p1 > m_trackParameters
std::vector< Trk::VxCandidate_p1 > m_vxCandidates
std::vector< Trk::RotatedDiamondBounds_p1 > m_rotatedDiamondBounds
virtual void clearTLPersObject() override
Discard the persistent object.
virtual void setTLPersObject(void *persObj) override
Take ownership of the persistent object.
virtual void addTPConverterForReading(ITPConverter *cnv)
Add a TP converter to this top level converter but only for reading.
virtual void addExtTPConverterForReading(ITPConverter *cnv)
add extending TP converter to this top level converter - to the list consulted when reading only.
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
RotatedTrapezoidBoundsCnv_p1 m_rotatedTrapesoidBoundsCnv
MeasuredNeutralAtaDiscCnv_p1 m_measuredNeutralAtaDiscsCnv
MeasuredAtaStraightLineCnv_p1 m_measuredAtaStraightLinesCnv
MeasuredNeutralPerigeeCnv_p1 m_measuredNeutralPerigeeCnv
virtual void setPStorage(Rec::TrackParticleContainer_tlp1 *storage)
MeasuredNeutralAtaStraightLineCnv_p1 m_measuredNeutralAtaStraightLinesCnv
RotatedDiamondBoundsCnv_p1 m_rotatedDiamondBoundsCnv
StraightLineSurfaceCnv_p1 m_straightLineSurfacesCnv
NeutralAtaStraightLineCnv_p1 m_neutralAtaStraightLinesCnv
MeasuredNeutralAtaPlaneCnv_p1 m_measuredNeutralAtaPlanesCnv
MeasuredNeutralAtaCylinderCnv_p1 m_measuredNeutralAtaCylindersCnv
MeasuredAtaCylinderCnv_p1 m_measuredAtaCylindersCnv
MsgStream & msg
Definition testRead.cxx:32