![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
45 ATH_MSG_DEBUG(
" name " << (*first).name() <<
" type " << (*first).typeName());
50 return StatusCode::SUCCESS;
56 unsigned int eventNumber = ctx.eventID().event_number();
57 unsigned int runNumber = ctx.eventID().run_number();
61 auto tagAttribList = std::make_unique<TagAthenaAttributeList>(*attribListSpec);
62 (*tagAttribList)[
"RunNumber"].data<
unsigned int>() =
runNumber;
63 (*tagAttribList)[
"EventNumber"].data<
unsigned int>() =
eventNumber;
65 (*tagAttribList)[
"MagicNumber"].data<
unsigned int>() =
m_magic.value();
68 coral::AttributeListSpecification* cspec =
new coral::AttributeListSpecification;
70 auto attribList = std::make_unique<AthenaAttributeList>(*cspec);
72 (*attribList)[
"RunNumber"].data<
unsigned int>() =
runNumber;
73 (*attribList)[
"EventNumber"].data<
unsigned int>() =
eventNumber;
75 (*attribList)[
"MagicNumber"].data<
unsigned int>() =
m_magic.value();
84 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode execute(const EventContext &ctx) const override
WriteTag(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
const_iterator begin() const
Returns a forward iterator.
An algorithm that can be simultaneously executed in multiple threads.
void extend(const std::string &name, const std::string &unitName="UNKNOWN", const std::string &groupName="UNKNOWN")
Appends a new specification.
Handle class for recording to StoreGate.
::StatusCode StatusCode
StatusCode definition for legacy code.
This file contains the class definition for the WriteTag class.
const_iterator end() const
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandleKey< AthenaAttributeList > m_key
void release() const
Decrements the reference counter.
virtual ~WriteTag()
Destructor.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
AthenaAttributeListSpecification * m_attribListSpec
Specification of the event tag metadata schema.
virtual StatusCode finalize() override
SG::WriteHandleKey< TagAthenaAttributeList > m_tagKey
void coralSpec(coral::AttributeListSpecification &) const
Fills a coral Specification.
virtual StatusCode initialize() override
Gaudi Service Interface method implementations: