ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 TrigComposite_v1 (const TrigComposite_v1 &parent)
 Copy constructor.
TrigComposite_v1operator= (const TrigComposite_v1 &rhs)
 Assignment operator.
void assign (const AuxElement &other, bool warnUnlocked=false)
 Assignment.
const SG::AuxVectorDatacontainer () const
 Return the container holding this element.
SG::AuxVectorDatacontainer ()
 Return the container holding this element.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
void makePrivateStore ()
 Create a new (empty) private store for this object.
template<class U1>
void makePrivateStore (const U1 &other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data.
template<class U1>
void makePrivateStore (const U1 *other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data.
void releasePrivateStore ()
 Release and free any private store associated with this object.
void setStore (const SG::IConstAuxStore *store)
 Set the store associated with this object.
void setStore (SG::IAuxStore *store)
 Set the store associated with this object.
void setStore (const DataLink< SG::IConstAuxStore > &store)
 Set the store associated with this object.
void setConstStore (const SG::IConstAuxStore *store)
 Synonym for setStore with IConstAuxStore.
void setNonConstStore (SG::IAuxStore *store)
 Synonym for setStore with IAuxStore.
bool usingPrivateStore () const
 Test to see if this object is currently using a private store.
bool usingStandaloneStore () const
 Test to see if this object is currently using a standalone store.
const SG::IConstAuxStoregetConstStore () const
 Return the current store, as a const interface.
SG::IAuxStoregetStore () const
 Return the current store, as a non-const interface.
void clearCache ()
 Clear the cached aux data pointers.
const SG::auxid_set_tgetAuxIDs () const
 Return a set of identifiers for existing data items for this object.
const SG::auxid_set_tgetDecorIDs () const
 Return a set of identifiers for decorations for this object.
bool hasStore () const
 Return true if this object has an associated store.
bool hasNonConstStore () const
 Return true if this object has an associated non-const store.
bool clearDecorations () const
 Clear all decorations.
bool trackIndices () const
 Return true if index tracking is enabled for this object.
size_t index () const
 Return the index of this element within its container.
Basic properties
const std::string & name () const
 Get a human-readable name for the object.
void setName (const std::string &name)
 Set a human-readable name for the object.
const std::vector< TrigCompositeUtils::DecisionID > & decisions () const
 Get positive HLT chain decisions associated with this TrigComposite. Navigation use.
void setDecisions (const std::vector< TrigCompositeUtils::DecisionID > &decisions)
 Set positive HLT chain decisions associated with this TrigComposite. Navigation use.
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.
template<typename TYPE>
bool setDetail (const std::string &name, const TYPE &value)
 Set an TYPE detail on the object.
template<typename TYPE>
bool getDetail (const std::string &name, TYPE &value) const
 Get an TYPE detail from the object.
template<typename TYPE>
TYPE getDetail (const std::string &name) const
 Get a detail by name, missing detail will throw SG::ExcBadAuxVar.
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.
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.
template<class CONTAINER>
ElementLink< CONTAINER > objectLink (const std::string &name) const
 Get the link with the requested name.
template<class OBJECT>
const OBJECT * object (const std::string &name) const
 Get a bare pointer with the requested name.
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.
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.
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.
template<class CONTAINER>
std::vector< ElementLink< CONTAINER > > objectCollectionLinks (const std::string &collectionName) const
 Get a vector of all element links from the collection.
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.
bool typelessGetObjectLink (const std::string &name, sgkey_t &key, uint32_t &clid, index_type &index) const
 Fetches a single link without type.
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.
template<class CONTAINER>
std::vector< std::string > getObjectNames () const
 Look up all links stored to objects of (container) type CONTAINER.
template<class CONTAINER>
std::vector< std::string > getObjectCollectionNames () const
 Look up all links stored to collections objects from (container) type CONTAINER.
std::vector< std::string > getObjectNames (const CLID clid) const
 Type erased look up all links stored to objects of (container) type clid.
std::vector< std::string > getObjectCollectionNames (const CLID clid) const
 Type erased look up all links stored to collections objects from (container) type clid.
bool removeObjectLink (const std::string &name)
 Delete any stored element link with the given name.
bool removeObjectCollectionLinks (const std::string &name)
 Delete any stored collection of element links with the given name.
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.
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.
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.
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.
const std::vector< sgkey_t > & linkColKeys () const
 Raw access to the persistent link labels.
const std::vector< index_type > & linkColIndices () const
 Raw access to the persistent link indices.
const std::vector< uint32_t > & linkColClids () const
 Raw access to the persistent link CLIDs.
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.
const std::vector< sgkey_t > & linkColKeysRemap () const
 Raw access to the persistent link labels. Will attempt to access remapped link data.
const std::vector< index_type > & linkColIndicesRemap () const
 Raw access to the persistent link indices. Will attempt to access remapped link data.

Static Public Attributes

static bool s_throwOnCopyError ATLAS_THREAD_SAFE
 For use in validation, when copying element links from one object to another.
static const std::string s_initialRoIString {"initialRoI"}
 Constant used to identify an initial ROI from L1.
static const std::string s_initialRecRoIString {"initialRecRoI"}
 Constant used to identify an initial HLT ROI derived from L1.
static const std::string s_roiString {"roi"}
 Constant used to identify an (explicitly) updated HLT ROI.
static const std::string s_viewString {"view"}
 Constant used to identify a view.
static const std::string s_featureString {"feature"}
 Constant used to identify a feature.
static const std::string s_seedString {"seed"}
 Constant used to identify a seed (parent)
static const std::string s_hltSeedingNodeNameString {"L1"}
 Constant used to identify a navigation graph node as being from the HLTSeeding.
static const std::string s_filterNodeNameString {"F"}
 Constant used to identify a navigation graph node as being from a Filter.
static const std::string s_inputMakerNodeNameString {"IM"}
 Constant used to identify a navigation graph node as being from a Input Maker.
static const std::string s_hypoAlgNodeNameString {"H"}
 Constant used to identify a navigation graph node as being from a Hypo Alg.
static const std::string s_comboHypoAlgNodeNameString {"CH"}
 Constant used to identify a navigation graph node as being from a Combo Hypo Alg.
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.
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.
static const std::string s_summaryPassExpressNodeNameString {"HLTPassExpress"}
 Constant used to identify the single express-accept graph node.
static const std::string s_summaryPrescaledNodeNameString {"HLTPrescaled"}
 Constant used to identify the single prescaled graph node.
static constexpr bool supportsThinning = true
 Mark that this type supports thinning operations.

Protected Member Functions

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

Private Types

enum class  PrivateStoreState : uint8_t { NO_PRIVATE = 0 , HAVE_PRIVATE = 1 , 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)
std::vector< sgkey_t > & linkColKeysNC ()
 Raw access to the persistent link labels (non-const)
std::vector< index_type > & linkColIndicesNC ()
 Raw access to the persistent link indices (non-const)
std::vector< uint32_t > & linkColClidsNC ()
 Raw access to the persistent link CLIDs (non-const)
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.
bool derivesFromIParticle (const CLID clid) const
 Helper function. Check if the requested type can be down cast to an IParticle transient interface.
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.
void releasePrivateStoreForDtor ()
 Out-of-line portion of destructor.
void setIndex (size_t index, SG::AuxVectorData *container)
 Set the index/container for this element.
bool setIndexPrivate (size_t index, SG::AuxVectorData *container)
 Set the index/container for this element.
void makePrivateStore1 (const void *other, bool warnUnlocked)
 Create a new private store for this object and copy aux data.
void makePrivateStore1 (const AuxElement *other, bool warnUnlocked)
 Create a new private store for this object and copy aux data.
AuxElementStandaloneData * setStore1 (const SG::IConstAuxStore *store)
 Set the store associated with this object.
void clearAux ()
 Clear all aux data associated with this element.
void copyAux (const ConstAuxElement &other, bool warnUnlocked=false)
 Copy aux data from another object.
void setNoPrivateData ()
 Record that this element does not have private data.
void setHavePrivateData ()
 Record that this element currently has private data.
void setHadPrivateData ()
 Record that this element used to have private data.

Static Private Member Functions

static void clearAuxHelper (AuxVectorData &container, size_t index)
 Clear all aux data associated with an element.
static void copyAuxHelper (AuxVectorData &container, size_t index, const ConstAuxElement &other, bool warnUnlocked)
 Copy aux data from another object.

Private Attributes

const SG::AuxVectorDatam_container
 The container of which this object is an element.
size_t m_index
 The index of this element within its container.
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

Definition at line 49 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

◆ sgkey_t

◆ TypelessConstAccessor

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

Definition at line 566 of file AuxElement.h.

Member Enumeration Documentation

◆ PrivateStoreState

enum class 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.

77 : SG::AuxElement(parent) {
78 this->makePrivateStore( parent );
79 }
void makePrivateStore()
Create a new (empty) private store for this object.

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;
584}
static void clearAuxHelper(AuxVectorData &container, size_t index)
Clear all aux data associated with an element.
const SG::AuxVectorData * container() const
Return the container holding this element.
size_t index() const
Return the index of this element within its container.
const SG::AuxVectorData * m_container
The container of which this object is an element.
Definition AuxElement.h:335

◆ clearAuxHelper()

void SG::AuxElement::clearAuxHelper ( AuxVectorData & container,
size_t index )
staticprivateinherited

Clear all aux data associated with an element.

Parameters
containerContainer of the element.
indexIndex of this element within the container.

If the associated aux data is const, this throws ExcConstAuxData.

Definition at line 639 of file AuxElement.cxx.

640{
641 if (!container.hasStore()) return;
642 if (!container.hasNonConstStore()) {
643 throw SG::ExcConstAuxData ("clearAux", SG::null_auxid);
644 }
645
646 SG::AuxTypeRegistry& r = SG::AuxTypeRegistry::instance();
647 for (SG::auxid_t auxid : container.getWritableAuxIDs()) {
648 r.clear (auxid, container, index, 1);
649 }
650}
static AuxTypeRegistry & instance()
Return the singleton registry instance.
int r
Definition globals.cxx:22
static const auxid_t null_auxid
To signal no aux data item.
Definition AuxTypes.h:30
size_t auxid_t
Identifier for a particular aux data item.
Definition AuxTypes.h:27

◆ 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())
343}
void clearCache()
Clear the cached aux data pointers.

◆ 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}
bool havePrivateData() const
True if this element currently has private data.

◆ 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 if (name.ends_with(s_collectionSuffix)) {
184 // The copyLinkCollectionFrom call needs the un-mangled name as it is a public fn. It will re-mangle.
185 const std::string unmangledName = name.substr(0, name.size() - s_collectionSuffix.size());
186 copyLinkCollectionFrom(other, unmangledName);
187 } else { // not a collection
189 }
190 didCopy = true;
191 }
192 return didCopy;
193 }
static const std::string s_collectionSuffix
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.
bool copyLinkFrom(const xAOD::TrigComposite_v1 &other, const std::string &name, std::string newName="")
Copy one named link from another object.
const std::string & name() const
Get a human-readable name for the object.
bool copyLinkCollectionFrom(const xAOD::TrigComposite_v1 &other, const std::string &name, std::string newName="")
Copy one named link collection from another object.

◆ copyAllLinksFrom() [2/2]

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

Definition at line 195 of file TrigComposite_v1.cxx.

195 {
196 return copyAllLinksFrom(*other);
197 }
bool copyAllLinksFrom(const xAOD::TrigComposite_v1 &other)
Copy all single links and collections of links from another object.

◆ 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 600 of file AuxElement.cxx.

602{
603 if (!m_container) return;
604 copyAuxHelper (*container(), index(), other, warnUnlocked);
605}
static void copyAuxHelper(AuxVectorData &container, size_t index, const ConstAuxElement &other, bool warnUnlocked)
Copy aux data from another object.

◆ copyAuxHelper()

void SG::AuxElement::copyAuxHelper ( AuxVectorData & container,
size_t index,
const ConstAuxElement & other,
bool warnUnlocked )
staticprivateinherited

Copy aux data from another object.

Parameters
containerContainer of the element.
indexIndex of this element within the container.
otherThe object from which to copy.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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 667 of file AuxElement.cxx.

671{
672 if (!container.hasStore()) return;
673 if (!container.hasNonConstStore())
674 throw SG::ExcConstAuxData ("copyAux");
675
676 const SG::AuxVectorData* ocont = other.container();
677
678 if (!ocont || !ocont->hasStore()) {
680 return;
681 }
682
683#ifndef XAOD_STANDALONE
684 const SG::auxid_set_t& other_decors = ocont->getDecorIDs();
685#endif
686 SG::auxid_set_t other_ids = ocont->getAuxIDs();
687
688 size_t oindex = other.index();
689 SG::AuxTypeRegistry& r = SG::AuxTypeRegistry::instance();
690
691 for (SG::auxid_t auxid : other_ids) {
692#ifndef XAOD_STANDALONE
693 if (other_decors.test (auxid)) {
694 // Don't copy decorations --- another thread may be modifying them.
695 other_ids.reset (auxid);
696 // Warn if we skip a decoration (except for mcEventWeights,
697 // for which this is expected).
698 if (warnUnlocked && r.getName(auxid) != "mcEventWeights") {
699 std::ostringstream ss;
700 ss << "skipped unlocked decoration " << r.getName(auxid)
701 << " (" << auxid << ")";
702 ATHCONTAINERS_WARNING("copyAux", ss.str());
703 }
704 }
705 else
706#endif
707 if (!r.isLinked (auxid)) {
708 r.copy (auxid, container, index, *ocont, oindex, 1);
709 }
710 }
711
712 for (SG::auxid_t auxid : container.getWritableAuxIDs()) {
713 if (!other_ids.test (auxid)) {
714 r.clear (auxid, container, index, 1);
715 }
716 }
717}
static Double_t ss
bool test(bit_t bit) const
Test to see if a bit is set.
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
bool hasStore() const
Return true if this object has an associated store.
#define ATHCONTAINERS_WARNING(ctx, msg)
Definition error.h:57

◆ 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 }
size_t index() const
Return the index of this element within its container.
void copyLinkInternal(const xAOD::TrigComposite_v1 &other, const size_t index, const std::string &newName)
Helper function, copy one link into this object.

◆ 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 {
136 copyLinkInternal(other, index, newName);
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 }
std::vector< index_type > & linkColIndicesNC()
Raw access to the persistent link indices (non-const)
std::vector< uint32_t > & linkColClidsNC()
Raw access to the persistent link CLIDs (non-const)
std::vector< sgkey_t > & linkColKeysNC()
Raw access to the persistent link labels (non-const)
std::vector< std::string > & linkColNamesNC()
Raw access to the persistent link names (non-const)

◆ 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 290 of file TrigComposite_v1.cxx.

290 {
291#ifndef XAOD_STANDALONE
292 const SG::BaseInfoBase* bib = SG::BaseInfoBase::find (clid);
293 if (bib) {
295 }
296 // No base info available means we never called any of the macros declaring bases so it's
297 // likely that the clid doesn't inherit from IParticle...
298 return false;
299#endif
300 return true;
301 }
static const BaseInfoBase * find(CLID clid)
Find the BaseInfoBase instance for clid.
Definition BaseInfo.cxx:570
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

◆ 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}
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.

◆ 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())
382 return m_container->getConstStore()->getDecorIDs();
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}
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.

◆ getDetail() [1/2]

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

Get a detail by name, missing detail will throw SG::ExcBadAuxVar.

◆ 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() [1/2]

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

◆ getObjectCollectionNames() [2/2]

std::vector< std::string > xAOD::TrigComposite_v1::getObjectCollectionNames ( const CLID clid) const

Type erased look up all links stored to collections objects from (container) type clid.

Returns
Vector of names to all collections of links to objects

Definition at line 487 of file TrigComposite_v1.cxx.

487 {
488
489 std::vector< std::string > returnVec;
490 const std::vector< std::string >& names = linkColNames();
491 const std::vector< uint32_t >& clids = linkColClids();
492
493 for( size_t i = 0; i < names.size(); ++i ) {
494 if (names[i].find(s_collectionSuffix) == std::string::npos) { // Note: ==
495 continue; // ARE interested in collection links here
496 }
497 bool clidMatch = false;
499 clidMatch = derivesFromIParticle(clids[i]);
500 } else if (clid == clids[i]) {
501 clidMatch = true;
502 }
503 if (clidMatch) {
504 // Unlike with single links, we expect to find multiple links here. Only add the name once.
505 // Name is mangled in storage, need to un-mangle it before returning it to the user.
506 const std::string unmangledName = names[i].substr(0, names[i].size() - s_collectionSuffix.size());
507 if ( std::none_of(returnVec.begin(), returnVec.end(), [&](const auto& s) {return unmangledName == s;}) ) {
508 returnVec.push_back( std::move(unmangledName) );
509 }
510 }
511 }
512 return returnVec;
513 }
bool derivesFromIParticle(const CLID clid) const
Helper function. Check if the requested type can be down cast to an IParticle transient interface.
const std::vector< std::string > & linkColNames() const
Raw access to the persistent link names.
const std::vector< uint32_t > & linkColClids() const
Raw access to the persistent link CLIDs.
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138
static const SG::AuxElement::Accessor< std::vector< std::string > > names("thrNames")
Accessor for the names of the passed thresholds.

◆ getObjectNames() [1/2]

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

◆ getObjectNames() [2/2]

std::vector< std::string > xAOD::TrigComposite_v1::getObjectNames ( const CLID clid) const

Type erased look up all links stored to objects of (container) type clid.

Returns
Vector of names to all links to objects

Definition at line 464 of file TrigComposite_v1.cxx.

464 {
465
466 std::vector< std::string > returnVec;
467 const std::vector< std::string >& names = linkColNames();
468 const std::vector< uint32_t >& clids = linkColClids();
469
470 for( size_t i = 0; i < names.size(); ++i ) {
471 if (names[i].find(s_collectionSuffix) != std::string::npos) { //Note: !=
472 continue; // ARE *NOT* interested in collection links here
473 }
474 bool clidMatch = false;
476 clidMatch = derivesFromIParticle(clids[i]);
477 } else if (clid == clids[i]) {
478 clidMatch = true;
479 }
480 if (clidMatch) {
481 returnVec.push_back( names[i] );
482 }
483 }
484 return returnVec;
485 }

◆ 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
323 SG::AuxVectorData* container_nc ATLAS_THREAD_SAFE = m_container;
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}
#define ATLAS_THREAD_SAFE

◆ 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 273 of file TrigComposite_v1.cxx.

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

◆ 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 244 of file TrigComposite_v1.cxx.

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

◆ 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 279 of file TrigComposite_v1.cxx.

279 {
280 for (size_t i = 0; i < this->linkColNames().size(); ++i) {
281 if (this->linkColNames().at(i) != name) continue;
282 if (!SG::sgkeyEqual (this->linkColKeys().at(i), key)) continue;
283 if (this->linkColIndices().at(i) != index) continue;
284 if (this->linkColClids().at(i) != clid) continue;
285 return true;
286 }
287 return false;
288 }
const std::vector< index_type > & linkColIndices() const
Raw access to the persistent link indices.
const std::vector< sgkey_t > & linkColKeys() const
Raw access to the persistent link labels.
constexpr bool sgkeyEqual(const sgkey_t a, const sgkey_t b)
Compare two sgkeys for equality.
Definition sgkey_t.h:39

◆ 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()

size_t SG::IAuxElement::index ( ) const
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 452 of file TrigComposite_v1.cxx.

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

◆ 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 338 of file TrigComposite_v1.cxx.

338 {
339 return acc_linkColClids( *this );
340 }

◆ linkColIndices()

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

Raw access to the persistent link indices.

Definition at line 312 of file TrigComposite_v1.cxx.

312 {
313 return acc_linkColIndices( *this );
314 }
static const SG::Accessor< std::vector< TrigComposite_v1::index_type > > acc_linkColIndices("linkColIndices")

◆ linkColIndicesNC()

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

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

Definition at line 334 of file TrigComposite_v1.cxx.

334 {
335 return acc_linkColIndices( *this );
336 }

◆ 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 320 of file TrigComposite_v1.cxx.

320 {
321 return acc_remap_linkColIndices( *this );
322 }

◆ linkColKeys()

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

Raw access to the persistent link labels.

Definition at line 308 of file TrigComposite_v1.cxx.

308 {
309 return acc_linkColKeys( *this );
310 }
static const SG::Accessor< std::vector< TrigComposite_v1::sgkey_t > > acc_linkColKeys("linkColKeys")

◆ linkColKeysNC()

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

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

Definition at line 330 of file TrigComposite_v1.cxx.

330 {
331 return acc_linkColKeys( *this );
332 }

◆ 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 316 of file TrigComposite_v1.cxx.

316 {
317 return acc_remap_linkColKeys( *this );
318 }

◆ 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 326 of file TrigComposite_v1.cxx.

326 {
327 return acc_linkColNames( *this );
328 }

◆ 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
198 m_container = new SG::AuxElementPrivateData;
201}
void setIndex(size_t index)
Set the index of this element within its container.
void setHavePrivateData()
Record that this element currently has private data.

◆ 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}
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.

◆ 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 }
AuxElement & operator=(const AuxElement &other)
Assignment.
bool hasStore() const
Return true if this object has an associated store.

◆ 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}
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
void setNoPrivateData()
Record that this element does not have private data.

◆ 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}
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.

◆ 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 225 of file TrigComposite_v1.cxx.

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

◆ 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 208 of file TrigComposite_v1.cxx.

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

◆ 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}
AuxElement()
Default constructor.
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
void setHadPrivateData()
Record that this element used to have private data.
CONT to(RANGE &&r)
Definition ranges.h:39

◆ 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}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.

◆ 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;
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}
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.

◆ 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 428 of file TrigComposite_v1.cxx.

430 {
431 bool found = false;
432 const std::string mangledName = name + s_collectionSuffix;
433 for (size_t i = 0; i < this->linkColNames().size(); ++i) {
434 if (linkColNames().at(i) != mangledName) {
435 continue;
436 }
437 if (isRemapped()) {
438 keyVec.push_back( linkColKeysRemap().at(i) );
439 clidVec.push_back( linkColClids().at(i) );
440 indexVec.push_back( linkColIndicesRemap().at(i) );
441 } else {
442 keyVec.push_back( linkColKeys().at(i) );
443 clidVec.push_back( linkColClids().at(i) );
444 indexVec.push_back( linkColIndices().at(i) );
445 }
446 found = true;
447 }
448 return found;
449 }
bool isRemapped() const
Information on if linkColKeys() and linkColIndices() are able to access remapped link data Remapping ...
const std::vector< sgkey_t > & linkColKeysRemap() const
Raw access to the persistent link labels. Will attempt to access remapped link data.
const std::vector< index_type > & linkColIndicesRemap() const
Raw access to the persistent link indices. Will attempt to access remapped link data.

◆ 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 409 of file TrigComposite_v1.cxx.

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

◆ 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 342 of file TrigComposite_v1.cxx.

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

◆ 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 248 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 310 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 272 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 259 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 266 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 264 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 270 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 253 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 251 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 268 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 255 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 261 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 275 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 281 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 278 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 284 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 257 of file TrigComposite_v1.h.

◆ supportsThinning

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: