ATLAS Offline Software
|
#include <LinkToTrackParticleBase.h>
Public Types | |
enum | ITrackLinkType { ToxAODTrackParticle = 0, ToxAODNeutralParticle = 1, ToTrack = 2, ToTrackParticleBase = 3 } |
typedef Traits::IndexingPolicy | IndexingPolicy |
The indexing policy. More... | |
typedef IndexingPolicy::index_type | index_type |
The index type presented to and returned from the link. More... | |
typedef Base::sgkey_t | sgkey_t |
Type of hashed keys. More... | |
typedef Base::ID_type | ID_type |
Type of string keys. More... | |
typedef TrackParticleBaseCollection | value_type |
Type of container (storable) and derived types. More... | |
typedef TrackParticleBaseCollection * | pointer |
typedef const TrackParticleBaseCollection * | const_pointer |
typedef const TrackParticleBaseCollection & | BaseConstReference |
typedef const TrackParticleBaseCollection * | BaseConstPointer |
typedef IndexingPolicy::ElementType | ElementType |
Container element and derived types. More... | |
typedef IndexingPolicy::ElementConstReference | ElementConstReference |
typedef IndexingPolicy::ElementConstPointer | ElementConstPointer |
typedef ElementLink< TrackParticleBaseCollection > | self |
Helper definition. More... | |
typedef INDEXING_POLICY::stored_index_type | stored_index_type |
The type of the index as it is stored internally. More... | |
Type definitions taken from the StoreGate-based implementation | |
typedef size_t | index_type |
Type of the index used on the container. More... | |
typedef uint32_t | sgkey_t |
Integer identifier for the object in the event. More... | |
typedef std::string | ID_type |
Type of the "regular" identifiers in the event. More... | |
typedef STORABLE::value_type | value_type |
Type of the values inside the container. More... | |
typedef const TrackParticleBaseCollection & | BaseConstReference |
Constant reference to the container. More... | |
typedef const TrackParticleBaseCollection * | BaseConstPointer |
Constant pointer to the container. More... | |
typedef TypeTools::Copy< value_type >::type | ElementType |
Type of the elements in the container. More... | |
typedef TypeTools::Copy< value_type >::const_reference | ElementConstReference |
Constant reference to an element in the container. More... | |
typedef TypeTools::Copy< value_type >::const_pointer | ElementConstPointer |
Constant pointer to an element in the container. More... | |
typedef STORABLE::const_iterator | const_iterator |
Constant iterator type for the container. More... | |
Type definitions taken from the StoreGate-based implementation | |
typedef size_t | index_type |
Type of the index used on the container. More... | |
typedef uint32_t | sgkey_t |
Integer identifier for the object in the event. More... | |
typedef std::string | ID_type |
Type of the "regular" identifiers in the event. More... | |
typedef STORABLE::value_type | value_type |
Type of the values inside the container. More... | |
typedef const TrackParticleBaseCollection & | BaseConstReference |
Constant reference to the container. More... | |
typedef const TrackParticleBaseCollection * | BaseConstPointer |
Constant pointer to the container. More... | |
typedef TypeTools::Copy< value_type >::type | ElementType |
Type of the elements in the container. More... | |
typedef TypeTools::Copy< value_type >::const_reference | ElementConstReference |
Constant reference to an element in the container. More... | |
typedef TypeTools::Copy< value_type >::const_pointer | ElementConstPointer |
Constant pointer to an element in the container. More... | |
typedef STORABLE::const_iterator | const_iterator |
Constant iterator type for the container. More... | |
Public Member Functions | |
LinkToTrackParticleBase () | |
default constructor (needed for persistency) More... | |
LinkToTrackParticleBase (ElementLink< TrackParticleBaseCollection > &link) | |
constructor with ElementLink More... | |
virtual | ~LinkToTrackParticleBase ()=default |
default destructor More... | |
virtual const TrackParameters * | parameters () const override final |
return the track parameters of the track (to which the EL< TrackParticleBaseCollection > points) More... | |
virtual const NeutralParameters * | neutralParameters () const override final |
return the neutral parameters of the NeutralParticle) More... | |
virtual LinkToTrackParticleBase * | clone () const override final |
method to clone the LinkToTrack object More... | |
virtual ITrackLinkType | type () const override final |
return the type More... | |
index_type | index () const |
Return the index of the link. More... | |
const ID_type & | dataID () const |
Return the SG key that we reference, as a string. More... | |
sgkey_t | key () const |
Return the SG key that we reference, as a hash. More... | |
bool | hasCachedElement () const |
Test to see if this link has a cached element pointer. More... | |
xAOD::TVirtualEvent * | source () const |
Get the data source for the reference. More... | |
IProxyDict * | source () const |
Return the data source for this reference. More... | |
bool | toPersistent () |
Dummy function provinding the offline interface. More... | |
bool | toTransient (IProxyDict *sg=0) |
Finish initialization after link has been read. More... | |
bool | isDefaultIndex () const |
Test the index validity. More... | |
bool | isDefault () const |
Test to see if this link is in the default state. More... | |
const SG::DataProxy * | proxy () const |
Return the SG proxy for the container holding this element. More... | |
bool | thin () |
Adjust for thinning. More... | |
bool | thin (const SG::ThinningCache *thinningCache) |
Adjust for thinning. More... | |
Dereferencing the link. | |
const_pointer | getDataPtr () const |
Return a pointer to the currently-referenced container object. More... | |
pointer | getDataNonConstPtr () |
Return a pointer to the currently-referenced container object. More... | |
DataLink< TrackParticleBaseCollection > | getDataLink () |
Return a link to the currently-referenced container object. More... | |
const DataLink< TrackParticleBaseCollection > | getDataLink () const |
Return a link to the currently-referenced container object. More... | |
BaseConstPointer | getStorableObjectPointer () const |
Return a pointer to the currently-referenced container object. More... | |
BaseConstReference | getStorableObjectRef () const |
Return a reference to the currently-referenced container object. More... | |
ElementConstPointer | cptr () const |
Return a pointer to the referenced element. More... | |
ElementConstReference | operator* () const |
Return a reference to the referenced element. More... | |
ElementConstPointer | operator-> () const |
Return a pointer to the referenced element. More... | |
operator ElementConstPointer () const | |
Convert to a pointer to the referenced element. More... | |
bool | isValid () const |
Test to see if the link can be dereferenced. More... | |
bool | operator! () const |
Test to see if the link can not be dereferenced. More... | |
ElementType | cachedElement () const |
Return the cached element, if any. More... | |
Accessor functions/operators | |
BaseConstPointer | getStorableObjectPointer () const |
Retrieve storable object pointer. More... | |
BaseConstReference | getStorableObjectRef () const |
Retrieve storable object reference. More... | |
ElementConstPointer | cptr () const |
Get a constant pointer to the referenced object. More... | |
ElementConstReference | operator* () const |
Get a reference to the object in question. More... | |
ElementConstPointer | operator-> () const |
Access the object as a smart pointer. More... | |
operator ElementConstPointer () const | |
Auto-convert to the element type. More... | |
bool | isValid () const |
Check if the element can be found. More... | |
bool | operator! () const |
Operator checking the validity of the link. More... | |
ElementType | cachedElement () const |
Access the currently cached element. Doesn't trigger lookup. More... | |
index_type | index () const |
Get the index of the element inside of its container. More... | |
const ID_type & | dataID () const |
Get the key that we reference, as a string. More... | |
sgkey_t | key () const |
Get the key that we reference, as a hash. More... | |
bool | operator== (const ElementLink &rhs) const |
Comparison operator. More... | |
bool | operator!= (const ElementLink &rhs) const |
Comparison operator. More... | |
bool | hasCachedElement () const |
Check if the link has a cached element pointer. More... | |
Setter functions | |
bool | toIndexedElement (BaseConstReference container, index_type index) |
Set link to point to given index (slower) More... | |
bool | toContainedElement (BaseConstReference container, ElementType element) |
Set link to point to given element (slowest) More... | |
bool | setElement (ElementType element) |
Set link to point to an Element (slowest) More... | |
bool | setStorableObject (BaseConstReference data, bool replace=false) |
Set link storable to data object pointed by data (slower) More... | |
void | resetWithKeyAndIndex (const ID_type &key, index_type index, xAOD::TVirtualEvent *event=0) |
Reset with storable key and element index (fast) More... | |
void | resetWithKeyAndIndex (sgkey_t id, index_type index, xAOD::TVirtualEvent *event=0) |
Reset with storable id and element index (fastest) More... | |
void | reset () |
Reset to default state. More... | |
Dereferencing the link. | |
const_pointer | getDataPtr () const |
Return a pointer to the currently-referenced container object. More... | |
pointer | getDataNonConstPtr () |
Return a pointer to the currently-referenced container object. More... | |
DataLink< TrackParticleBaseCollection > | getDataLink () |
Return a link to the currently-referenced container object. More... | |
const DataLink< TrackParticleBaseCollection > | getDataLink () const |
Return a link to the currently-referenced container object. More... | |
BaseConstPointer | getStorableObjectPointer () const |
Return a pointer to the currently-referenced container object. More... | |
BaseConstReference | getStorableObjectRef () const |
Return a reference to the currently-referenced container object. More... | |
ElementConstPointer | cptr () const |
Return a pointer to the referenced element. More... | |
ElementConstReference | operator* () const |
Return a reference to the referenced element. More... | |
ElementConstPointer | operator-> () const |
Return a pointer to the referenced element. More... | |
operator ElementConstPointer () const | |
Convert to a pointer to the referenced element. More... | |
bool | isValid () const |
Test to see if the link can be dereferenced. More... | |
bool | operator! () const |
Test to see if the link can not be dereferenced. More... | |
ElementType | cachedElement () const |
Return the cached element, if any. More... | |
Accessor functions/operators | |
BaseConstPointer | getStorableObjectPointer () const |
Retrieve storable object pointer. More... | |
BaseConstReference | getStorableObjectRef () const |
Retrieve storable object reference. More... | |
ElementConstPointer | cptr () const |
Get a constant pointer to the referenced object. More... | |
ElementConstReference | operator* () const |
Get a reference to the object in question. More... | |
ElementConstPointer | operator-> () const |
Access the object as a smart pointer. More... | |
operator ElementConstPointer () const | |
Auto-convert to the element type. More... | |
bool | isValid () const |
Check if the element can be found. More... | |
bool | operator! () const |
Operator checking the validity of the link. More... | |
ElementType | cachedElement () const |
Access the currently cached element. Doesn't trigger lookup. More... | |
index_type | index () const |
Get the index of the element inside of its container. More... | |
const ID_type & | dataID () const |
Get the key that we reference, as a string. More... | |
sgkey_t | key () const |
Get the key that we reference, as a hash. More... | |
bool | operator== (const ElementLink &rhs) const |
Comparison operator. More... | |
bool | operator!= (const ElementLink &rhs) const |
Comparison operator. More... | |
bool | hasCachedElement () const |
Check if the link has a cached element pointer. More... | |
Setter functions | |
bool | toIndexedElement (BaseConstReference container, index_type index) |
Set link to point to given index (slower) More... | |
bool | toContainedElement (BaseConstReference container, ElementType element) |
Set link to point to given element (slowest) More... | |
bool | setElement (ElementType element) |
Set link to point to an Element (slowest) More... | |
bool | setStorableObject (BaseConstReference data, bool replace=false) |
Set link storable to data object pointed by data (slower) More... | |
void | resetWithKeyAndIndex (const ID_type &key, index_type index, xAOD::TVirtualEvent *event=0) |
Reset with storable key and element index (fast) More... | |
void | resetWithKeyAndIndex (sgkey_t id, index_type index, xAOD::TVirtualEvent *event=0) |
Reset with storable id and element index (fastest) More... | |
void | reset () |
Reset to default state. More... | |
Static Public Member Functions | |
static const CLID & | classID () |
Return the CLID for the class that we reference. More... | |
Public Attributes | |
ROOT_SELECTION_NS::MemberAttributes< kTransient > | m_container |
Mark all transient members: More... | |
ROOT_SELECTION_NS::MemberAttributes< kTransient > | m_element |
ROOT_SELECTION_NS::MemberAttributes< kTransient > | m_elementCached |
ROOT_SELECTION_NS::MemberAttributes< kTransient > | m_event |
ROOT_SELECTION_NS::TRANSIENT | m_proxy |
ROOT_SELECTION_NS::TRANSIENT | m_cacheValid |
Protected Member Functions | |
bool | toIndexedElement (const_pointer_t obj, CLID link_clid, const index_type &elemID, IProxyDict *sg) |
Set the to an element given by index and pointer to container. More... | |
bool | setStorableObject (const_pointer_t data, CLID link_clid, bool replace, IProxyDict *sg) |
Set the container referenced by the link to data . More... | |
void | resetWithKeyAndIndex (const ID_type &dataID, CLID link_clid, const index_type &elemID, IProxyDict *sg) |
Set the link to an element given by string key and index. More... | |
void | resetWithKeyAndIndex (sgkey_t key, CLID link_clid, const index_type &elemID, IProxyDict *sg) |
Set the link to an element given by string key and index. More... | |
void * | storableBase (castfn_t *castfn, const CLID &clid, bool isConst) const |
Return a pointer to the currently-referenced container object. More... | |
void | setIndex (const index_type &index) |
Set the index part of the link. More... | |
const stored_index_type & | storedIndex () const |
Return the stored representation of the link index. More... | |
void | setCachedElement (const ElementType &elt) const |
Set the cached element stored in the link. More... | |
void | storeCachedElement (const ElementType &elt) |
Set the cached element stored in the link. More... | |
bool | getCachedElement (ElementConstPointer &elt) const |
Retrieve the cached element from the link. More... | |
const SG::DataProxyHolder & | proxyHolder () const |
Return the internal proxy holder object. More... | |
Private Types | |
typedef SG::ElementLinkTraits< TrackParticleBaseCollection > | Traits |
Traits class, from which to derive types. More... | |
typedef Traits::Base | Base |
Base class (factoring out code that doesn't directly depend on STORABLE). More... | |
typedef Base::castfn_t | castfn_t |
Function casting from a SG::DataProxy to a pointer. More... | |
typedef ROOT_SELECTION_NS::ElementLink< TrackParticleBaseCollection >::self | DictSel |
Needed to take the Reflex/Cling specifications into account. More... | |
typedef SG::DataProxyHolder::const_pointer_t | const_pointer_t |
Generic pointer to the container (storable). More... | |
Private Member Functions | |
virtual bool | toTransient () |
Reset the object's internal cache. More... | |
void | findIdentifier () |
Find the identifier of the object being pointed to. More... | |
void | findIndex () |
Find the index of an element inside the container. More... | |
template<class INDEX > | |
requires (std::convertible_to< INDEX, size_t > &&std::convertible_to< size_t, INDEX >) bool thin1(INDEX &persIndex | |
Adjust for thinning. More... | |
template<class INDEX > | |
requires (!(std::convertible_to< INDEX, size_t > &&std::convertible_to< size_t, INDEX >)) bool thin1(INDEX &persIndex | |
Adjust for thinning. More... | |
Private Attributes | |
BaseConstPointer | m_container |
Cached pointer to the container. More... | |
ElementType | m_element |
Cached pointer to the object. More... | |
bool | m_elementCached |
Status of the cached pointer. More... | |
xAOD::TVirtualEvent * | m_event |
Pointer to the event object. More... | |
const SG::ThinningCache * | thinningCache |
SG::sgkey_t | m_key |
The hashed key for this link. More... | |
stored_index_type | m_index |
The index of the element within the container for this link. More... | |
SG::DataProxyHolder | m_proxy |
SG proxy for this link. More... | |
Modifying the link. | |
bool | toIndexedElement (BaseConstReference data, index_type elemID, IProxyDict *sg=0) |
Set the link to an element given by index and pointer to container. More... | |
bool | toIndexedElement (BaseConstReference data, index_type elemID, const EventContext &ctx) |
Set the link to an element given by index and pointer to container. More... | |
bool | toContainedElement (BaseConstReference data, ElementType element, IProxyDict *sg=0) |
Set from element pointer and a reference to the container (storable) More... | |
bool | toContainedElement (BaseConstReference data, ElementType element, const EventContext &ctx) |
Set from element pointer and a reference to the container (storable) More... | |
bool | setElement (ElementType element) |
Set to point to an element. More... | |
bool | setStorableObject (BaseConstReference data, bool replace=false, IProxyDict *sg=0) |
Set link to point to a new container (storable). More... | |
bool | setStorableObject (BaseConstReference data, bool replace, const EventContext &ctx) |
Set link to point to a new container (storable). More... | |
void | resetWithKeyAndIndex (const ID_type &dataID, index_type elemID, IProxyDict *sg=0) |
Set the link to an element given by string key and index. More... | |
void | resetWithKeyAndIndex (const ID_type &dataID, index_type elemID, const EventContext &ctx) |
Set the link to an element given by string key and index. More... | |
void | resetWithKeyAndIndex (sgkey_t key, index_type elemID, IProxyDict *sg=0) |
Set the link to an element given by string key and index. More... | |
void | resetWithKeyAndIndex (sgkey_t key, index_type elemID, const EventContext &ctx) |
Set the link to an element given by string key and index. More... | |
const void * | storable () const |
Return a (void) pointer to the currently-referenced container object. More... | |
void * | storableNonConst () |
Return a (void) pointer to the currently-referenced container object. More... | |
Definition at line 14 of file LinkToTrackParticleBase.h.
|
privateinherited |
Base class (factoring out code that doesn't directly depend on STORABLE).
Definition at line 127 of file AthLinks/ElementLink.h.
|
inherited |
Constant pointer to the container.
Definition at line 55 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 151 of file AthLinks/ElementLink.h.
|
inherited |
Constant reference to the container.
Definition at line 53 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 150 of file AthLinks/ElementLink.h.
|
privateinherited |
Function casting from a SG::DataProxy
to a pointer.
Definition at line 130 of file AthLinks/ElementLink.h.
|
inherited |
Constant iterator type for the container.
Definition at line 63 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 149 of file AthLinks/ElementLink.h.
|
privateinherited |
Generic pointer to the container (storable).
Definition at line 84 of file GenericElementLinkBase.h.
|
privateinherited |
Needed to take the Reflex/Cling specifications into account.
Definition at line 209 of file A/AthLinks/ElementLink.h.
|
inherited |
Constant pointer to an element in the container.
Definition at line 72 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 157 of file AthLinks/ElementLink.h.
|
inherited |
Constant reference to an element in the container.
Definition at line 69 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 156 of file AthLinks/ElementLink.h.
|
inherited |
Type of the elements in the container.
Definition at line 66 of file A/AthLinks/ElementLink.h.
|
inherited |
Container element and derived types.
Definition at line 155 of file AthLinks/ElementLink.h.
|
inherited |
Type of the "regular" identifiers in the event.
Definition at line 48 of file A/AthLinks/ElementLink.h.
|
inherited |
Type of string keys.
Definition at line 144 of file AthLinks/ElementLink.h.
|
inherited |
Type of the index used on the container.
Definition at line 58 of file A/AthLinks/ElementLink.h.
|
inherited |
The index type presented to and returned from the link.
Definition at line 138 of file AthLinks/ElementLink.h.
|
inherited |
The indexing policy.
Definition at line 135 of file AthLinks/ElementLink.h.
|
inherited |
Definition at line 148 of file AthLinks/ElementLink.h.
|
inherited |
Helper definition.
Definition at line 232 of file A/AthLinks/ElementLink.h.
|
inherited |
Integer identifier for the object in the event.
Definition at line 50 of file A/AthLinks/ElementLink.h.
|
inherited |
Type of hashed keys.
Definition at line 141 of file AthLinks/ElementLink.h.
|
inherited |
The type of the index as it is stored internally.
Definition at line 92 of file GenericElementLinkBase.h.
|
privateinherited |
Traits class, from which to derive types.
Definition at line 124 of file AthLinks/ElementLink.h.
|
inherited |
Type of the values inside the container.
Definition at line 61 of file A/AthLinks/ElementLink.h.
|
inherited |
Type of container (storable) and derived types.
Definition at line 147 of file AthLinks/ElementLink.h.
|
inherited |
Enumerator | |
---|---|
ToxAODTrackParticle | |
ToxAODNeutralParticle | |
ToTrack | |
ToTrackParticleBase |
Definition at line 29 of file ITrackLink.h.
Trk::LinkToTrackParticleBase::LinkToTrackParticleBase | ( | ) |
default constructor (needed for persistency)
Definition at line 10 of file LinkToTrackParticleBase.cxx.
Trk::LinkToTrackParticleBase::LinkToTrackParticleBase | ( | ElementLink< TrackParticleBaseCollection > & | link | ) |
|
virtualdefault |
default destructor
|
inlineinherited |
Access the currently cached element. Doesn't trigger lookup.
Definition at line 178 of file A/AthLinks/ElementLink.h.
|
inherited |
Return the cached element, if any.
|
staticinherited |
Return the CLID for the class that we reference.
|
finaloverridevirtual |
method to clone the LinkToTrack object
Implements Trk::ITrackLink.
Definition at line 33 of file LinkToTrackParticleBase.cxx.
|
inherited |
Get a constant pointer to the referenced object.
|
inherited |
Return a pointer to the referenced element.
Be aware: if the element is a pointer, then this will yield a pointer to a pointer.
|
inherited |
Return the SG key that we reference, as a string.
Returns a null string on failure.
|
inherited |
Get the key that we reference, as a string.
|
privateinherited |
Find the identifier of the object being pointed to.
|
privateinherited |
Find the index of an element inside the container.
|
protectedinherited |
Retrieve the cached element from the link.
elt[out] | The cached element. |
elt
is left unmodified if there is no cached element.
|
inherited |
Return a link to the currently-referenced container object.
|
inherited |
Return a link to the currently-referenced container object.
|
inherited |
Return a pointer to the currently-referenced container object.
|
inherited |
Return a pointer to the currently-referenced container object.
|
inherited |
Retrieve storable object pointer.
|
inherited |
Return a pointer to the currently-referenced container object.
|
inherited |
Retrieve storable object reference.
|
inherited |
Return a reference to the currently-referenced container object.
|
inherited |
Test to see if this link has a cached element pointer.
|
inlineinherited |
Check if the link has a cached element pointer.
Definition at line 180 of file A/AthLinks/ElementLink.h.
|
inherited |
Return the index of the link.
|
inlineinherited |
Get the index of the element inside of its container.
Definition at line 150 of file A/AthLinks/ElementLink.h.
|
inherited |
Test to see if this link is in the default state.
|
inherited |
Test the index validity.
|
inherited |
Check if the element can be found.
|
inherited |
Test to see if the link can be dereferenced.
Will throw an exception if the container is not empty and the referenced element cannot be retrieved.
|
inherited |
Return the SG key that we reference, as a hash.
Returns 0 on failure.
|
inlineinherited |
Get the key that we reference, as a hash.
Definition at line 155 of file A/AthLinks/ElementLink.h.
|
inlinefinaloverridevirtual |
return the neutral parameters of the NeutralParticle)
Implements Trk::ITrackLink.
Definition at line 34 of file LinkToTrackParticleBase.h.
|
inlineinherited |
|
inherited |
Convert to a pointer to the referenced element.
|
inlineinherited |
Operator checking the validity of the link.
Definition at line 175 of file A/AthLinks/ElementLink.h.
|
inherited |
Test to see if the link can not be dereferenced.
|
inherited |
Comparison operator.
|
inherited |
Get a reference to the object in question.
|
inherited |
Return a reference to the referenced element.
Will throw an exception if the link is not valid.
|
inlineinherited |
|
inherited |
Return a pointer to the referenced element.
|
inherited |
Comparison operator.
|
finaloverridevirtual |
return the track parameters of the track (to which the EL< TrackParticleBaseCollection > points)
Implements Trk::ITrackLink.
Definition at line 20 of file LinkToTrackParticleBase.cxx.
|
inherited |
Return the SG proxy for the container holding this element.
If this is a null link, we return 0. If we're directly referencing an object that's not in StoreGate, either return 0 or throw ExcPointerNotInSG
, depending on nothrow
. Otherwise, return the proxy for the object we're referencing.
|
protectedinherited |
Return the internal proxy holder object.
|
privateinherited |
Adjust for thinning.
If this link points to a container that has been thinned, it will be adjusted accordingly.
Index | of the element. |
thinningCache | Thinning cache for the current stream (may be null). |
Returns true
if the link was changed; false
otherwise.
This overload will be used for the case where thinning is not supported.
|
privateinherited |
Adjust for thinning.
If this link points to a container that has been thinned, it will be adjusted accordingly.
Index | of the element. |
thinningCache | Thinning cache for the current stream (may be null). |
Returns true
if the link was changed; false
otherwise.
This overload will be used for the case where thinning is supported: the index can be interconverted with size_t.
|
inherited |
Reset to default state.
|
protectedinherited |
Set the link to an element given by string key and index.
dataID | Key of the object. |
link_clid | CLID of the link being set. |
elemID | The index of the element within the container. |
sg | Associated store. |
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
inherited |
Set the link to an element given by string key and index.
dataID | Key of the object. |
elemID | The index of the element within the container. |
ctx | The event context. |
|
inherited |
Set the link to an element given by string key and index.
dataID | Key of the object. |
elemID | The index of the element within the container. |
sg | Associated store. |
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
inherited |
Reset with storable key and element index (fast)
|
inherited |
Reset with storable id and element index (fastest)
|
protectedinherited |
Set the link to an element given by string key and index.
key | Hashed key of the object. |
link_clid | CLID of the link being set. |
elemID | The index of the element within the container. |
sg | Associated store. |
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
inherited |
Set the link to an element given by string key and index.
key | Hashed key of the object. |
elemID | The index of the element within the container. |
ctx | The event context. |
|
inherited |
Set the link to an element given by string key and index.
key | Hashed key of the object. |
elemID | The index of the element within the container. |
sg | Associated store. |
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
protectedinherited |
Set the cached element stored in the link.
elt | New value for the cached element. |
|
inherited |
Set link to point to an Element (slowest)
|
inherited |
Set to point to an element.
element | The element. |
The collection and the element can be specified independently using setElement
and setStorableObject
.
If the link is already set, this will return false and leave the link unchanged.
|
protectedinherited |
Set the index part of the link.
index | New index value. |
|
inherited |
Set link to point to a new container (storable).
data | Reference to the container (storable). |
replace | True if we can change an existing link. |
ctx | The event context. |
If the link is already set, this will return false and leave the link unchanged unless replace
is set. The replace
argument should be set if the element is now in a new storable container; e.g. element ptr has been put in a new view container.
|
inherited |
Set link storable to data object pointed by data (slower)
|
inherited |
Set link to point to a new container (storable).
data | Reference to the container (storable). |
replace | True if we can change an existing link. |
sg | Associated store. |
If the link is already set, this will return false and leave the link unchanged unless replace
is set. The replace
argument should be set if the element is now in a new storable container; e.g. element ptr has been put in a new view container.
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
protectedinherited |
Set the container referenced by the link to data
.
data | Pointer to the new container. |
link_clid | CLID of the link being set. |
replace | True if we can change an existing link. |
sg | Associated store. |
If the link is already set, this will return false and leave the link unchanged unless replace
is set. The replace
argument should be set if the element is now in a new storable container; e.g. element ptr has been put in a new view container.
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
inherited |
Return the data source for this reference.
|
inlineinherited |
|
privateinherited |
Return a (void) pointer to the currently-referenced container object.
|
protectedinherited |
Return a pointer to the currently-referenced container object.
castfn | Function to do the cast from data proxy to object. If 0, use a dynamic cast. |
clid | The CLID of the desired object. This is used to determine how the returned pointer is to be converted. |
isConst | True if the returned object will be treated as const. |
|
privateinherited |
Return a (void) pointer to the currently-referenced container object.
|
protectedinherited |
Set the cached element stored in the link.
elt | New value for the cached element. |
|
protectedinherited |
Return the stored representation of the link index.
|
inherited |
Adjust for thinning.
If this link points to a container that has been thinned, it will be adjusted accordingly.
Returns true
if the link was changed; false
otherwise.
|
inherited |
Adjust for thinning.
If this link points to a container that has been thinned, it will be adjusted accordingly.
thinningCache | Thinning cache for the current stream (may be null). |
Returns true
if the link was changed; false
otherwise.
|
inherited |
Set link to point to given element (slowest)
|
inherited |
Set from element pointer and a reference to the container (storable)
data | Reference to the container (storable). |
element | The element. |
ctx | The event context. |
O(N) for sequences!
If the link is already set, this will return false and leave the link unchanged.
|
inherited |
Set from element pointer and a reference to the container (storable)
data | Reference to the container (storable). |
element | The element. |
sg | Associated store. |
O(N) for sequences!
If the link is already set, this will return false and leave the link unchanged.
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
inherited |
Set link to point to given index (slower)
|
inherited |
Set the link to an element given by index and pointer to container.
data | Reference to the container (storable). |
elemID | The index of the element within the container. |
ctx | The event context. |
If the link is already set, this will return false and leave the link unchanged.
|
inherited |
Set the link to an element given by index and pointer to container.
data | Reference to the container (storable). |
elemID | The index of the element within the container. |
sg | Associated store. |
If the link is already set, this will return false and leave the link unchanged.
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
protectedinherited |
Set the to an element given by index and pointer to container.
obj | Pointer to the container (storable). |
link_clid | CLID of the link being set. |
elemID | The index of the element within the container. |
sg | Associated store. |
If the link is already set, this will return false and leave the link unchanged.
If sg
is 0, then we take the store from whatever the link's currently set to. If the link has no current store, then we take the global default.
|
inlineinherited |
Dummy function provinding the offline interface.
Definition at line 188 of file A/AthLinks/ElementLink.h.
|
privatevirtualinherited |
Reset the object's internal cache.
|
inherited |
Finish initialization after link has been read.
sg | Associated store. |
This should be called after a link has been read by root in order to set the proxy pointer. Returns true.
If sg
is 0, then we use the global default store.
|
inlinefinaloverridevirtual |
return the type
Implements Trk::ITrackLink.
Definition at line 39 of file LinkToTrackParticleBase.h.
|
inherited |
Definition at line 563 of file GenericElementLinkBase.h.
|
mutableprivateinherited |
Cached pointer to the container.
Definition at line 199 of file A/AthLinks/ElementLink.h.
|
inherited |
Mark all transient members:
Definition at line 235 of file A/AthLinks/ElementLink.h.
|
mutableprivateinherited |
Cached pointer to the object.
Definition at line 201 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 236 of file A/AthLinks/ElementLink.h.
|
mutableprivateinherited |
Status of the cached pointer.
Definition at line 203 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 237 of file A/AthLinks/ElementLink.h.
|
privateinherited |
Pointer to the event object.
Definition at line 205 of file A/AthLinks/ElementLink.h.
|
inherited |
Definition at line 238 of file A/AthLinks/ElementLink.h.
|
privateinherited |
The index of the element within the container for this link.
Definition at line 538 of file GenericElementLinkBase.h.
|
privateinherited |
The hashed key for this link.
Definition at line 535 of file GenericElementLinkBase.h.
|
privateinherited |
SG proxy for this link.
Definition at line 541 of file GenericElementLinkBase.h.
|
inherited |
Definition at line 562 of file GenericElementLinkBase.h.
|
privateinherited |
Definition at line 505 of file GenericElementLinkBase.h.