Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "AthLinks/ElementLink.h"
18 acc(
"originalObjectLink" );
43 std::cerr <<
"xAOD::setOriginalObjectLink ERROR Original object is "
44 <<
"not part of a container" << std::endl;
53 ( acc.isAvailable( original ) ?
85 if( original.
size() !=
copy.size() ) {
86 std::cerr <<
"xAOD::setOriginalObjectLink ERROR Size of original "
87 <<
"and copy containers differs" << std::endl;
94 std::cerr <<
"xAOD::setOriginalObjectLink ERROR Received a view "
95 <<
"container" << std::endl;
114 if( acc.isAvailable( **orig_itr ) ) {
115 for( ; orig_itr != orig_end; ++orig_itr, ++copy_itr ) {
117 acc( **copy_itr ) = acc( **orig_itr );
120 for( ; orig_itr != orig_end; ++orig_itr, ++copy_itr ) {
124 ( *orig_itr )->index() );
143 if( ! acc.isAvailable(
copy ) ) {
Const iterator class for DataVector/DataList.
Helper class to provide type-safe access to aux data.
sgkey_t key() const
Get the key that we reference, as a hash.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Class providing the definition of the 4-vector interface.
bool isValid() const
Test to see if the link can be dereferenced.
(Non-const) Iterator class for DataVector/DataList.
@ OWN_ELEMENTS
this data object owns its elements
const ElementLink< IParticleContainer > & getOriginalObjectLink(const IParticle ©)
This function should be used instead of xAOD::getOriginalObject when we want to use the "original obj...
size_t index() const
Return the index of this element within its container.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
bool setOriginalObjectLink(const IParticle &original, IParticle ©)
This function should be used by CP tools when they make a deep copy of an object in their correctedCo...
SG::OwnershipPolicy ownPolicy() const
Return the ownership policy setting for this container.
const SG::AuxVectorData * container() const
Return the container holding this element.
const IParticle * getOriginalObject(const IParticle ©)
This function can be used to conveniently get a pointer back to the original object from which a copy...
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.