ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
xAOD::TrigComposite_v1 Class Reference

Class used to describe composite objects in the HLT. More...

#include <TrigComposite_v1.h>

Inheritance diagram for xAOD::TrigComposite_v1:
Collaboration diagram for xAOD::TrigComposite_v1:

Public Types

using sgkey_t = SG::sgkey_t
 
using index_type = uint32_t
 
using TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor
 
template<class T , class ALLOC = AuxAllocator_t<T>>
using ConstAccessor = SG::ConstAccessor< T, ALLOC >
 
template<class T , class ALLOC = AuxAllocator_t<T>>
using Accessor = SG::Accessor< T, ALLOC >
 
template<class T , class ALLOC = AuxAllocator_t<T>>
using Decorator = SG::Decorator< T, ALLOC >
 

Public Member Functions

 TrigComposite_v1 ()
 Default constructor. More...
 
 TrigComposite_v1 (const TrigComposite_v1 &parent)
 Copy constructor. More...
 
TrigComposite_v1operator= (const TrigComposite_v1 &rhs)
 Assignment operator. More...
 
void assign (const AuxElement &other, bool warnUnlocked=false)
 Assignment. More...
 
const SG::AuxVectorDatacontainer () const
 Return the container holding this element. More...
 
SG::AuxVectorDatacontainer ()
 Return the container holding this element. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type auxdata (const std::string &name)
 Fetch an aux data variable, as a non-const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type auxdata (const std::string &name, const std::string &clsname)
 Fetch an aux data variable, as a non-const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdata (const std::string &name) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdata (const std::string &name, const std::string &clsname) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdataConst (const std::string &name) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdataConst (const std::string &name, const std::string &clsname) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool isAvailable (const std::string &name, const std::string &clsname="") const
 Check if an aux variable is available for reading. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool isAvailableWritable (const std::string &name, const std::string &clsname="")
 Check if an aux variable is available for writing. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool isAvailableWritableAsDecoration (const std::string &name, const std::string &clsname="") const
 Check if an aux variable is available for writing as a decoration. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type auxdecor (const std::string &name) const
 Fetch an aux decoration, as a non-const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type auxdecor (const std::string &name, const std::string &clsname) const
 Fetch an aux decoration, as a non-const reference. More...
 
void makePrivateStore ()
 Create a new (empty) private store for this object. More...
 
template<class U1 >
void makePrivateStore (const U1 &other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data. More...
 
template<class U1 >
void makePrivateStore (const U1 *other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data. More...
 
void releasePrivateStore ()
 Release and free any private store associated with this object. More...
 
void setStore (const SG::IConstAuxStore *store)
 Set the store associated with this object. More...
 
void setStore (SG::IAuxStore *store)
 Set the store associated with this object. More...
 
void setStore (const DataLink< SG::IConstAuxStore > &store)
 Set the store associated with this object. More...
 
void setConstStore (const SG::IConstAuxStore *store)
 Synonym for setStore with IConstAuxStore. More...
 
void setNonConstStore (SG::IAuxStore *store)
 Synonym for setStore with IAuxStore. More...
 
bool usingPrivateStore () const
 Test to see if this object is currently using a private store. More...
 
bool usingStandaloneStore () const
 Test to see if this object is currently using a standalone store. More...
 
const SG::IConstAuxStoregetConstStore () const
 Return the current store, as a const interface. More...
 
SG::IAuxStoregetStore () const
 Return the current store, as a non-const interface. More...
 
void clearCache ()
 Clear the cached aux data pointers. More...
 
const SG::auxid_set_tgetAuxIDs () const
 Return a set of identifiers for existing data items for this object. More...
 
const SG::auxid_set_tgetDecorIDs () const
 Return a set of identifiers for decorations for this object. More...
 
bool hasStore () const
 Return true if this object has an associated store. More...
 
bool hasNonConstStore () const
 Return true if this object has an associated non-const store. More...
 
bool clearDecorations () const
 Clear all decorations. More...
 
bool trackIndices () const
 Return true if index tracking is enabled for this object. More...
 
size_t index () const
 Return the index of this element within its container. More...
 
size_t index () const
 Return the index of this element within its container. More...
 
Basic properties
const std::string & name () const
 Get a human-readable name for the object. More...
 
void setName (const std::string &name)
 Set a human-readable name for the object. More...
 
const std::vector< TrigCompositeUtils::DecisionID > & decisions () const
 Get positive HLT chain decisions associated with this TrigComposite. Navigation use. More...
 
void setDecisions (const std::vector< TrigCompositeUtils::DecisionID > &decisions)
 Set positive HLT chain decisions associated with this TrigComposite. Navigation use. More...
 
Functions for accessing basic properties on the object
template<typename TYPE >
bool hasDetail (const std::string &name) const
 Check if a given type of detail is available. More...
 
template<typename TYPE >
bool setDetail (const std::string &name, const TYPE &value)
 Set an TYPE detail on the object. More...
 
template<typename TYPE >
bool getDetail (const std::string &name, TYPE &value) const
 Get an TYPE detail from the object. More...
 
template<typename TYPE >
TYPE getDetail (const std::string &name) const
 Get a detail by name, missing detail will result on std::runtime_error exception. More...
 
Functions for accessing links to component objects and object collections
template<class CONTAINER >
bool setObjectLink (const std::string &name, const ElementLink< CONTAINER > &link)
 Set the link to an object. More...
 
bool hasObjectLink (const std::string &name, const CLID clid=CLID_NULL) const
 Check if a link to an object with a given name and type exists. CLID_NULL to not check type. More...
 
template<class CONTAINER >
ElementLink< CONTAINER > objectLink (const std::string &name) const
 Get the link with the requested name. More...
 
template<class OBJECT >
const OBJECT * object (const std::string &name) const
 Get a bare pointer with the requested name. More...
 
template<class CONTAINER >
bool addObjectCollectionLink (const std::string &collectionName, const ElementLink< CONTAINER > &link)
 Add a link to a single object within a collection. Performs de-duplication. More...
 
template<class CONTAINER >
bool addObjectCollectionLinks (const std::string &collectionName, const std::vector< ElementLink< CONTAINER >> &links)
 Add links to multiple objects within a collection. Performs de-duplication. More...
 
bool hasObjectCollectionLinks (const std::string &collectionName, const CLID clid=CLID_NULL) const
 Check if links exist to a collection of objects with given name and type. CLID_NULL to not check type. More...
 
template<class CONTAINER >
std::vector< ElementLink< CONTAINER > > objectCollectionLinks (const std::string &collectionName) const
 Get a vector of all element links from the collection. More...
 
void typelessSetObjectLink (const std::string &name, const sgkey_t key, const uint32_t clid, const index_type beginIndex, const index_type endIndex=0)
 Add a link without type. More...
 
bool typelessGetObjectLink (const std::string &name, sgkey_t &key, uint32_t &clid, index_type &index) const
 Fetches a single link without type. More...
 
bool typelessGetObjectCollectionLinks (const std::string &name, std::vector< sgkey_t > &keyVec, std::vector< uint32_t > &clidVec, std::vector< index_type > &indexVec) const
 Fetches a collection of links without type. More...
 
template<class CONTAINER >
std::vector< std::string > getObjectNames () const
 Look up all links stored to objects of (container) type CONTAINER. More...
 
template<class CONTAINER >
std::vector< std::string > getObjectCollectionNames () const
 Look up all links stored to collections objects from (container) type CONTAINER. More...
 
bool removeObjectLink (const std::string &name)
 Delete any stored element link with the given name. More...
 
bool removeObjectCollectionLinks (const std::string &name)
 Delete any stored collection of element links with the given name. More...
 
Functions for copying links between objects
bool copyLinkFrom (const xAOD::TrigComposite_v1 &other, const std::string &name, std::string newName="")
 Copy one named link from another object. More...
 
bool copyLinkFrom (const xAOD::TrigComposite_v1 *other, const std::string &name, std::string newName="")
 
bool copyLinkCollectionFrom (const xAOD::TrigComposite_v1 &other, const std::string &name, std::string newName="")
 Copy one named link collection from another object. More...
 
bool copyLinkCollectionFrom (const xAOD::TrigComposite_v1 *other, const std::string &name, std::string newName="")
 
bool copyAllLinksFrom (const xAOD::TrigComposite_v1 &other)
 Copy all single links and collections of links from another object. More...
 
bool copyAllLinksFrom (const xAOD::TrigComposite_v1 *other)
 
Functions for accessing raw data used to construct ElementLinks
const std::vector< std::string > & linkColNames () const
 Raw access to the persistent link names. More...
 
const std::vector< sgkey_t > & linkColKeys () const
 Raw access to the persistent link labels. More...
 
const std::vector< index_type > & linkColIndices () const
 Raw access to the persistent link indices. More...
 
const std::vector< uint32_t > & linkColClids () const
 Raw access to the persistent link CLIDs. More...
 
bool isRemapped () const
 Information on if linkColKeys() and linkColIndices() are able to access remapped link data Remapping happens at the end of HLT execution when EDM objects are copied out of their per-EventView containers and into the global Trigger EDM containers. More...
 
const std::vector< sgkey_t > & linkColKeysRemap () const
 Raw access to the persistent link labels. Will attempt to access remapped link data. More...
 
const std::vector< index_type > & linkColIndicesRemap () const
 Raw access to the persistent link indices. Will attempt to access remapped link data. More...
 

Static Public Attributes

static bool s_throwOnCopyError ATLAS_THREAD_SAFE
 For use in validation, when copying element links from one object to another. More...
 
static const std::string s_initialRoIString {"initialRoI"}
 Constant used to identify an initial ROI from L1. More...
 
static const std::string s_initialRecRoIString {"initialRecRoI"}
 Constant used to identify an initial HLT ROI derived from L1. More...
 
static const std::string s_roiString {"roi"}
 Constant used to identify an (explicitly) updated HLT ROI. More...
 
static const std::string s_viewString {"view"}
 Constant used to identify a view. More...
 
static const std::string s_featureString {"feature"}
 Constant used to identify a feature. More...
 
static const std::string s_seedString {"seed"}
 Constant used to identify a seed (parent) More...
 
static const std::string s_hltSeedingNodeNameString {"L1"}
 Constant used to identify a navigation graph node as being from the HLTSeeding. More...
 
static const std::string s_filterNodeNameString {"F"}
 Constant used to identify a navigation graph node as being from a Filter. More...
 
static const std::string s_inputMakerNodeNameString {"IM"}
 Constant used to identify a navigation graph node as being from a Input Maker. More...
 
static const std::string s_hypoAlgNodeNameString {"H"}
 Constant used to identify a navigation graph node as being from a Hypo Alg. More...
 
static const std::string s_comboHypoAlgNodeNameString {"CH"}
 Constant used to identify a navigation graph node as being from a Combo Hypo Alg. More...
 
static const std::string s_summaryFilterNodeNameString {"SF"}
 Constant used to identify a navigation graph node as being from a final Filter created by the DecisionSummaryMaker algorithm. More...
 
static const std::string s_summaryPassNodeNameString {"HLTPassRaw"}
 Constant used to identify the single terminus graph node the end point of all chains which accept the event. More...
 
static const std::string s_summaryPassExpressNodeNameString {"HLTPassExpress"}
 Constant used to identify the single express-accept graph node. More...
 
static const std::string s_summaryPrescaledNodeNameString {"HLTPrescaled"}
 Constant used to identify the single prescaled graph node. More...
 
static constexpr bool supportsThinning = true
 Mark that this type supports thinning operations. More...
 

Protected Member Functions

bool noPrivateData () const
 True if this element has no private data. More...
 
bool havePrivateData () const
 True if this element currently has private data. More...
 
bool hadPrivateData () const
 True if this element had private data before it was added to its current container. More...
 

Private Types

enum  PrivateStoreState : uint8_t { PrivateStoreState::NO_PRIVATE = 0, PrivateStoreState::HAVE_PRIVATE = 1, PrivateStoreState::HAD_PRIVATE = 2 }
 The current private data state. More...
 

Private Member Functions

std::vector< std::string > & linkColNamesNC ()
 Raw access to the persistent link names (non-const) More...
 
std::vector< sgkey_t > & linkColKeysNC ()
 Raw access to the persistent link labels (non-const) More...
 
std::vector< index_type > & linkColIndicesNC ()
 Raw access to the persistent link indices (non-const) More...
 
std::vector< uint32_t > & linkColClidsNC ()
 Raw access to the persistent link CLIDs (non-const) More...
 
bool hasObjectLinkExact (const std::string &name, const sgkey_t key, const index_type index, const uint32_t clid) const
 
void copyLinkInternal (const xAOD::TrigComposite_v1 &other, const size_t index, const std::string &newName)
 Helper function, copy one link into this object. More...
 
bool derivesFromIParticle (const CLID clid) const
 Helper function. Check if the requested type can be down cast to an IParticle transient interface. More...
 
template<class CONTAINER >
void checkTypes (const CLID storedCLID, const std::string &name) const
 Helper function. Contains type logic check for use during actual link retrieval. Throws on error. More...
 
void releasePrivateStoreForDtor ()
 Out-of-line portion of destructor. More...
 
void setIndex (size_t index, SG::AuxVectorData *container)
 Set the index/container for this element. More...
 
bool setIndexPrivate (size_t index, SG::AuxVectorData *container)
 Set the index/container for this element. More...
 
void makePrivateStore1 (const void *other, bool warnUnlocked)
 Create a new private store for this object and copy aux data. More...
 
void makePrivateStore1 (const AuxElement *other, bool warnUnlocked)
 Create a new private store for this object and copy aux data. More...
 
AuxElementStandaloneData * setStore1 (const SG::IConstAuxStore *store)
 Set the store associated with this object. More...
 
void clearAux ()
 Clear all aux data associated with this element. More...
 
void copyAux (const ConstAuxElement &other, bool warnUnlocked=false)
 Copy aux data from another object. More...
 
void setNoPrivateData ()
 Record that this element does not have private data. More...
 
void setHavePrivateData ()
 Record that this element currently has private data. More...
 
void setHadPrivateData ()
 Record that this element used to have private data. More...
 

Private Attributes

const SG::AuxVectorDatam_container
 The container of which this object is an element. More...
 
size_t m_index
 The index of this element within its container. More...
 
PrivateStoreState m_privateStoreState
 

Static Private Attributes

static const std::string s_collectionSuffix {"__COLL"}
 

Detailed Description

Class used to describe composite objects in the HLT.

This is a generic class for describing the output of high-level HLT algorithms that combine lower-level objects into one.

Author
Tomasz Bold Tomas.nosp@m.z.Bo.nosp@m.ld@ce.nosp@m.rn.c.nosp@m.h
Camille Belanger-Champagne Camil.nosp@m.le.B.nosp@m.elang.nosp@m.er-C.nosp@m.hampa.nosp@m.gne@.nosp@m.cern..nosp@m.ch
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
784388
Date
2016-11-15 18:08:58 +0100 (Tue, 15 Nov 2016)

Definition at line 52 of file TrigComposite_v1.h.

Member Typedef Documentation

◆ Accessor

template<class T , class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::Accessor = SG::Accessor<T, ALLOC>
inherited

Definition at line 572 of file AuxElement.h.

◆ ConstAccessor

template<class T , class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::ConstAccessor = SG::ConstAccessor<T, ALLOC>
inherited

Definition at line 569 of file AuxElement.h.

◆ Decorator

template<class T , class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::Decorator = SG::Decorator<T, ALLOC>
inherited

Definition at line 575 of file AuxElement.h.

◆ index_type

Definition at line 56 of file TrigComposite_v1.h.

◆ sgkey_t

Definition at line 55 of file TrigComposite_v1.h.

◆ TypelessConstAccessor

using SG::AuxElement::TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor
inherited

Definition at line 566 of file AuxElement.h.

Member Enumeration Documentation

◆ PrivateStoreState

enum SG::IAuxElement::PrivateStoreState : uint8_t
strongprivateinherited

The current private data state.

Enumerator
NO_PRIVATE 
HAVE_PRIVATE 
HAD_PRIVATE 

Definition at line 131 of file IAuxElement.h.

132  {
133  NO_PRIVATE = 0,
134  HAVE_PRIVATE = 1,
135  HAD_PRIVATE = 2,
136  };

Constructor & Destructor Documentation

◆ TrigComposite_v1() [1/2]

xAOD::TrigComposite_v1::TrigComposite_v1 ( )

Default constructor.

Definition at line 74 of file TrigComposite_v1.cxx.

74  {
75  }

◆ TrigComposite_v1() [2/2]

xAOD::TrigComposite_v1::TrigComposite_v1 ( const TrigComposite_v1 parent)

Copy constructor.

Definition at line 77 of file TrigComposite_v1.cxx.

78  this->makePrivateStore( parent );
79  }

Member Function Documentation

◆ addObjectCollectionLink()

template<class CONTAINER >
bool xAOD::TrigComposite_v1::addObjectCollectionLink ( const std::string &  collectionName,
const ElementLink< CONTAINER > &  link 
)

Add a link to a single object within a collection. Performs de-duplication.

◆ addObjectCollectionLinks()

template<class CONTAINER >
bool xAOD::TrigComposite_v1::addObjectCollectionLinks ( const std::string &  collectionName,
const std::vector< ElementLink< CONTAINER >> &  links 
)

Add links to multiple objects within a collection. Performs de-duplication.

◆ assign()

void SG::AuxElement::assign ( const AuxElement other,
bool  warnUnlocked = false 
)
inherited

Assignment.

Parameters
otherThe object from which we're assigning.
warnUnlockedIf true, then warn when we skip unlocked decorations.

We don't copy container/index, as assignment doesn't change where this object is. However, if we have aux data, then we copy aux data if we're copying from an object that also has it; otherwise, if we're copying from an object with no aux data, then we clear ours.

◆ auxdata() [1/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::reference_type SG::AuxElement::auxdata ( const std::string &  name)
inherited

Fetch an aux data variable, as a non-const reference.

Parameters
nameName of the aux variable.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

◆ auxdata() [2/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdata ( const std::string &  name) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor or ConstAccessor classes.

◆ auxdata() [3/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::reference_type SG::AuxElement::auxdata ( const std::string &  name,
const std::string &  clsname 
)
inherited

Fetch an aux data variable, as a non-const reference.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

◆ auxdata() [4/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdata ( const std::string &  name,
const std::string &  clsname 
) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor or ConstAccessor classes.

◆ auxdataConst() [1/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdataConst ( const std::string &  name) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor class.

◆ auxdataConst() [2/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdataConst ( const std::string &  name,
const std::string &  clsname 
) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor class.

◆ auxdecor() [1/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator<T, ALLOC>::reference_type SG::AuxElement::auxdecor ( const std::string &  name) const
inherited

Fetch an aux decoration, as a non-const reference.

Parameters
nameName of the aux variable.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.

◆ auxdecor() [2/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator<T, ALLOC>::reference_type SG::AuxElement::auxdecor ( const std::string &  name,
const std::string &  clsname 
) const
inherited

Fetch an aux decoration, as a non-const reference.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.

◆ checkTypes()

template<class CONTAINER >
void xAOD::TrigComposite_v1::checkTypes ( const CLID  storedCLID,
const std::string &  name 
) const
private

Helper function. Contains type logic check for use during actual link retrieval. Throws on error.

◆ clearAux()

void SG::AuxElement::clearAux ( )
privateinherited

Clear all aux data associated with this element.

If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData.

Definition at line 580 of file AuxElement.cxx.

581 {
582  if (!m_container) return;
583  if (!m_container->hasStore()) return;
585  throw SG::ExcConstAuxData ("clearAux", SG::null_auxid);
586 
588  for (SG::auxid_t auxid : m_container->getWritableAuxIDs()) {
589  r.clear (auxid, *container(), index(), 1);
590  }
591 }

◆ clearCache()

void SG::AuxElement::clearCache ( )
inherited

Clear the cached aux data pointers.

You should call this any time something changes in the aux store that could invalidate the vector pointers.

Definition at line 339 of file AuxElement.cxx.

340 {
341  if (container())
342  container()->clearCache();
343 }

◆ clearDecorations()

bool SG::AuxElement::clearDecorations ( ) const
inherited

Clear all decorations.

Erase all decorations from an associated store, restoring the state to when lock was called.

Returns true if there were any decorations that were cleared, false if the store did not contain any decorations.

Definition at line 428 of file AuxElement.cxx.

429 {
430  if (havePrivateData())
431  return m_container->clearDecorations();
432  return false;
433 }

◆ container() [1/2]

SG::AuxVectorData* SG::AuxElement::container ( )
inherited

Return the container holding this element.

◆ container() [2/2]

const SG::AuxVectorData* SG::AuxElement::container ( ) const
inherited

Return the container holding this element.

◆ copyAllLinksFrom() [1/2]

bool xAOD::TrigComposite_v1::copyAllLinksFrom ( const xAOD::TrigComposite_v1 other)

Copy all single links and collections of links from another object.

Will not overwrite existing links, or link collections, or append to existing link collections.

Parameters
otherTrigComposite object to copy all links and link collections from, which do not already exist.
Returns
True on successful copy of at least one link

Definition at line 177 of file TrigComposite_v1.cxx.

177  {
178  bool didCopy = false;
179  for (const std::string& name : other.linkColNames()) {
180  // Check we don't have one (or more) entries with this raw name (raw = might be mangled).
181  if (this->hasObjectLink(name)) continue;
182  // Check if the link is for a single object or collection of objects by looking for the mangled suffix
183  const bool isCollection = (name.size() > s_collectionSuffix.size() &&
184  std::equal(s_collectionSuffix.rbegin(), s_collectionSuffix.rend(), name.rbegin()));
185  if (isCollection) {
186  // The copyLinkCollectionFrom call needs the un-mangled name as it is a public fn. It will re-mangle.
187  const std::string unmangledName = name.substr(0, name.size() - s_collectionSuffix.size());
188  copyLinkCollectionFrom(other, unmangledName);
189  } else { // !isCollection
191  }
192  didCopy = true;
193  }
194  return didCopy;
195  }

◆ copyAllLinksFrom() [2/2]

bool xAOD::TrigComposite_v1::copyAllLinksFrom ( const xAOD::TrigComposite_v1 other)

Definition at line 197 of file TrigComposite_v1.cxx.

197  {
198  return copyAllLinksFrom(*other);
199  }

◆ copyAux()

void SG::AuxElement::copyAux ( const ConstAuxElement other,
bool  warnUnlocked = false 
)
privateinherited

Copy aux data from another object.

Parameters
otherThe object from which to copy.
warnUnlockedIf true, then warn when we skip unlocked decorations.

If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData.

All aux data items from other are copied to this object. Any aux data items associated with this object that are not present in other are cleared. (If other has no aux data, then all aux data items for this object are cleared.)

Definition at line 607 of file AuxElement.cxx.

609 {
610  if (!m_container) return;
611  if (!m_container->hasStore()) return;
613  throw SG::ExcConstAuxData ("copyAux");
614 
615  const SG::AuxVectorData* ocont = other.container();
616 
617  if (!ocont || !ocont->hasStore()) {
618  this->clearAux();
619  return;
620  }
621 
622  size_t oindex = other.index();
623  SG::auxid_set_t other_ids = ocont->getAuxIDs();
624 #ifndef XAOD_STANDALONE
625  SG::auxid_set_t other_decors = ocont->getDecorIDs();
626 #endif
627 
629 
630  SG::AuxVectorData& cont = *container();
631  for (SG::auxid_t auxid : other_ids) {
632 #ifndef XAOD_STANDALONE
633  if (other_decors.test (auxid)) {
634  // Don't copy decorations --- another thread may be modifying them.
635  other_ids.reset (auxid);
636  // Warn if we skip a decoration (except for mcEventWeights,
637  // for which this is expected).
638  if (warnUnlocked && r.getName(auxid) != "mcEventWeights") {
639  std::ostringstream ss;
640  ss << "skipped unlocked decoration " << r.getName(auxid)
641  << " (" << auxid << ")";
642  ATHCONTAINERS_WARNING("copyAux", ss.str());
643  }
644  }
645  else
646 #endif
647  if (!r.isLinked (auxid)) {
648  r.copy (auxid, cont, index(), *ocont, oindex, 1);
649  }
650  }
651 
652  for (SG::auxid_t auxid : m_container->getWritableAuxIDs()) {
653  if (!other_ids.test (auxid)) {
654  r.clear (auxid, cont, index(), 1);
655  }
656  }
657 }

◆ copyLinkCollectionFrom() [1/2]

bool xAOD::TrigComposite_v1::copyLinkCollectionFrom ( const xAOD::TrigComposite_v1 other,
const std::string &  name,
std::string  newName = "" 
)

Copy one named link collection from another object.

Will not overwrite or append to an existing collection of links

Parameters
otherTrigComposite object to copy the link collection from
nameName of link collection
newNameOptional parameter to rename the link collection during the copy
Returns
True on successful copy

Definition at line 148 of file TrigComposite_v1.cxx.

148  {
149  bool didCopy = false;
150  // Check for the existence of a collection.
151  if (newName.empty()) {
152  newName = name;
153  }
154  const std::string mangledName = name + s_collectionSuffix;
155  const std::string mangledNewName = newName + s_collectionSuffix;
156  if (other.hasObjectLink(mangledName)) {
157  if (this->hasObjectLink(mangledNewName)) {
158  if (s_throwOnCopyError) throw std::runtime_error("Already have link collection with name " + newName);
159  } else {
160  // Copy all links in the collection. Just iterating through the source vector
161  for (size_t index = 0; index < other.linkColNames().size(); ++index) {
162  if (other.linkColNames().at(index) == mangledName) {
163  copyLinkInternal(other, index, mangledNewName);
164  }
165  }
166  didCopy = true;
167  }
168  }
169  if (!didCopy && s_throwOnCopyError) throw std::runtime_error("Could not find link with name " + name);
170  return didCopy;
171  }

◆ copyLinkCollectionFrom() [2/2]

bool xAOD::TrigComposite_v1::copyLinkCollectionFrom ( const xAOD::TrigComposite_v1 other,
const std::string &  name,
std::string  newName = "" 
)

Definition at line 173 of file TrigComposite_v1.cxx.

173  {
174  return copyLinkCollectionFrom(*other, name, std::move(newName));
175  }

◆ copyLinkFrom() [1/2]

bool xAOD::TrigComposite_v1::copyLinkFrom ( const xAOD::TrigComposite_v1 other,
const std::string &  name,
std::string  newName = "" 
)

Copy one named link from another object.

Will not overwrite an existing link

Parameters
otherTrigComposite object to copy the link from
nameName of link to copy
newNameOptional parameter to rename the link during the copy
Returns
True on successful copy

Definition at line 123 of file TrigComposite_v1.cxx.

123  {
124  if (newName.empty()) {
125  newName = name;
126  }
127  bool didCopy = false;
128  // Check for the existence of single link
129  std::vector<std::string>::const_iterator locationIt;
130  locationIt = std::find(other.linkColNames().begin(), other.linkColNames().end(), name);
131  if (locationIt != other.linkColNames().end()) {
132  size_t index = std::distance(other.linkColNames().begin(), locationIt);
133  if (this->hasObjectLink(newName)) {
134  if (s_throwOnCopyError) throw std::runtime_error("Already have link with name " + newName);
135  } else {
137  didCopy = true;
138  }
139  }
140  if (!didCopy && s_throwOnCopyError) throw std::runtime_error("Could not find link with name " + name);
141  return didCopy;
142  }

◆ copyLinkFrom() [2/2]

bool xAOD::TrigComposite_v1::copyLinkFrom ( const xAOD::TrigComposite_v1 other,
const std::string &  name,
std::string  newName = "" 
)

Definition at line 144 of file TrigComposite_v1.cxx.

144  {
145  return copyLinkFrom(*other, name, std::move(newName));
146  }

◆ copyLinkInternal()

setDecisions void xAOD::TrigComposite_v1::copyLinkInternal ( const xAOD::TrigComposite_v1 other,
const size_t  index,
const std::string &  newName 
)
private

Helper function, copy one link into this object.

Definition at line 111 of file TrigComposite_v1.cxx.

111  {
112  this->linkColNamesNC().push_back( newName );
113  this->linkColClidsNC().push_back( other.linkColClids().at(index) );
114  if (other.isRemapped()) {
115  this->linkColKeysNC().push_back( other.linkColKeysRemap().at(index) );
116  this->linkColIndicesNC().push_back( other.linkColIndicesRemap().at(index) );
117  } else {
118  this->linkColKeysNC().push_back( other.linkColKeys().at(index) );
119  this->linkColIndicesNC().push_back( other.linkColIndices().at(index) );
120  }
121  }

◆ decisions()

const std::vector<TrigCompositeUtils::DecisionID>& xAOD::TrigComposite_v1::decisions ( ) const

Get positive HLT chain decisions associated with this TrigComposite. Navigation use.

◆ derivesFromIParticle()

bool xAOD::TrigComposite_v1::derivesFromIParticle ( const CLID  clid) const
private

Helper function. Check if the requested type can be down cast to an IParticle transient interface.

Definition at line 292 of file TrigComposite_v1.cxx.

292  {
293 #ifndef XAOD_STANDALONE
294  const SG::BaseInfoBase* bib = SG::BaseInfoBase::find (clid);
295  if (bib) {
297  }
298  // No base info available means we never called any of the macros declaring bases so it's
299  // likely that the clid doesn't inherit from IParticle...
300  return false;
301 #endif
302  return true;
303  }

◆ getAuxIDs()

const SG::auxid_set_t & SG::AuxElement::getAuxIDs ( ) const
inherited

Return a set of identifiers for existing data items for this object.

If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.

Definition at line 355 of file AuxElement.cxx.

356 {
357 #ifdef ATHCONTAINERS_R21_COMPAT
358  if (havePrivateData())
359  return m_container->getConstStore()->getAuxIDs();
360  if (container())
361  return container()->getAuxIDs();
362  static const SG::auxid_set_t null_set;
363  return null_set;
364 #else
366 #endif
367 }

◆ getConstStore()

const SG::IConstAuxStore * SG::AuxElement::getConstStore ( ) const
inherited

Return the current store, as a const interface.

This will be non-zero if either a const or non-const store is associated with this object. This will fetch either a private or standalone store.

Definition at line 304 of file AuxElement.cxx.

305 {
306  if (havePrivateData()) {
307  return m_container->getConstStore();
308  }
309  return 0;
310 }

◆ getDecorIDs()

const SG::auxid_set_t & SG::AuxElement::getDecorIDs ( ) const
inherited

Return a set of identifiers for decorations for this object.

   If this object has a private or standalone store, then information
   from that will be returned.  Otherwise, if this element
   is part of a container, then information for the container
   will be returned.  Otherwise, return an empty set.

Definition at line 378 of file AuxElement.cxx.

379 {
380 #ifdef ATHCONTAINERS_R21_COMPAT
381  if (havePrivateData())
383  if (container())
384  return container()->getDecorIDs();
385  static const SG::auxid_set_t null_set;
386  return null_set;
387 #else
389 #endif
390 }

◆ getDetail() [1/2]

template<typename TYPE >
TYPE xAOD::TrigComposite_v1::getDetail ( const std::string &  name) const

Get a detail by name, missing detail will result on std::runtime_error exception.

◆ getDetail() [2/2]

template<typename TYPE >
bool xAOD::TrigComposite_v1::getDetail ( const std::string &  name,
TYPE value 
) const

Get an TYPE detail from the object.

◆ getObjectCollectionNames()

template<class CONTAINER >
std::vector<std::string> xAOD::TrigComposite_v1::getObjectCollectionNames ( ) const

Look up all links stored to collections objects from (container) type CONTAINER.

Returns
Vector of names to all collections of links to objects

◆ getObjectNames()

template<class CONTAINER >
std::vector<std::string> xAOD::TrigComposite_v1::getObjectNames ( ) const

Look up all links stored to objects of (container) type CONTAINER.

Returns
Vector of names to all links to objects

◆ getStore()

SG::IAuxStore * SG::AuxElement::getStore ( ) const
inherited

Return the current store, as a non-const interface.

This will be non-zero if a non-const store is associated with this object. This will fetch either a private or standalone store.

Definition at line 319 of file AuxElement.cxx.

320 {
321  if (havePrivateData()) {
322 #ifdef ATHCONTAINERS_R21_COMPAT
324 #else
325  SG::AuxVectorData* container_nc ATLAS_THREAD_SAFE = const_cast<SG::AuxVectorData*>(container());
326 #endif
327  return container_nc->getStore();
328  }
329  return 0;
330 }

◆ hadPrivateData()

bool SG::IAuxElement::hadPrivateData ( ) const
protectedinherited

True if this element had private data before it was added to its current container.

◆ hasDetail()

template<typename TYPE >
bool xAOD::TrigComposite_v1::hasDetail ( const std::string &  name) const

Check if a given type of detail is available.

◆ hasNonConstStore()

bool SG::AuxElement::hasNonConstStore ( ) const
inherited

Return true if this object has an associated non-const store.

This will be true for either a private or standalone store.

Definition at line 411 of file AuxElement.cxx.

412 {
413  if (havePrivateData())
414  return m_container->hasNonConstStore();
415  return false;
416 }

◆ hasObjectCollectionLinks()

bool xAOD::TrigComposite_v1::hasObjectCollectionLinks ( const std::string &  collectionName,
const CLID  clid = CLID_NULL 
) const

Check if links exist to a collection of objects with given name and type. CLID_NULL to not check type.

Definition at line 275 of file TrigComposite_v1.cxx.

275  {
276  const std::string mangledName = collectionName + s_collectionSuffix;
277  return hasObjectLink( mangledName, clid );
278  }

◆ hasObjectLink()

bool xAOD::TrigComposite_v1::hasObjectLink ( const std::string &  name,
const CLID  clid = CLID_NULL 
) const

Check if a link to an object with a given name and type exists. CLID_NULL to not check type.

Definition at line 246 of file TrigComposite_v1.cxx.

246  {
247 
248  // Since this function shouldn't throw exceptions too easily,
249  // let's be super careful here...
250  if( ! (acc_linkColNames.isAvailable( *this ) || acc_linkColClids.isAvailable( *this) ) ) {
251  return false;
252  }
253 
254  // The check itself is pretty simple:
255  const std::vector< std::string >& names = acc_linkColNames( *this );
256  const std::vector< uint32_t >& clids = acc_linkColClids( *this );
257 
258  std::vector<std::string>::const_iterator vecIt = std::find( names.begin(), names.end(), name );
259  if (vecIt == names.end()) {
260  return false; // Could not find name
261  }
262 
263  if (clid != CLID_NULL) { // Also check against clid
264  const uint32_t storedCLID = clids.at( std::distance( names.begin(), vecIt ) );
266  return derivesFromIParticle(storedCLID);
267  } else if (storedCLID != clid) { // Otherwise we require the ID to match
268  return false; // Type missmatch
269  }
270  }
271 
272  return true; // Satisfied
273  }

◆ hasObjectLinkExact()

bool xAOD::TrigComposite_v1::hasObjectLinkExact ( const std::string &  name,
const sgkey_t  key,
const index_type  index,
const uint32_t  clid 
) const
private

Definition at line 281 of file TrigComposite_v1.cxx.

281  {
282  for (size_t i = 0; i < this->linkColNames().size(); ++i) {
283  if (this->linkColNames().at(i) != name) continue;
284  if (!SG::sgkeyEqual (this->linkColKeys().at(i), key)) continue;
285  if (this->linkColIndices().at(i) != index) continue;
286  if (this->linkColClids().at(i) != clid) continue;
287  return true;
288  }
289  return false;
290  }

◆ hasStore()

bool SG::AuxElement::hasStore ( ) const
inherited

Return true if this object has an associated store.

This will be true for either a private or standalone store.

Definition at line 398 of file AuxElement.cxx.

399 {
400  if (havePrivateData())
401  return m_container->hasStore();
402  return false;
403 }

◆ havePrivateData()

bool SG::IAuxElement::havePrivateData ( ) const
protectedinherited

True if this element currently has private data.

◆ index() [1/2]

size_t SG::IAuxElement::index ( ) const
inherited

Return the index of this element within its container.

◆ index() [2/2]

size_t SG::IAuxElement::index
inherited

Return the index of this element within its container.

Inherited from IAuxElement.

◆ isAvailable()

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailable ( const std::string &  name,
const std::string &  clsname = "" 
) const
inherited

Check if an aux variable is available for reading.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

◆ isAvailableWritable()

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailableWritable ( const std::string &  name,
const std::string &  clsname = "" 
)
inherited

Check if an aux variable is available for writing.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

◆ isAvailableWritableAsDecoration()

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailableWritableAsDecoration ( const std::string &  name,
const std::string &  clsname = "" 
) const
inherited

Check if an aux variable is available for writing as a decoration.

Parameters
nameName of the aux variable.
clsnameThe name of the associated class. May be blank.

This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor class.

◆ isRemapped()

bool xAOD::TrigComposite_v1::isRemapped ( ) const

Information on if linkColKeys() and linkColIndices() are able to access remapped link data Remapping happens at the end of HLT execution when EDM objects are copied out of their per-EventView containers and into the global Trigger EDM containers.

Definition at line 454 of file TrigComposite_v1.cxx.

454  {
455  size_t nDecorations = 0;
456  if (acc_remap_linkColKeys.isAvailable( *this )) ++nDecorations;
457  if (acc_remap_linkColIndices.isAvailable( *this )) ++nDecorations;
458  if (nDecorations == 1) {
459  throw std::runtime_error("TrigComposite_v1::isRemapped Only one of the 'remap_linkColKeys' and 'remap_linkColIndices' "
460  "decorations were found on this object. This should never happen, a remapped element link must have both of these collections.");
461  }
462  return static_cast<bool>(nDecorations); //0=False, 2=True
463  }

◆ linkColClids()

const std::vector< uint32_t >& xAOD::TrigComposite_v1::linkColClids ( ) const

Raw access to the persistent link CLIDs.

◆ linkColClidsNC()

std::vector< uint32_t > & xAOD::TrigComposite_v1::linkColClidsNC ( )
private

Raw access to the persistent link CLIDs (non-const)

Definition at line 340 of file TrigComposite_v1.cxx.

340  {
341  return acc_linkColClids( *this );
342  }

◆ linkColIndices()

const std::vector< TrigComposite_v1::index_type > & xAOD::TrigComposite_v1::linkColIndices ( ) const

Raw access to the persistent link indices.

Definition at line 314 of file TrigComposite_v1.cxx.

314  {
315  return acc_linkColIndices( *this );
316  }

◆ linkColIndicesNC()

std::vector< TrigComposite_v1::index_type > & xAOD::TrigComposite_v1::linkColIndicesNC ( )
private

Raw access to the persistent link indices (non-const)

Definition at line 336 of file TrigComposite_v1.cxx.

336  {
337  return acc_linkColIndices( *this );
338  }

◆ linkColIndicesRemap()

const std::vector< TrigComposite_v1::index_type > & xAOD::TrigComposite_v1::linkColIndicesRemap ( ) const

Raw access to the persistent link indices. Will attempt to access remapped link data.

Definition at line 322 of file TrigComposite_v1.cxx.

322  {
323  return acc_remap_linkColIndices( *this );
324  }

◆ linkColKeys()

linkColClids const std::vector< SG::sgkey_t > & xAOD::TrigComposite_v1::linkColKeys ( ) const

Raw access to the persistent link labels.

Definition at line 310 of file TrigComposite_v1.cxx.

310  {
311  return acc_linkColKeys( *this );
312  }

◆ linkColKeysNC()

std::vector< SG::sgkey_t > & xAOD::TrigComposite_v1::linkColKeysNC ( )
private

Raw access to the persistent link labels (non-const)

Definition at line 332 of file TrigComposite_v1.cxx.

332  {
333  return acc_linkColKeys( *this );
334  }

◆ linkColKeysRemap()

const std::vector< SG::sgkey_t > & xAOD::TrigComposite_v1::linkColKeysRemap ( ) const

Raw access to the persistent link labels. Will attempt to access remapped link data.

Definition at line 318 of file TrigComposite_v1.cxx.

318  {
319  return acc_remap_linkColKeys( *this );
320  }

◆ linkColNames()

const std::vector< std::string >& xAOD::TrigComposite_v1::linkColNames ( ) const

Raw access to the persistent link names.

◆ linkColNamesNC()

std::vector< std::string > & xAOD::TrigComposite_v1::linkColNamesNC ( )
private

Raw access to the persistent link names (non-const)

Definition at line 328 of file TrigComposite_v1.cxx.

328  {
329  return acc_linkColNames( *this );
330  }

◆ makePrivateStore() [1/3]

void SG::AuxElement::makePrivateStore ( )
inherited

Create a new (empty) private store for this object.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

Definition at line 192 of file AuxElement.cxx.

193 {
194  if (m_container) {
195  throw SG::ExcBadPrivateStore ("store already exists");
196  }
197 
201 }

◆ makePrivateStore() [2/3]

template<class U1 >
void SG::AuxElement::makePrivateStore ( const U1 &  other,
bool  warnUnlocked = false 
)
inherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

If other is an object that has aux data, then those data will be copied; otherwise, nothing will be done.

◆ makePrivateStore() [3/3]

template<class U1 >
void SG::AuxElement::makePrivateStore ( const U1 *  other,
bool  warnUnlocked = false 
)
inherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

If other is an object that has aux data, then those data will be copied; otherwise, nothing will be done.

◆ makePrivateStore1() [1/2]

void SG::AuxElement::makePrivateStore1 ( const AuxElement other,
bool  warnUnlocked 
)
privateinherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

This overload handles the case where other does have aux data.

Definition at line 565 of file AuxElement.cxx.

567 {
569  if (other)
570  this->copyAux (*other, warnUnlocked);
571 }

◆ makePrivateStore1() [2/2]

void SG::AuxElement::makePrivateStore1 ( const void *  other,
bool  warnUnlocked 
)
privateinherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

This overload handles the case where other does not have aux data.

◆ name()

const std::string& xAOD::TrigComposite_v1::name ( ) const

Get a human-readable name for the object.

◆ noPrivateData()

bool SG::IAuxElement::noPrivateData ( ) const
protectedinherited

True if this element has no private data.

◆ object()

template<class OBJECT >
const OBJECT* xAOD::TrigComposite_v1::object ( const std::string &  name) const

Get a bare pointer with the requested name.

◆ objectCollectionLinks()

template<class CONTAINER >
std::vector<ElementLink< CONTAINER > > xAOD::TrigComposite_v1::objectCollectionLinks ( const std::string &  collectionName) const

Get a vector of all element links from the collection.

◆ objectLink()

template<class CONTAINER >
ElementLink< CONTAINER > xAOD::TrigComposite_v1::objectLink ( const std::string &  name) const

Get the link with the requested name.

◆ operator=()

TrigComposite_v1 & xAOD::TrigComposite_v1::operator= ( const TrigComposite_v1 rhs)

Assignment operator.

Definition at line 81 of file TrigComposite_v1.cxx.

81  {
82  if(this == &rhs) return *this;
83  if( ( ! hasStore() ) && ( ! container() ) ) this->makePrivateStore();
84 
85  // Copy the auxiliary variables:
87 
88  // Return this object:
89  return *this;
90  }

◆ releasePrivateStore()

void SG::AuxElement::releasePrivateStore ( )
inherited

Release and free any private store associated with this object.

ExcBadPrivateStore will be thrown if this object does not have a private store.

Definition at line 210 of file AuxElement.cxx.

211 {
212  if (hadPrivateData()) {
213  // We had a private store, but it was released because this object
214  // was added to a container. Just forget about it.
216  return;
217  }
218 
219  if (!havePrivateData() ||
220  !m_container ||
221  typeid(*m_container) != typeid(AuxElementPrivateData))
222  {
223  throw SG::ExcBadPrivateStore ("no private store exists");
224  }
225 
228  delete m_container;
229  m_container = 0;
230 }

◆ releasePrivateStoreForDtor()

void SG::AuxElement::releasePrivateStoreForDtor ( )
privateinherited

Out-of-line portion of destructor.

Delete a private store if we have one.

Definition at line 441 of file AuxElement.cxx.

442 {
443 #ifdef ATHCONTAINERS_R21_COMPAT
444  if (havePrivateData()) {
445  delete m_container;
446  }
447 #else
449 #endif
450 }

◆ removeObjectCollectionLinks()

bool xAOD::TrigComposite_v1::removeObjectCollectionLinks ( const std::string &  name)

Delete any stored collection of element links with the given name.

Parameters
[in]nameName of the stored link collection
Returns
True if a collection of links of the given name was found and deleted

Definition at line 227 of file TrigComposite_v1.cxx.

227  {
228  bool removed = false;
229  const std::vector< std::string >& names = linkColNames();
230  const std::string mangledName = name + s_collectionSuffix;
231  for( size_t i = 0; i < names.size(); /*noop*/ ) {
232  if( names.at(i) == mangledName ) {
233  // Remove
234  linkColNamesNC().erase( linkColNamesNC().begin() + i );
235  linkColKeysNC().erase( linkColKeysNC().begin() + i );
236  linkColIndicesNC().erase( linkColIndicesNC().begin() + i );
237  linkColClidsNC().erase( linkColClidsNC().begin() + i );
238  removed = true;
239  } else {
240  ++i;
241  }
242  }
243  return removed;
244  }

◆ removeObjectLink()

bool xAOD::TrigComposite_v1::removeObjectLink ( const std::string &  name)

Delete any stored element link with the given name.

Parameters
[in]nameName of the stored link
Returns
True if a link of the given name was found and deleted

Definition at line 210 of file TrigComposite_v1.cxx.

210  {
211  bool removed = false;
212  const std::vector< std::string >& names = linkColNames();
213  for( size_t i = 0; i < names.size(); ++i ) {
214  if( names.at(i) != name ) continue;
215  // Remove
216  linkColNamesNC().erase( linkColNamesNC().begin() + i );
217  linkColKeysNC().erase( linkColKeysNC().begin() + i );
218  linkColIndicesNC().erase( linkColIndicesNC().begin() + i );
219  linkColClidsNC().erase( linkColClidsNC().begin() + i );
220  removed = true;
221  break;
222  }
223  return removed;
224  }

◆ setConstStore()

void SG::AuxElement::setConstStore ( const SG::IConstAuxStore store)
inherited

Synonym for setStore with IConstAuxStore.

Parameters
storeThe new store.

◆ setDecisions()

void xAOD::TrigComposite_v1::setDecisions ( const std::vector< TrigCompositeUtils::DecisionID > &  decisions)

Set positive HLT chain decisions associated with this TrigComposite. Navigation use.

◆ setDetail()

template<typename TYPE >
bool xAOD::TrigComposite_v1::setDetail ( const std::string &  name,
const TYPE value 
)

Set an TYPE detail on the object.

◆ setHadPrivateData()

void SG::IAuxElement::setHadPrivateData ( )
privateinherited

Record that this element used to have private data.

◆ setHavePrivateData()

void SG::IAuxElement::setHavePrivateData ( )
privateinherited

Record that this element currently has private data.

◆ setIndex()

void SG::AuxElement::setIndex ( size_t  index,
SG::AuxVectorData container 
)
privateinherited

Set the index/container for this element.

Parameters
indexThe index of this object within the container.
containerThe container holding this object. May be null if this object is being removed from a container.

Usually this simply sets the index and container members of this object. However, in the case where this object has an associated private store, then we need to deal with releasing the store if the object is being added to a container, or making a new store if the object is being removed from a container.

◆ setIndexPrivate()

bool SG::AuxElement::setIndexPrivate ( size_t  index,
SG::AuxVectorData container 
)
privateinherited

Set the index/container for this element.

Parameters
indexThe index of this object within the container.
containerThe container holding this object. May be null if this object is being removed from a container.

This is called from setIndex when we have a private store to deal with.

Definition at line 505 of file AuxElement.cxx.

506 {
507 #ifdef ATHCONTAINERS_R21_COMPAT
508  if (hadPrivateData()) {
509  // We had a private store, but it was released because we were added
510  // to a container.
511 
512  if (container == 0) {
513  // We're being moved out of the container. Make a new private
514  // store, copy the data, and switch to it.
515  auto privateData = new SG::AuxElementPrivateData;
516  AuxElement to (privateData, 0);
517  to.copyAux (*this);
520  m_container = privateData;
521  return true;
522  }
523  }
524  else if (havePrivateData() &&
525  typeid(*m_container) == typeid(AuxElementPrivateData))
526  {
527  // We currently have a private store.
528 
529  if (container != 0 && container != m_container) {
530  // We're being added to a container.
531  // Aux data has already been copied.
532  // Release private store.
535  delete m_container;
537  return false;
538  }
539  }
540  else {
541  // We have a standalone store.
542  throw SG::ExcBadPrivateStore ("Attempt to add/remove a standalone object "
543  "from a container.");
544  }
545 
548  return false;
549 #else
551 #endif
552 }

◆ setName()

void xAOD::TrigComposite_v1::setName ( const std::string &  name)

Set a human-readable name for the object.

◆ setNonConstStore()

void SG::AuxElement::setNonConstStore ( SG::IAuxStore store)
inherited

Synonym for setStore with IAuxStore.

Parameters
storeThe new store.

◆ setNoPrivateData()

void SG::IAuxElement::setNoPrivateData ( )
privateinherited

Record that this element does not have private data.

◆ setObjectLink()

template<class CONTAINER >
bool xAOD::TrigComposite_v1::setObjectLink ( const std::string &  name,
const ElementLink< CONTAINER > &  link 
)

Set the link to an object.

◆ setStore() [1/3]

void SG::AuxElement::setStore ( const DataLink< SG::IConstAuxStore > &  store)
inherited

Set the store associated with this object.

Parameters
storeThe new store.

If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.

Parameters
storeLink to the new store.

Definition at line 269 of file AuxElement.cxx.

270 {
271  AuxElementStandaloneData* data = setStore1 (store);
272  if (store)
273  data->setStore (store);
274 }

◆ setStore() [2/3]

void SG::AuxElement::setStore ( const SG::IConstAuxStore store)
inherited

Set the store associated with this object.

Parameters
storeThe new store.

If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.

Definition at line 241 of file AuxElement.cxx.

242 {
243  AuxElementStandaloneData* data = setStore1 (store);
244  if (store)
245  data->setStore (store);
246 }

◆ setStore() [3/3]

void SG::AuxElement::setStore ( SG::IAuxStore store)
inherited

Set the store associated with this object.

Parameters
storeThe new store.

If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.

Definition at line 257 of file AuxElement.cxx.

258 {
259  AuxElementStandaloneData* data = setStore1 (store);
260  if (store)
261  data->setStore (store);
262 }

◆ setStore1()

AuxElementStandaloneData * SG::AuxElement::setStore1 ( const SG::IConstAuxStore store)
privateinherited

Set the store associated with this object.

Parameters
storeThe new store.

Helper for setStore. Creates the AuxElementStandaloneData object if needed and returns it.

Parameters
storeThe new store.

Helper for setStore. Creates the @x AuxElementStandaloneData object if needed and returns it.

Definition at line 461 of file AuxElement.cxx.

462 {
463  if (store) {
464  // Want this object be standalone.
465  if (!m_container) {
466  // Not in a container (and no private store). Make a new object.
467  AuxElementStandaloneData* data = new AuxElementStandaloneData;
469  m_container = data;
470  return data;
471  }
472  if (usingStandaloneStore()) {
473  // Standalone --- return existing object.
474  return static_cast<AuxElementStandaloneData*> (container());
475  }
476  // Otherwise, it's an error.
477  throw ExcBadPrivateStore ("Attempt to attach a standalone store to an "
478  "object in a container or with a private store.");
479  }
480 
481  else {
482  // Getting rid of a standalone store.
483  if (usingStandaloneStore()) {
485  delete m_container;
486  m_container = 0;
487  }
488  else if (m_container != 0)
489  throw ExcBadPrivateStore ("Attempt to remove a standalone store from an "
490  "object in a container or with a private store.");
491  return 0;
492  }
493 }

◆ trackIndices()

bool SG::AuxElement::trackIndices ( ) const
inherited

Return true if index tracking is enabled for this object.

Always returns true. Included here to be consistent with AuxVectorBase when standalone objects may be used as template parameters.

◆ typelessGetObjectCollectionLinks()

bool xAOD::TrigComposite_v1::typelessGetObjectCollectionLinks ( const std::string &  name,
std::vector< sgkey_t > &  keyVec,
std::vector< uint32_t > &  clidVec,
std::vector< index_type > &  indexVec 
) const

Fetches a collection of links without type.

Parameters
[in]nameName of the stored link
[out]keyVecStoregte key of the link-objects will be pushed on to this vector
[out]clidVecType of the objects will be pushed on to this vector
[out]indexVecIndex of the objects within their collections will be pushed on to this vector
Returns
True if at least one link was found

Definition at line 430 of file TrigComposite_v1.cxx.

432  {
433  bool found = false;
434  const std::string mangledName = name + s_collectionSuffix;
435  for (size_t i = 0; i < this->linkColNames().size(); ++i) {
436  if (linkColNames().at(i) != mangledName) {
437  continue;
438  }
439  if (isRemapped()) {
440  keyVec.push_back( linkColKeysRemap().at(i) );
441  clidVec.push_back( linkColClids().at(i) );
442  indexVec.push_back( linkColIndicesRemap().at(i) );
443  } else {
444  keyVec.push_back( linkColKeys().at(i) );
445  clidVec.push_back( linkColClids().at(i) );
446  indexVec.push_back( linkColIndices().at(i) );
447  }
448  found = true;
449  }
450  return found;
451  }

◆ typelessGetObjectLink()

bool xAOD::TrigComposite_v1::typelessGetObjectLink ( const std::string &  name,
sgkey_t key,
uint32_t clid,
TrigComposite_v1::index_type index 
) const

Fetches a single link without type.

Note: Will not work for collections of links, use typelessGetObjectCollectionLinks

Parameters
[in]nameName of the stored link
[out]keyStoregate key of the link-object's collection
[out]clidType of the object's collection
[out]indexIndex within the collection of the link-object
Returns
True if a link was found

Definition at line 411 of file TrigComposite_v1.cxx.

411  {
412  std::vector<std::string>::const_iterator it = std::find(linkColNames().begin(), linkColNames().end(), name);
413  if (it == linkColNames().end()) {
414  return false;
415  }
416  const size_t location = std::distance(linkColNames().begin(), it);
417  if (isRemapped()) {
418  key = linkColKeysRemap().at(location);
419  clid = linkColClids().at(location);
420  index = linkColIndicesRemap().at(location);
421  } else {
422  key = linkColKeys().at(location);
423  clid = linkColClids().at(location);
424  index = linkColIndices().at(location);
425  }
426  return true;
427  }

◆ typelessSetObjectLink()

void xAOD::TrigComposite_v1::typelessSetObjectLink ( const std::string &  name,
const sgkey_t  key,
const uint32_t  clid,
const index_type  beginIndex,
const index_type  endIndex = 0 
)

Add a link without type.

Definition at line 344 of file TrigComposite_v1.cxx.

344  {
345 
346  // Loop over collections
347  if ( int32_t(endIndex) - int32_t(beginIndex) > 1 ) { // Adding a *collection* of links, this needs to be a signed check as a difference <= 0 implies that endIndex is less than or equal to beginIndex
348 
349  // Check uniqueness
350  const std::string mangledName = name + s_collectionSuffix;
351  const std::vector< std::string >& names = linkColNames();
352  int oldStart = -1;
353  int oldEnd = -1;
354  for( size_t nameIndex = 0; nameIndex < names.size(); ++nameIndex ) {
355 
356  // Look for an existing collection with the same name
357  if( names[ nameIndex ] == mangledName ) {
358  oldEnd = nameIndex + 1;
359  if ( oldStart == -1 ) oldStart = nameIndex;
360  }
361  else if ( oldStart != -1 ) {
362  // If the start has been found, we must now be past the ned
363  break;
364  }
365  }
366 
367  // Erase the old collection, if there was one
368  if ( oldStart != -1 ) {
369  this->linkColNamesNC().erase( this->linkColNamesNC().begin() + oldStart, this->linkColNamesNC().begin() + oldEnd );
370  this->linkColKeysNC().erase( this->linkColKeysNC().begin() + oldStart, this->linkColKeysNC().begin() + oldEnd );
371  this->linkColIndicesNC().erase( this->linkColIndicesNC().begin() + oldStart, this->linkColIndicesNC().begin() + oldEnd );
372  this->linkColClidsNC().erase( this->linkColClidsNC().begin() + oldStart, this->linkColClidsNC().begin() + oldEnd );
373  }
374 
375  // Append the new collection
376  for ( TrigComposite_v1::index_type index = beginIndex; index < endIndex; ++index ) {
377  this->linkColNamesNC().push_back( mangledName );
378  this->linkColKeysNC().push_back( key );
379  this->linkColIndicesNC().push_back( index );
380  this->linkColClidsNC().push_back( clid );
381  }
382 
383  } else { // Adding a *single* link
384 
385  // Check uniqueness
387 
388  this->linkColNamesNC().push_back( name );
389  this->linkColKeysNC().push_back( key );
390  this->linkColIndicesNC().push_back( beginIndex );
391  this->linkColClidsNC().push_back( clid );
392 
393  } else {
394 
395  // Over-write an existing object
396  const std::vector< std::string >& names = linkColNames();
397  for( size_t nameIndex = 0; nameIndex < names.size(); ++nameIndex ) {
398  if( names[ nameIndex ] == name ) {
399  this->linkColKeysNC()[ nameIndex ] = key;
400  this->linkColIndicesNC()[ nameIndex ] = beginIndex;
401  this->linkColClidsNC()[ nameIndex ] = clid;
402  break; // Names are unique, so stop once found
403  } // Check of names
404  } // Loop over names
405 
406  } // Check of uniqueness of adding single link
407 
408  } // Check of adding single link vs link collection
409  }

◆ usingPrivateStore()

bool SG::AuxElement::usingPrivateStore ( ) const
inherited

Test to see if this object is currently using a private store.

Definition at line 280 of file AuxElement.cxx.

281 {
282  return havePrivateData() &&
283  typeid(*m_container) == typeid(AuxElementPrivateData);
284 }

◆ usingStandaloneStore()

bool SG::AuxElement::usingStandaloneStore ( ) const
inherited

Test to see if this object is currently using a standalone store.

Test to see if this object is currently using a private store.

Definition at line 290 of file AuxElement.cxx.

291 {
292  return havePrivateData() &&
293  typeid(*m_container) == typeid(AuxElementStandaloneData);
294 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

bool s_throwOnCopyError xAOD::TrigComposite_v1::ATLAS_THREAD_SAFE
static

For use in validation, when copying element links from one object to another.

Definition at line 243 of file TrigComposite_v1.h.

◆ m_container

const SG::AuxVectorData* SG::ConstAuxElement::m_container
privateinherited

The container of which this object is an element.

Should be null if this object is not within a container, except that it may also point at a private store.

Definition at line 335 of file AuxElement.h.

◆ m_index

size_t SG::IAuxElement::m_index
privateinherited

The index of this element within its container.

Should be 0 if this object is not within a container.

Definition at line 128 of file IAuxElement.h.

◆ m_privateStoreState

PrivateStoreState SG::IAuxElement::m_privateStoreState
privateinherited

Definition at line 137 of file IAuxElement.h.

◆ s_collectionSuffix

const std::string xAOD::TrigComposite_v1::s_collectionSuffix {"__COLL"}
staticprivate

Definition at line 305 of file TrigComposite_v1.h.

◆ s_comboHypoAlgNodeNameString

const std::string xAOD::TrigComposite_v1::s_comboHypoAlgNodeNameString {"CH"}
static

Constant used to identify a navigation graph node as being from a Combo Hypo Alg.

Definition at line 267 of file TrigComposite_v1.h.

◆ s_featureString

const std::string xAOD::TrigComposite_v1::s_featureString {"feature"}
static

Constant used to identify a feature.

Definition at line 254 of file TrigComposite_v1.h.

◆ s_filterNodeNameString

const std::string xAOD::TrigComposite_v1::s_filterNodeNameString {"F"}
static

Constant used to identify a navigation graph node as being from a Filter.

Definition at line 261 of file TrigComposite_v1.h.

◆ s_hltSeedingNodeNameString

const std::string xAOD::TrigComposite_v1::s_hltSeedingNodeNameString {"L1"}
static

Constant used to identify a navigation graph node as being from the HLTSeeding.

Definition at line 259 of file TrigComposite_v1.h.

◆ s_hypoAlgNodeNameString

const std::string xAOD::TrigComposite_v1::s_hypoAlgNodeNameString {"H"}
static

Constant used to identify a navigation graph node as being from a Hypo Alg.

Definition at line 265 of file TrigComposite_v1.h.

◆ s_initialRecRoIString

const std::string xAOD::TrigComposite_v1::s_initialRecRoIString {"initialRecRoI"}
static

Constant used to identify an initial HLT ROI derived from L1.

Definition at line 248 of file TrigComposite_v1.h.

◆ s_initialRoIString

const std::string xAOD::TrigComposite_v1::s_initialRoIString {"initialRoI"}
static

Constant used to identify an initial ROI from L1.

Definition at line 246 of file TrigComposite_v1.h.

◆ s_inputMakerNodeNameString

const std::string xAOD::TrigComposite_v1::s_inputMakerNodeNameString {"IM"}
static

Constant used to identify a navigation graph node as being from a Input Maker.

Definition at line 263 of file TrigComposite_v1.h.

◆ s_roiString

const std::string xAOD::TrigComposite_v1::s_roiString {"roi"}
static

Constant used to identify an (explicitly) updated HLT ROI.

Definition at line 250 of file TrigComposite_v1.h.

◆ s_seedString

const std::string xAOD::TrigComposite_v1::s_seedString {"seed"}
static

Constant used to identify a seed (parent)

Definition at line 256 of file TrigComposite_v1.h.

◆ s_summaryFilterNodeNameString

const std::string xAOD::TrigComposite_v1::s_summaryFilterNodeNameString {"SF"}
static

Constant used to identify a navigation graph node as being from a final Filter created by the DecisionSummaryMaker algorithm.

Definition at line 270 of file TrigComposite_v1.h.

◆ s_summaryPassExpressNodeNameString

const std::string xAOD::TrigComposite_v1::s_summaryPassExpressNodeNameString {"HLTPassExpress"}
static

Constant used to identify the single express-accept graph node.

A record of all chains which triggered express streaming.

Definition at line 276 of file TrigComposite_v1.h.

◆ s_summaryPassNodeNameString

const std::string xAOD::TrigComposite_v1::s_summaryPassNodeNameString {"HLTPassRaw"}
static

Constant used to identify the single terminus graph node the end point of all chains which accept the event.

Definition at line 273 of file TrigComposite_v1.h.

◆ s_summaryPrescaledNodeNameString

const std::string xAOD::TrigComposite_v1::s_summaryPrescaledNodeNameString {"HLTPrescaled"}
static

Constant used to identify the single prescaled graph node.

A record of all chains which did not execute due to HLT prescale.

Definition at line 279 of file TrigComposite_v1.h.

◆ s_viewString

const std::string xAOD::TrigComposite_v1::s_viewString {"view"}
static

Constant used to identify a view.

Definition at line 252 of file TrigComposite_v1.h.

◆ supportsThinning

constexpr bool SG::AuxElement::supportsThinning = true
staticconstexprinherited

Mark that this type supports thinning operations.

See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.

Definition at line 959 of file AuxElement.h.


The documentation for this class was generated from the following files:
xAOD::TrigComposite_v1::linkColKeysRemap
const std::vector< sgkey_t > & linkColKeysRemap() const
Raw access to the persistent link labels. Will attempt to access remapped link data.
Definition: TrigComposite_v1.cxx:318
SG::AuxVectorData::getConstStore
const SG::IConstAuxStore * getConstStore() const
Return the current store, as a const interface.
SGTest::store
TestStore store
Definition: TestStore.cxx:23
beamspotman.r
def r
Definition: beamspotman.py:676
SG::ConstAuxElement::getAuxIDs
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
Definition: AuxElement.cxx:153
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
xAOD::TrigComposite_v1::s_collectionSuffix
static const std::string s_collectionSuffix
Definition: TrigComposite_v1.h:305
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:639
SG::AuxVectorData::getDecorIDs
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Definition: AuxVectorData.cxx:215
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxVectorData::getWritableAuxIDs
const SG::auxid_set_t & getWritableAuxIDs() const
Return a set of identifiers for writable data items in this store.
Definition: AuxVectorData.cxx:231
index
Definition: index.py:1
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
SG::ConstAuxElement::m_container
const SG::AuxVectorData * m_container
The container of which this object is an element.
Definition: AuxElement.h:335
xAOD::TrigComposite_v1::hasObjectLink
bool hasObjectLink(const std::string &name, const CLID clid=CLID_NULL) const
Check if a link to an object with a given name and type exists. CLID_NULL to not check type.
Definition: TrigComposite_v1.cxx:246
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
skel.it
it
Definition: skel.GENtoEVGEN.py:396
SG::AuxVectorData::hasNonConstStore
bool hasNonConstStore() const
Return true if this object has an associated non-const store.
xAOD::other
@ other
Definition: TrackingPrimitives.h:509
SG::AuxElement::usingStandaloneStore
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.
Definition: AuxElement.cxx:290
SG::ConstAuxElement::setIndexPrivate
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
Definition: AuxElement.cxx:97
SG::ExcConstAuxData
Exception — Non-const operation performed on const aux data.
Definition: Control/AthContainers/AthContainers/exceptions.h:77
SG::IAuxElement::setNoPrivateData
void setNoPrivateData()
Record that this element does not have private data.
xAOD::TrigComposite_v1::linkColNamesNC
std::vector< std::string > & linkColNamesNC()
Raw access to the persistent link names (non-const)
Definition: TrigComposite_v1.cxx:328
xAOD::TrigComposite_v1::linkColClids
const std::vector< uint32_t > & linkColClids() const
Raw access to the persistent link CLIDs.
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
SG::AuxVectorData::getAuxIDs
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
Definition: AuxVectorData.cxx:203
CxxUtils::fpcompare::equal
bool equal(double a, double b)
Compare two FP numbers, working around x87 precision issues.
Definition: fpcompare.h:114
SG::AuxTypeRegistry
Handle mappings between names and auxid_t.
Definition: AuxTypeRegistry.h:61
SG::IAuxElement::index
size_t index() const
Return the index of this element within its container.
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
SG::IAuxElement::setHadPrivateData
void setHadPrivateData()
Record that this element used to have private data.
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
xAOD::TrigComposite_v1::copyLinkCollectionFrom
bool copyLinkCollectionFrom(const xAOD::TrigComposite_v1 &other, const std::string &name, std::string newName="")
Copy one named link collection from another object.
Definition: TrigComposite_v1.cxx:148
lumiFormat.i
int i
Definition: lumiFormat.py:85
SG::AuxElement::copyAux
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.
Definition: AuxElement.cxx:607
SG::AuxElement::clearAux
void clearAux()
Clear all aux data associated with this element.
Definition: AuxElement.cxx:580
SG::AuxElement::AuxElement
AuxElement()
Default constructor.
python.subdetectors.mmg.names
names
Definition: mmg.py:8
xAOD::TrigComposite_v1::copyLinkFrom
bool copyLinkFrom(const xAOD::TrigComposite_v1 &other, const std::string &name, std::string newName="")
Copy one named link from another object.
Definition: TrigComposite_v1.cxx:123
SG::IAuxElement::havePrivateData
bool havePrivateData() const
True if this element currently has private data.
ATHCONTAINERS_WARNING
#define ATHCONTAINERS_WARNING(ctx, msg)
Definition: error.h:57
xAOD::TrigComposite_v1::copyAllLinksFrom
bool copyAllLinksFrom(const xAOD::TrigComposite_v1 &other)
Copy all single links and collections of links from another object.
Definition: TrigComposite_v1.cxx:177
xAOD::TrigComposite_v1::linkColKeysNC
std::vector< sgkey_t > & linkColKeysNC()
Raw access to the persistent link labels (non-const)
Definition: TrigComposite_v1.cxx:332
xAOD::TrigComposite_v1::linkColIndicesRemap
const std::vector< index_type > & linkColIndicesRemap() const
Raw access to the persistent link indices. Will attempt to access remapped link data.
Definition: TrigComposite_v1.cxx:322
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:40
SG::AuxVectorData::getStore
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
SG::ConstAuxElement::getDecorIDs
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Definition: AuxElement.cxx:172
test_pyathena.parent
parent
Definition: test_pyathena.py:15
SG::AuxElementPrivateData
Internal data container for private store.
Definition: AuxElement.cxx:46
xAOD::TrigComposite_v1::linkColIndicesNC
std::vector< index_type > & linkColIndicesNC()
Raw access to the persistent link indices (non-const)
Definition: TrigComposite_v1.cxx:336
SG::AuxVectorData::hasStore
bool hasStore() const
Return true if this object has an associated store.
xAOD::TrigComposite_v1::linkColIndices
const std::vector< index_type > & linkColIndices() const
Raw access to the persistent link indices.
Definition: TrigComposite_v1.cxx:314
SG::IAuxElement::setHavePrivateData
void setHavePrivateData()
Record that this element currently has private data.
SG::BaseInfoBase::find
static const BaseInfoBase * find(CLID clid)
Find the BaseInfoBase instance for clid.
Definition: BaseInfo.cxx:569
SG::AuxVectorData::clearCache
void clearCache()
Clear the cached aux data pointers.
MakeNewFileFromOldAndSubstitution.newName
dictionary newName
Definition: ICHEP2016/MakeNewFileFromOldAndSubstitution.py:95
xAOD::TrigComposite_v1::index_type
uint32_t index_type
Definition: TrigComposite_v1.h:56
xAOD::TrigComposite_v1::copyLinkInternal
void copyLinkInternal(const xAOD::TrigComposite_v1 &other, const size_t index, const std::string &newName)
Helper function, copy one link into this object.
Definition: TrigComposite_v1.cxx:111
SG::AuxElement::makePrivateStore
void makePrivateStore()
Create a new (empty) private store for this object.
Definition: AuxElement.cxx:192
SG::AuxElement::operator=
AuxElement & operator=(const AuxElement &other)
Assignment.
xAOD::TrigComposite_v1::linkColNames
const std::vector< std::string > & linkColNames() const
Raw access to the persistent link names.
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
xAOD::TrigComposite_v1::name
const std::string & name() const
Get a human-readable name for the object.
SG::AuxElement::hasStore
bool hasStore() const
Return true if this object has an associated store.
Definition: AuxElement.cxx:398
SG::IAuxElement::setIndex
void setIndex(size_t index)
Set the index of this element within its container.
xAOD::TrigComposite_v1::linkColKeys
const std::vector< sgkey_t > & linkColKeys() const
Raw access to the persistent link labels.
Definition: TrigComposite_v1.cxx:310
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
SG::AuxVectorData::clearDecorations
bool clearDecorations() const
Clear all decorations.
Definition: AuxVectorData.cxx:653
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
xAOD::TrigComposite_v1::isRemapped
bool isRemapped() const
Information on if linkColKeys() and linkColIndices() are able to access remapped link data Remapping ...
Definition: TrigComposite_v1.cxx:454
SG::ExcBadPrivateStore
Exception — Bad use of private store.
Definition: Control/AthContainers/AthContainers/exceptions.h:113
SG::BaseInfoBase
The non-template portion of the BaseInfo implementation.
Definition: Control/AthenaKernel/AthenaKernel/BaseInfo.h:451
SG::IConstAuxStore::getDecorIDs
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47
SG::AuxVectorData
Manage lookup of vectors of auxiliary data.
Definition: AuxVectorData.h:168
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
SG::ConstAuxElement::releasePrivateStoreForDtor
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.
Definition: AuxElement.cxx:80
SG::AuxElement::container
const SG::AuxVectorData * container() const
Return the container holding this element.
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
SG::IAuxElement::hadPrivateData
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
SG::sgkeyEqual
constexpr bool sgkeyEqual(const sgkey_t a, const sgkey_t b)
Compare two sgkeys for equality.
Definition: CxxUtils/CxxUtils/sgkey_t.h:39
SG::IConstAuxStore::getAuxIDs
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
SG::AuxElement::setStore1
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.
Definition: AuxElement.cxx:461
xAOD::TrigComposite_v1::derivesFromIParticle
bool derivesFromIParticle(const CLID clid) const
Helper function. Check if the requested type can be down cast to an IParticle transient interface.
Definition: TrigComposite_v1.cxx:292
xAOD::TrigComposite_v1::linkColClidsNC
std::vector< uint32_t > & linkColClidsNC()
Raw access to the persistent link CLIDs (non-const)
Definition: TrigComposite_v1.cxx:340
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
CxxUtils::ConcurrentBitset::test
bool test(bit_t bit) const
Test to see if a bit is set.
SG::BaseInfoBase::is_base
bool is_base(CLID clid) const
Return true if clid is the ID of a class that is known to be a base of T.
Definition: BaseInfo.cxx:344