ATLAS Offline Software
Namespaces | Macros
BPhysMetaDataHelper.cxx File Reference
#include "AthContainers/AuxTypeRegistry.h"
#include "AthContainers/normalizedTypeinfoName.h"
#include "AthContainers/ConstAccessor.h"
#include <iostream>
#include <utility>
#include "xAODBPhys/BPhysMetaDataHelper.h"
Include dependency graph for BPhysMetaDataHelper.cxx:

Go to the source code of this file.

Namespaces

 xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
 

Macros

#define GET_VALUE_IMP(TYPE)
 
#define GET_VALUES_IMP(SYMBOL, TYPE)
 

Detailed Description

Author
Wolfgang Walkowiak wolfg.nosp@m.ang..nosp@m.walko.nosp@m.wiak.nosp@m.@cern.nosp@m..ch

Definition in file BPhysMetaDataHelper.cxx.

Macro Definition Documentation

◆ GET_VALUE_IMP

#define GET_VALUE_IMP (   TYPE)
Value:
bool BPhysMetaDataHelper::value(const std::string& name, TYPE & val) \
const { \
xAOD::FileMetaData::Accessor< TYPE > acc( m_prefix + name ); \
if ( ! acc.isAvailable( *m_fm ) ) { \
return false; \
} else { \
val = acc( *m_fm ); \
return true; \
} \
}

Definition at line 155 of file BPhysMetaDataHelper.cxx.

◆ GET_VALUES_IMP

#define GET_VALUES_IMP (   SYMBOL,
  TYPE 
)
Value:
std::map<std::string, TYPE> BPhysMetaDataHelper::values ## SYMBOL() const { \
std::map<std::string, TYPE > metaMap; \
const SG::auxid_set_t& auxids = m_fm->getAuxIDs(); \
for ( SG::auxid_t auxid : auxids ) { \
SG::AuxTypeRegistry& reg = SG::AuxTypeRegistry::instance(); \
const std::type_info* ti = reg.getType( auxid ); \
if ( ti != NULL && *ti == typeid( TYPE ) ) { \
SG::ConstAccessor< TYPE > acc( auxid ); \
const std::string name = reg.getName( auxid ); \
metaMap[name] = acc( *m_fm ); \
} \
} \
return metaMap; \
}

Definition at line 183 of file BPhysMetaDataHelper.cxx.

SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:640
athena.value
value
Definition: athena.py:124
python.Bindings.values
values
Definition: Control/AthenaPython/python/Bindings.py:805
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
TYPE
#define TYPE(CODE, TYP, IOTYP)
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47