![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
15 ATH_MSG_ERROR(
"Output attribute list name should not be empty.");
16 return StatusCode::FAILURE;
25 return StatusCode::SUCCESS;
36 return StatusCode::FAILURE;
40 std::unique_ptr<AthenaAttributeList> attribList =
41 m_tool->getAttributeListPtr( *h_evt );
48 for (
auto it = h_att->specification().begin();
49 it!= h_att->specification().end(); ++
it) {
51 if (
it->typeName()==
"bool"&&!attribList->exists(
it->name())) {
54 if (
it->name().find(
m_filter)!=std::string::npos) {
56 (*attribList).extend(
it->name(),
it->type());
57 (*attribList)[
it->name()].data<
bool>() = (*h_att)[
it->name()].data<
bool>();
73 return StatusCode::SUCCESS;
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Gaudi::Property< bool > m_propInput
SG::WriteHandleKey< AthenaAttributeList > m_attributeListName
bool empty() const
Test if the key is blank.
Handle class for recording to StoreGate.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Gaudi::Property< std::string > m_filter
SG::ReadHandleKey< AthenaAttributeList > m_inputAttList
ToolHandle< EventInfoAttListTool > m_tool
Global Event Tag Tool.
virtual StatusCode initialize() override
virtual StatusCode execute() override
Handle class for reading from StoreGate.