|
ATLAS Offline Software
|
#include <MuonMeasurementsCnv_tlp1.h>
Definition at line 26 of file MuonMeasurementsCnv_tlp1.h.
◆ convIdMap_t
◆ MuonMeasurementsCnv_tlp1()
MuonMeasurementsCnv_tlp1::MuonMeasurementsCnv_tlp1 |
( |
| ) |
|
◆ ~MuonMeasurementsCnv_tlp1()
virtual MuonMeasurementsCnv_tlp1::~MuonMeasurementsCnv_tlp1 |
( |
| ) |
|
|
inlinevirtual |
◆ addExtTPConverterForReading()
void TopLevelTPCnvBase::addExtTPConverterForReading |
( |
ITPConverter * |
cnv | ) |
|
|
virtualinherited |
add extending TP converter to this top level converter - to the list consulted when reading only.
- Parameters
-
cnv | [IN] the TP converter to be added
|
Definition at line 47 of file TopLevelTPCnvBase.cxx.
52 m_convIdMap[ converter->typeID().value() ] = converter;
55 converter->setRuntimeTopConverter(
this );
◆ addTPConverter()
void TopLevelTPCnvBase::addTPConverter |
( |
ITPConverter * |
cnv | ) |
|
|
virtualinherited |
Add a TP converter to this top level converter.
- Parameters
-
cnv | [IN] the TP converter to be added
|
Definition at line 11 of file TopLevelTPCnvBase.cxx.
◆ addTPConverterForReading()
void TopLevelTPCnvBase::addTPConverterForReading |
( |
ITPConverter * |
cnv | ) |
|
|
virtualinherited |
Add a TP converter to this top level converter but only for reading.
Old converters that read schema evolved objects should be added only for reading.
- Parameters
-
cnv | [IN] the TP converter to be added
|
Definition at line 19 of file TopLevelTPCnvBase.cxx.
28 converter->setTopConverter(
this, full_typeID );
◆ addTPConverterForWriting()
void TopLevelTPCnvBase::addTPConverterForWriting |
( |
ITPConverter * |
cnv | ) |
|
|
privatevirtualinherited |
add TP converter to the list of converters consulted when writing - internal method.
- Parameters
-
cnv | [IN] the TP converter to be added
|
Definition at line 33 of file TopLevelTPCnvBase.cxx.
37 const std::type_info &
info( converter->transientTInfo() );
40 const std::string
error(
"Duplicate TP converter for class ");
41 throw std::runtime_error(
error +
info.name() );
◆ addTPConvertersForReadingTo()
copy all extending converters from this top level converter to "dest" top level converter - for reading
- Parameters
-
dest | [IN] destination converter which will receive all elemental TP converters that this one has |
Definition at line 78 of file TopLevelTPCnvBase.cxx.
81 if( cnv->hasConvertersFrom(
this ) ) {
85 for( convIdMap_t::const_iterator itr =
m_convIdMap.begin();
87 cnv->addExtTPConverterForReading( itr->second );
90 cnv->rememberConverter(
this );
◆ addTPConvertersTo()
copy all extending converters from this top level converter to "dest" top level converter
copy all TP converters to another topLevel conveter
- Parameters
-
dest | [IN] destination converter which will receive all elemental TP converters that this one has |
Definition at line 60 of file TopLevelTPCnvBase.cxx.
63 for( convIdMap_t::const_iterator itr =
m_convIdMap.begin();
68 cnv->addTPConverterForWriting( itr->second );
71 cnv->addExtTPConverterForReading( itr->second );
74 cnv->rememberConverter(
this );
◆ clearTLPersObject()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
◆ converterForRef()
Find and return a TP converter for persistent type referenced by ref.
- Parameters
-
ref | [IN] TP reference of a persistent object |
- Returns
- ITPConverter* pointer to the TP converter for ref
Definition at line 89 of file TopLevelTPCnvBase.h.
90 convIdMap_t::const_iterator iter =
m_convIdMap.find(
ref.typeID() );
◆ converterForType()
ITPConverter* TopLevelTPCnvBase::converterForType |
( |
const std::type_info & |
info | ) |
const |
|
inlineinherited |
Find and return a TP converter for a given C++ type info.
- Parameters
-
info | [IN] C++ type info reference to the transient type |
- Returns
- ITPConverter* pointer to the TP converter for type info
Definition at line 80 of file TopLevelTPCnvBase.h.
◆ createTLPersObject()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
◆ deleteTLPersObject()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
◆ getConverterID()
virtual unsigned short MuonMeasurementsCnv_tlp1::getConverterID |
( |
| ) |
|
|
inlinevirtual |
◆ getTLPersObject() [1/2]
- Returns
- pointer to the persistent object owned by this converter
Definition at line 72 of file TopLevelTPCnvBaseP.h.
◆ getTLPersObject() [2/2]
- Returns
- pointer to the persistent object owned by this converter
Definition at line 77 of file TopLevelTPCnvBaseP.h.
◆ getTLPersObjectAsVoid() [1/2]
template<class TL_PERS >
|
inlineoverridevirtualinherited |
◆ getTLPersObjectAsVoid() [2/2]
template<class TL_PERS >
|
inlineoverridevirtualinherited |
◆ getTokenListVar()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
Return the list of tokens to the objects extending the object owned by this converter.
This method is needed only in a conveter which has extensions. It needs to be implemented in the top-level converter by the user
- Returns
- pointer to the token list from the persistent object
Implements TopLevelTPCnvBase.
Reimplemented in TrackParticleContainerCnv_tlp1, TrackParticleContainerCnv_tlp2, VxContainerCnv_tlp1, VxContainerCnv_tlp2, TrackCollectionCnv_tlp3, TrackCollectionCnv_tlp2, TrackCollectionCnv_tlp4, TrackCollectionCnv_tlp1, SegmentCollectionCnv_tlp1, TrackParticleContainerCnv_tlp3, SegmentCollectionCnv_tlp2, TrackCollectionCnv_tlp5, SegmentCollectionCnv_tlp3, PixelClusterContainerCnv_tlp1, SCT_ClusterContainerCnv_tlp1, LayerMaterialMapCnv_tlp1, TRT_DriftCircleContainerCnv_tlp1, CscPrepDataContainerCnv_tlp1, CscStripPrepDataContainerCnv_tlp1, MdtPrepDataContainerCnv_tlp1, RpcPrepDataContainerCnv_tlp1, TgcCoinDataContainerCnv_tlp1, TgcCoinDataContainerCnv_tlp2, TgcPrepDataContainerCnv_tlp1, TgcCoinDataContainerCnv_tlp3, JetCollectionCnv_tlp2, JetCollectionCnv_tlp5, JetCollectionCnv_tlp6, and JetKeyDescriptorCollectionCnv_tlp1.
Definition at line 112 of file TopLevelTPCnvBaseP.h.
◆ getTokenListVarFrom()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
Return the list of tokens to the objects extending the object NOT owned by this converter.
- Parameters
-
persObj | [IN] persistent object from which contains list of tokens. Passes as void* - if the type is wrong, it may crash |
- Returns
- pointer to the token list from persObj
Implements TopLevelTPCnvBase.
Definition at line 115 of file TopLevelTPCnvBaseP.h.
◆ hasConvertersFrom()
Check if TP converters from a given top-level converter were already registered in this converter.
- Parameters
-
cnv | [IN] top-level converter to check |
- Returns
- true if TP converters from cnv were already registered
Definition at line 166 of file TopLevelTPCnvBase.h.
◆ hasTLPersObject()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
◆ releaseTLPersObject()
◆ rememberConverter()
Remember that elemental TP converters from the given top-level converter are already registered.
- Parameters
-
cnv | [IN] top-level TP converter - source of the elemental TP converters |
Definition at line 156 of file TopLevelTPCnvBase.h.
◆ setPStorage() [1/2]
◆ setPStorage() [2/2]
◆ setTLPersObject()
template<class TL_PERS >
|
inlineoverridevirtualinherited |
Take ownership of the persistent object.
Also initialize all elemental TP converters to use that object.
- Parameters
-
persObj | [IN] the persistent object passed as void* |
Implements TopLevelTPCnvBase.
Definition at line 104 of file TopLevelTPCnvBaseP.h.
◆ m_converters
Map of elemental TP converters indexed by transient typeid - used for writing.
Definition at line 180 of file TopLevelTPCnvBase.h.
◆ m_convIdMap
Map of elemental TP converters indexed by their ID - used for reading.
Definition at line 177 of file TopLevelTPCnvBase.h.
◆ m_cscClustersOTCnv
◆ m_mdtDriftCirclesOTCnv
◆ m_muonClustersOTCnv
◆ m_muonCompetingROTsCnv
◆ m_muonSegmentQualitiesCnv
◆ m_muonSegmentsCnv
◆ m_registeredTLConverters
Set top-level converters from which elemental TP converters were registered.
Definition at line 184 of file TopLevelTPCnvBase.h.
◆ m_rpcClustersOTCnv
◆ m_tgcClustersOTCnv
◆ m_tlPersObject
◆ m_typeIDCount
unsigned TopLevelTPCnvBase::m_typeIDCount |
|
protectedinherited |
Counter used to create typed IDs used in the transient Ref.
Definition at line 187 of file TopLevelTPCnvBase.h.
The documentation for this class was generated from the following files:
CONVERTER_BASE * findConverter(const std::type_info &objTypeInfo) const
Find converter for a given C++ type info.
std::vector< Muon::RpcClusterOnTrack_p1 > m_rpcClustersOT
virtual unsigned short getConverterID()=0
std::vector< Muon::MuonSegmentQuality_p1 > m_muonSegmentQualities
void setPStorage(std::vector< PERS > *storage)
Tell this converter which storage vector it should use to store or retrieve persistent representation...
MuonSegmentCnv_p1 m_muonSegmentsCnv
std::set< TopLevelTPCnvBase * > m_registeredTLConverters
Set top-level converters from which elemental TP converters were registered.
virtual TPCnvTokenList_p1 * getTokenListVar() override
Return the list of tokens to the objects extending the object owned by this converter.
TL_PERS * getTLPersObject()
std::vector< Muon::CompetingMuonClustersOnTrack_p1 > m_muonCompetingROT
std::vector< Muon::MuonSegment_p1 > m_muonSegments
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
virtual void setPStorage(TPCnv::MuonMeasurements_tlp1 *storage)
virtual void addTPConverterForReading(ITPConverter *cnv)
Add a TP converter to this top level converter but only for reading.
std::vector< Muon::MuonClusterOnTrack_p1 > m_muonClustersOT
MuonClusterOnTrackCnv_p1 m_muonClustersOTCnv
virtual void clearTLPersObject() override
Discard the persistent object.
std::vector< Muon::MdtDriftCircleOnTrack_p1 > m_mdtDriftCirclesOT
virtual void setPStorage(TL_PERS *persObj)=0
A stub for a method that should be provided by the converter creator.
CompetingMuonClustersOnTrackCnv_p1 m_muonCompetingROTsCnv
unsigned m_typeIDCount
Counter used to create typed IDs used in the transient Ref.
TPConverterTypeMap< ITPConverter > m_converters
Map of elemental TP converters indexed by transient typeid - used for writing.
MuonSegmentQualityCnv_p1 m_muonSegmentQualitiesCnv
TgcClusterOnTrackCnv_p1 m_tgcClustersOTCnv
TL_PERS * m_tlPersObject
The persistent object this conveter is working on.
RpcClusterOnTrackCnv_p1 m_rpcClustersOTCnv
std::vector< Muon::TgcClusterOnTrack_p1 > m_tgcClustersOT
CscClusterOnTrackCnv_p1 m_cscClustersOTCnv
const boost::regex ref(r_ef)
MdtDriftCircleOnTrackCnv_p1 m_mdtDriftCirclesOTCnv
convIdMap_t m_convIdMap
Map of elemental TP converters indexed by their ID - used for reading.
virtual void addTPConverterForWriting(ITPConverter *cnv)
add TP converter to the list of converters consulted when writing - internal method.
std::vector< Muon::CscClusterOnTrack_p1 > m_cscClustersOT
void addConverter(CONVERTER_BASE *converter, const std::type_info &objTypeInfo)
Add a new converter to the map.