 |
ATLAS Offline Software
|
Class describing a truth vertex in the MC record.
More...
#include <TruthVertex_v1.h>
|
| TruthVertex_v1 () |
| Default constructor. More...
|
|
Type::ObjectType | type () const |
| The type of the object as a simple enumeration. More...
|
|
void | toPersistent () |
| Function making sure that the object is ready for persistification. More...
|
|
void | assign (const AuxElement &other, bool warnUnlocked=false) |
| Assignment. More...
|
|
const SG::AuxVectorData * | container () const |
| Return the container holding this element. More...
|
|
SG::AuxVectorData * | container () |
| 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::IConstAuxStore * | getConstStore () const |
| Return the current store, as a const interface. More...
|
|
SG::IAuxStore * | getStore () const |
| Return the current store, as a non-const interface. More...
|
|
void | clearCache () |
| Clear the cached aux data pointers. More...
|
|
const SG::auxid_set_t & | getAuxIDs () const |
| Return a set of identifiers for existing data items for this object. More...
|
|
const SG::auxid_set_t & | getDecorIDs () 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...
|
|
|
int | status () const |
| Get the vertex status. More...
|
|
void | setStatus (int value) |
| Set the vertex status. More...
|
|
int | uid () const |
| Get the vertex unique ID. More...
|
|
void | setUid (int value) |
| Set the vertex unique ID. More...
|
|
Class describing a truth vertex in the MC record.
The xAOD truth record mimicks the structure of HepMC. Truth particles and truth vertices form a decay tree. Where each truth particle is connected to a single production and decay vertex. And each vertex is connected to one or more incoming, and one or more outgoing particles.
- Author
- Andy Buckley Andy..nosp@m.Buck.nosp@m.ley@c.nosp@m.ern..nosp@m.ch
Definition at line 37 of file TruthVertex_v1.h.
◆ Accessor
template<class T , class ALLOC = AuxAllocator_t<T>>
◆ ConstAccessor
template<class T , class ALLOC = AuxAllocator_t<T>>
◆ Decorator
template<class T , class ALLOC = AuxAllocator_t<T>>
◆ FourVec_t
◆ GenVecFourVec_t
◆ TPLink_t
◆ TPLinks_t
Type used to save the links to incoming and outgoing particles.
Definition at line 64 of file TruthVertex_v1.h.
◆ TypelessConstAccessor
◆ PrivateStoreState
The current private data state.
Enumerator |
---|
NO_PRIVATE | |
HAVE_PRIVATE | |
HAD_PRIVATE | |
Definition at line 131 of file IAuxElement.h.
◆ TruthVertex_v1()
xAOD::TruthVertex_v1::TruthVertex_v1 |
( |
| ) |
|
◆ addIncomingParticleLink()
void xAOD::TruthVertex_v1::addIncomingParticleLink |
( |
const TPLink_t & |
link | ) |
|
Add one incoming particle.
Definition at line 88 of file TruthVertex_v1.cxx.
90 incomingParticleLinksAcc( *this ).push_back( link );
◆ addOutgoingParticleLink()
void xAOD::TruthVertex_v1::addOutgoingParticleLink |
( |
const TPLink_t & |
link | ) |
|
Add one outgoing particle.
Definition at line 138 of file TruthVertex_v1.cxx.
140 outgoingParticleLinksAcc( *this ).push_back( link );
◆ assign()
void SG::AuxElement::assign |
( |
const AuxElement & |
other, |
|
|
bool |
warnUnlocked = false |
|
) |
| |
|
inherited |
Assignment.
- Parameters
-
other | The object from which we're assigning. |
warnUnlocked | If 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>>
Fetch an aux data variable, as a non-const reference.
- Parameters
-
name | Name 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>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name 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>>
Fetch an aux data variable, as a non-const reference.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name 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>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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>>
Fetch an aux decoration, as a non-const reference.
- Parameters
-
name | Name 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>>
Fetch an aux decoration, as a non-const reference.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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.
◆ 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.
◆ clearAuxHelper()
void SG::AuxElement::clearAuxHelper |
( |
AuxVectorData & |
container, |
|
|
size_t |
index |
|
) |
| |
|
staticprivateinherited |
Clear all aux data associated with an element.
- Parameters
-
container | Container of the element. |
index | Index of this element within the container. |
If the associated aux data is const, this throws ExcConstAuxData
.
Definition at line 639 of file AuxElement.cxx.
◆ 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.
◆ 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.
◆ clearIncomingParticleLinks()
void xAOD::TruthVertex_v1::clearIncomingParticleLinks |
( |
| ) |
|
Remove all incoming particles.
Definition at line 94 of file TruthVertex_v1.cxx.
96 incomingParticleLinksAcc( *this ).clear();
◆ clearOutgoingParticleLinks()
void xAOD::TruthVertex_v1::clearOutgoingParticleLinks |
( |
| ) |
|
Remove all outgoing particles.
Definition at line 144 of file TruthVertex_v1.cxx.
146 outgoingParticleLinksAcc( *this ).clear();
◆ container() [1/2]
Return the container holding this element.
◆ container() [2/2]
Return the container holding this element.
◆ copyAux()
Copy aux data from another object.
- Parameters
-
other | The object from which to copy. |
warnUnlocked | If 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.
◆ copyAuxHelper()
Copy aux data from another object.
- Parameters
-
container | Container of the element. |
index | Index of this element within the container. |
other | The object from which to copy. |
warnUnlocked | If 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.
683 #ifndef XAOD_STANDALONE
688 size_t oindex =
other.index();
692 #ifndef XAOD_STANDALONE
693 if (other_decors.
test (auxid)) {
695 other_ids.reset (auxid);
698 if (warnUnlocked &&
r.getName(auxid) !=
"mcEventWeights") {
699 std::ostringstream
ss;
700 ss <<
"skipped unlocked decoration " <<
r.getName(auxid)
701 <<
" (" << auxid <<
")";
707 if (!
r.isLinked (auxid)) {
713 if (!other_ids.test (auxid)) {
◆ eta()
float xAOD::TruthVertex_v1::eta |
( |
| ) |
const |
◆ genvecV4()
◆ getAuxIDs()
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.
357 #ifdef ATHCONTAINERS_R21_COMPAT
◆ getConstStore()
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.
◆ getDecorIDs()
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.
380 #ifdef ATHCONTAINERS_R21_COMPAT
◆ getStore()
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.
322 #ifdef ATHCONTAINERS_R21_COMPAT
◆ hadPrivateData()
bool SG::IAuxElement::hadPrivateData |
( |
| ) |
const |
|
protectedinherited |
True if this element had private data before it was added to its current container.
◆ 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.
◆ 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.
◆ havePrivateData()
bool SG::IAuxElement::havePrivateData |
( |
| ) |
const |
|
protectedinherited |
True if this element currently has private data.
◆ incomingParticle()
Get one of the incoming particles.
Definition at line 70 of file TruthVertex_v1.cxx.
73 if( ( ! incomingParticleLinksAcc.isAvailable( *
this ) ) ||
74 ( incomingParticleLinksAcc( *this ).size() <=
index ) ) {
79 const TPLink_t& ipl = incomingParticleLinksAcc( *
this )[
index ];
80 if( ! ipl.isValid() ) {
◆ incomingParticleLinks()
const TPLinks_t& xAOD::TruthVertex_v1::incomingParticleLinks |
( |
| ) |
const |
Get all the incoming particles.
◆ 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>>
Check if an aux variable is available for reading.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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>>
Check if an aux variable is available for writing.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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>>
Check if an aux variable is available for writing as a decoration.
- Parameters
-
name | Name of the aux variable. |
clsname | The 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.
◆ 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.
◆ 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
-
other | The object from which aux data should be copied. |
warnUnlocked | If 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
-
other | The object from which aux data should be copied. |
warnUnlocked | If 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
-
other | The object from which aux data should be copied. |
warnUnlocked | If 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.
◆ 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
-
other | The object from which aux data should be copied. |
warnUnlocked | If 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.
◆ nIncomingParticles()
size_t xAOD::TruthVertex_v1::nIncomingParticles |
( |
| ) |
const |
Get the number of incoming particles.
◆ noPrivateData()
bool SG::IAuxElement::noPrivateData |
( |
| ) |
const |
|
protectedinherited |
True if this element has no private data.
◆ nOutgoingParticles()
size_t xAOD::TruthVertex_v1::nOutgoingParticles |
( |
| ) |
const |
Get the number of outgoing particles.
◆ outgoingParticle()
Get one of the outgoing particles.
Definition at line 120 of file TruthVertex_v1.cxx.
123 if( ( ! outgoingParticleLinksAcc.isAvailable( *
this ) ) ||
124 ( outgoingParticleLinksAcc( *this ).size() <=
index ) ) {
129 const TPLink_t& opl = outgoingParticleLinksAcc( *
this )[
index ];
130 if( ! opl.isValid() ) {
◆ outgoingParticleLinks()
const TPLinks_t& xAOD::TruthVertex_v1::outgoingParticleLinks |
( |
| ) |
const |
Get all the outgoing particles.
◆ particles_in()
Get the incoming particles.
Definition at line 60 of file TruthVertex_v1.cxx.
61 std::vector<const TruthParticle*>
res;
◆ particles_out()
Get the outgoing particles.
Definition at line 65 of file TruthVertex_v1.cxx.
66 std::vector<const TruthParticle*>
res;
◆ perp()
float xAOD::TruthVertex_v1::perp |
( |
| ) |
const |
Vertex transverse distance from the beam line.
Definition at line 164 of file TruthVertex_v1.cxx.
168 return std::sqrt(
x() *
x() +
y() *
y() );
◆ phi()
float xAOD::TruthVertex_v1::phi |
( |
| ) |
const |
◆ 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.
221 typeid(*
m_container) !=
typeid(AuxElementPrivateData))
◆ 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.
443 #ifdef ATHCONTAINERS_R21_COMPAT
◆ setConstStore()
Synonym for setStore
with IConstAuxStore
.
- Parameters
-
◆ 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.
◆ setIncomingParticleLinks()
void xAOD::TruthVertex_v1::setIncomingParticleLinks |
( |
const TPLinks_t & |
links | ) |
|
Set all the incoming particles.
◆ setIndex()
Set the index/container for this element.
- Parameters
-
index | The index of this object within the container. |
container | The 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()
Set the index/container for this element.
- Parameters
-
index | The index of this object within the container. |
container | The 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.
507 #ifdef ATHCONTAINERS_R21_COMPAT
525 typeid(*
m_container) ==
typeid(AuxElementPrivateData))
543 "from a container.");
◆ setNonConstStore()
Synonym for setStore
with IAuxStore
.
- Parameters
-
◆ setNoPrivateData()
void SG::IAuxElement::setNoPrivateData |
( |
| ) |
|
|
privateinherited |
Record that this element does not have private data.
◆ setOutgoingParticleLinks()
void xAOD::TruthVertex_v1::setOutgoingParticleLinks |
( |
const TPLinks_t & |
links | ) |
|
Set all the outgoing particles.
◆ setStatus()
void xAOD::TruthVertex_v1::setStatus |
( |
int |
value | ) |
|
◆ setStore() [1/3]
Set the store associated with this object.
- Parameters
-
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
-
store | Link to the new store. |
Definition at line 269 of file AuxElement.cxx.
◆ setStore() [2/3]
Set the store associated with this object.
- Parameters
-
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.
◆ setStore() [3/3]
Set the store associated with this object.
- Parameters
-
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.
◆ setStore1()
Set the store associated with this object.
- Parameters
-
Helper for setStore
. Creates the AuxElementStandaloneData
object if needed and returns it.
- Parameters
-
Helper for setStore
. Creates the @x AuxElementStandaloneData object if needed and returns it.
Definition at line 461 of file AuxElement.cxx.
467 AuxElementStandaloneData*
data =
new AuxElementStandaloneData;
474 return static_cast<AuxElementStandaloneData*
> (
container());
477 throw ExcBadPrivateStore (
"Attempt to attach a standalone store to an "
478 "object in a container or with a private store.");
489 throw ExcBadPrivateStore (
"Attempt to remove a standalone store from an "
490 "object in a container or with a private store.");
◆ setT()
void xAOD::TruthVertex_v1::setT |
( |
float |
value | ) |
|
◆ setUid()
void xAOD::TruthVertex_v1::setUid |
( |
int |
value | ) |
|
Set the vertex unique ID.
◆ setX()
void xAOD::TruthVertex_v1::setX |
( |
float |
value | ) |
|
Set the x displacement of the vertex.
◆ setY()
void xAOD::TruthVertex_v1::setY |
( |
float |
value | ) |
|
Set the y displacement of the vertex.
◆ setZ()
void xAOD::TruthVertex_v1::setZ |
( |
float |
value | ) |
|
Set the vertex's longitudinal distance from the origin.
◆ status()
int xAOD::TruthVertex_v1::status |
( |
| ) |
const |
◆ t()
float xAOD::TruthVertex_v1::t |
( |
| ) |
const |
◆ toPersistent()
void xAOD::TruthVertex_v1::toPersistent |
( |
| ) |
|
Function making sure that the object is ready for persistification.
Definition at line 201 of file TruthVertex_v1.cxx.
204 if( incomingParticleLinksAcc.isAvailableWritable( *
this ) ) {
207 for( ; itr !=
end; ++itr ) {
213 if( outgoingParticleLinksAcc.isAvailableWritable( *
this ) ) {
216 for( ; itr !=
end; ++itr ) {
◆ 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.
◆ type()
◆ uid()
int xAOD::TruthVertex_v1::uid |
( |
| ) |
const |
Get the vertex unique ID.
◆ 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.
283 typeid(*m_container) ==
typeid(AuxElementPrivateData);
◆ 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.
293 typeid(*m_container) ==
typeid(AuxElementStandaloneData);
◆ v4()
◆ x()
float xAOD::TruthVertex_v1::x |
( |
| ) |
const |
◆ y()
float xAOD::TruthVertex_v1::y |
( |
| ) |
const |
◆ z()
float xAOD::TruthVertex_v1::z |
( |
| ) |
const |
Vertex longitudinal distance along the beam line form the origin.
◆ m_container
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
◆ 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:
JetConstituentVector::iterator iterator
size_t nOutgoingParticles() const
Get the number of outgoing particles.
const SG::IConstAuxStore * getConstStore() const
Return the current store, as a const interface.
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
char data[hepevt_bytes_allocation_ATLAS]
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > GenVecFourVec_t
Base 4 Momentum type for TruthVector.
TLorentzVector FourVec_t
The 4-vector type.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
const SG::auxid_set_t & getWritableAuxIDs() const
Return a set of identifiers for writable data items in this store.
Base class for elements of a container that can have aux data.
const SG::AuxVectorData * m_container
The container of which this object is an element.
static void clearAuxHelper(AuxVectorData &container, size_t index)
Clear all aux data associated with an element.
bool hasNonConstStore() const
Return true if this object has an associated non-const store.
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
Exception — Non-const operation performed on const aux data.
void setNoPrivateData()
Record that this element does not have private data.
float y() const
Vertex y displacement.
float t() const
Vertex time.
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
Handle mappings between names and auxid_t.
size_t index() const
Return the index of this element within its container.
void setHadPrivateData()
Record that this element used to have private data.
size_t auxid_t
Identifier for a particular aux data item.
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.
AuxElement()
Default constructor.
bool havePrivateData() const
True if this element currently has private data.
#define ATHCONTAINERS_WARNING(ctx, msg)
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
std::pair< std::vector< unsigned int >, bool > res
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Internal data container for private store.
const TruthParticle_v1 * incomingParticle(size_t index) const
Get one of the incoming particles.
TruthVertex_v1 TruthVertex
Typedef to implementation.
bool hasStore() const
Return true if this object has an associated store.
void setHavePrivateData()
Record that this element currently has private data.
void clearCache()
Clear the cached aux data pointers.
void makePrivateStore()
Create a new (empty) private store for this object.
float x() const
Vertex x displacement.
void setIndex(size_t index)
Set the index of this element within its container.
ElementLink< TruthParticleContainer > TPLink_t
Type of one truth particle link.
bool clearDecorations() const
Clear all decorations.
Exception — Bad use of private store.
size_t nIncomingParticles() const
Get the number of incoming particles.
float z() const
Vertex longitudinal distance along the beam line form the origin.
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
A set of aux data identifiers.
Manage lookup of vectors of auxiliary data.
#define ATLAS_THREAD_SAFE
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.
const SG::AuxVectorData * container() const
Return the container holding this element.
GenVecFourVec_t genvecV4() const
The full 4-vector of the particle : GenVector form.
const TruthParticle_v1 * outgoingParticle(size_t index) const
Get one of the outgoing particles.
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
static void copyAuxHelper(AuxVectorData &container, size_t index, const ConstAuxElement &other, bool warnUnlocked)
Copy aux data from another object.
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.
bool test(bit_t bit) const
Test to see if a bit is set.