|
ATLAS Offline Software
|
#include <InDetTrackCnv_tlp1.h>
Definition at line 29 of file InDetTrackCnv_tlp1.h.
◆ convIdMap_t
◆ InDetTrackCnv_tlp1()
InDetTrackCnv_tlp1::InDetTrackCnv_tlp1 |
( |
| ) |
|
◆ ~InDetTrackCnv_tlp1()
virtual InDetTrackCnv_tlp1::~InDetTrackCnv_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 InDetTrackCnv_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_pixelClustersCnv
◆ m_pixelClustersOTCnv
◆ m_pixelCrotCnv
◆ m_registeredTLConverters
Set top-level converters from which elemental TP converters were registered.
Definition at line 184 of file TopLevelTPCnvBase.h.
◆ m_sctClustersCnv
◆ m_sctClustersOTCnv
◆ m_sctCrotCnv
◆ m_siClustersCnv
◆ m_siClustersOTCnv
◆ m_siWidthsCnv
◆ m_tlPersObject
◆ m_trtCrotCnv
◆ m_trtDriftCirclesCnv
◆ m_trtDriftCirclesOTCnv
◆ 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:
virtual void setPStorage(InDet::Track_tlp1 *storage)
CONVERTER_BASE * findConverter(const std::type_info &objTypeInfo) const
Find converter for a given C++ type info.
std::vector< InDet::SCT_ClusterOnTrack_p1 > m_sctClustersOT
std::vector< InDet::CompetingPixelClustersOnTrack_p1 > m_pixelCROTs
virtual unsigned short getConverterID()=0
CompetingSCT_ClustersOnTrackCnv_p1 m_sctCrotCnv
CompetingTRT_DriftCirclesOnTrackCnv_p1 m_trtCrotCnv
std::vector< InDet::SiClusterOnTrack_p1 > m_siClustersOT
std::set< TopLevelTPCnvBase * > m_registeredTLConverters
Set top-level converters from which elemental TP converters were registered.
PixelClusterOnTrackCnv_p1 m_pixelClustersOTCnv
virtual TPCnvTokenList_p1 * getTokenListVar() override
Return the list of tokens to the objects extending the object owned by this converter.
TL_PERS * getTLPersObject()
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
virtual void addTPConverterForReading(ITPConverter *cnv)
Add a TP converter to this top level converter but only for reading.
std::vector< InDet::PixelClusterOnTrack_p1 > m_pixelClustersOT
std::vector< InDet::TRT_DriftCircleOnTrack_p1 > m_trtDriftCirclesOT
SiClusterOnTrackCnv_p1 m_siClustersOTCnv
virtual void clearTLPersObject() override
Discard the persistent object.
TRT_DriftCircleOnTrackCnv_p1 m_trtDriftCirclesOTCnv
virtual void setPStorage(TL_PERS *persObj)=0
A stub for a method that should be provided by the converter creator.
unsigned m_typeIDCount
Counter used to create typed IDs used in the transient Ref.
std::vector< InDet::CompetingTRT_DriftCirclesOnTrack_p1 > m_trtCROTs
TPConverterTypeMap< ITPConverter > m_converters
Map of elemental TP converters indexed by transient typeid - used for writing.
TL_PERS * m_tlPersObject
The persistent object this conveter is working on.
CompetingPixelClustersOnTrackCnv_p1 m_pixelCrotCnv
SCT_ClusterOnTrackCnv_p1 m_sctClustersOTCnv
const boost::regex ref(r_ef)
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.
void addConverter(CONVERTER_BASE *converter, const std::type_info &objTypeInfo)
Add a new converter to the map.
std::vector< InDet::CompetingSCT_ClustersOnTrack_p1 > m_sctCROTs