![]() |
ATLAS Offline Software
|
Type describing which elements in a container passed a trigger chain. More...
#include <TrigPassBits_v1.h>
Public Member Functions | |
| TrigPassBits_v1 () | |
| Default constructor. | |
Raw data accessors | |
| uint32_t | size () const |
| The size of the target container. | |
| void | setSize (uint32_t value) |
| Set the size of the target container. | |
| const std::vector< uint32_t > & | passBits () const |
| The internal bitmap created with the hypo decisions. | |
| void | setPassBits (const std::vector< uint32_t > &value) |
| Set the internal bitmap directly (not recommended). | |
| uint32_t | containerKey () const |
| Hashed SG key of the target container. | |
| void | setContainerKey (uint32_t value) |
| Set the hashed SG key of the target container. | |
| uint32_t | containerClid () const |
| CLID of the target container. | |
| void | setContainerClid (uint32_t value) |
| Set the CLID of the target container. | |
Static Public Attributes | |
| static const uint32_t | DEFAULT_KEY = 0xffff |
| Default hashed container key, in case no explicit value was specified. | |
Private Attributes | |
| const void * | m_container |
| Transient pointer to the target container. | |
Helper functions for easier usage | |
| template<class CONT> | |
| void | reset (const CONT *container, uint32_t containerKey=0xffff) |
| Function configuring and resetting the object for a new target. | |
| template<class OBJ, class CONT> | |
| void | markPassing (const OBJ *obj, const CONT *container, bool passed=true) |
| Mark one of the elements of the target container as passing/failing. | |
| void | markPassing (size_t index, bool passed=true) |
| Mark one of the elements of the target container as passing/failing. | |
| template<class OBJ, class CONT> | |
| bool | isPassing (const OBJ *obj, const CONT *container) const |
| Check if an element of a container is passing/failing. | |
| template<class OBJ, class CONT> | |
| bool | isPassing (const OBJ *obj, const CONT *container, uint32_t containerKey) const |
| Check if an element of a container is passing/failing. | |
| template<class OBJ, class CONT> | |
| bool | isPassing (const OBJ *obj, const CONT *container, const std::string &containerKey) const |
| Check if an element of a container is passing/failing. | |
| bool | isPassing (size_t index) const |
| Check if an element of a container is passing/failing. | |
| static uint32_t | hash (const std::string &key) |
| Function calculating a "hash" out of a string. | |
Type describing which elements in a container passed a trigger chain.
This type allows us to attach simple pass/fail information to the containers that we reconstructed in Fex algorithms, in Hypo algorithms. In this case we can't just decorate the original objects, as we may want to evaluate a lot of hypotheses on the exact same objects.
Definition at line 38 of file TrigPassBits_v1.h.
| xAOD::TrigPassBits_v1::TrigPassBits_v1 | ( | ) |
Default constructor.
Definition at line 17 of file TrigPassBits_v1.cxx.
Function calculating a "hash" out of a string.
Helper function used to create a well defined hash of a string key.
Used to create the containerKey value stored in the object.
| key | The string key to create a hash out of |
Definition at line 100 of file TrigPassBits_v1.cxx.
| bool xAOD::TrigPassBits_v1::isPassing | ( | const OBJ * | obj, |
| const CONT * | container ) const |
Check if an element of a container is passing/failing.
| bool xAOD::TrigPassBits_v1::isPassing | ( | const OBJ * | obj, |
| const CONT * | container, | ||
| const std::string & | containerKey ) const |
Check if an element of a container is passing/failing.
| bool xAOD::TrigPassBits_v1::isPassing | ( | const OBJ * | obj, |
| const CONT * | container, | ||
| uint32_t | containerKey ) const |
Check if an element of a container is passing/failing.
| bool xAOD::TrigPassBits_v1::isPassing | ( | size_t | index | ) | const |
Check if an element of a container is passing/failing.
Non-template function for checking the state of an object with a given index inside the container.
| index | The index of the object to check the state of |
Definition at line 69 of file TrigPassBits_v1.cxx.
| void xAOD::TrigPassBits_v1::markPassing | ( | const OBJ * | obj, |
| const CONT * | container, | ||
| bool | passed = true ) |
Mark one of the elements of the target container as passing/failing.
| void xAOD::TrigPassBits_v1::markPassing | ( | size_t | index, |
| bool | passed = true ) |
Mark one of the elements of the target container as passing/failing.
Non-template function for marking an element with the specified index as passing/non-passing.
Performs fewer checks than the template function, so should be used with care.
| index | The index of the object to set the state of |
| passed | The "passing state" of the object with the specified index |
Definition at line 29 of file TrigPassBits_v1.cxx.
The internal bitmap created with the hypo decisions.
| void xAOD::TrigPassBits_v1::reset | ( | const CONT * | container, |
| uint32_t | containerKey = 0xffff ) |
Function configuring and resetting the object for a new target.
| void xAOD::TrigPassBits_v1::setContainerClid | ( | uint32_t | value | ) |
| void xAOD::TrigPassBits_v1::setContainerKey | ( | uint32_t | value | ) |
Set the internal bitmap directly (not recommended).
| uint32_t xAOD::TrigPassBits_v1::size | ( | ) | const |
The size of the target container.
Default hashed container key, in case no explicit value was specified.
Definition at line 45 of file TrigPassBits_v1.h.
|
private |
Transient pointer to the target container.
Definition at line 107 of file TrigPassBits_v1.h.