|
ATLAS Offline Software
|
Go to the documentation of this file.
18 :
SG::AuxElement(), m_container( nullptr ) {
33 throw std::runtime_error(
"Index out of range" );
38 accBits(
"passBits" );
39 std::vector< uint32_t >& bits = accBits( *
this );
42 const size_t vec_element =
index / 32;
43 const size_t vec_index =
index % 32;
46 if( vec_element >= bits.size() ) {
47 throw std::runtime_error(
"The object is in an inconsistent state" );
51 const uint32_t bit = ( 0x1 << vec_index );
58 bits[ vec_element ] =
mask;
73 throw std::runtime_error(
"Index out of range" );
77 const std::vector< uint32_t >& bits =
passBits();
80 const size_t vec_element =
index / 32;
81 const size_t vec_index =
index % 32;
84 if( vec_element >= bits.size() ) {
85 throw std::runtime_error(
"The object is in an inconsistent state" );
89 const uint32_t bit = ( 0x1 << vec_index );
91 return (
mask & bit );
103 static const std::hash< std::string >
helper;
117 containerKey, setContainerKey )
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
bool isPassing(const OBJ *obj, const CONT *container) const
Check if an element of a container is passing/failing.
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Helper class to provide type-safe access to aux data.
static uint32_t hash(const std::string &key)
Function calculating a "hash" out of a string.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
uint32_t size() const
The size of the target container.
Type describing which elements in a container passed a trigger chain.
TrigPassBits_v1()
Default constructor.
const std::vector< uint32_t > & passBits() const
The internal bitmap created with the hypo decisions.
void markPassing(const OBJ *obj, const CONT *container, bool passed=true)
Mark one of the elements of the target container as passing/failing.
setPassBits containerClid
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1