Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 #include "EventInfo/EventInfo.h"
27 #include "GaudiKernel/ThreadLocalContext.h"
30 ISvcLocator* pSvcLocator)
52 ATH_MSG_ERROR(
"Caught exception from creation of AthenaAttributeList. Message: "
55 return (StatusCode::FAILURE);
61 return StatusCode::SUCCESS;
72 const EventID* myEventID=eventInfo->event_ID();
75 const EventContext& ctx = Gaudi::Hive::currentContext();
76 unsigned int iEvent = ctx.evt() + 1;
80 (*attributes)[
"Run"].setValue(myEventID->run_number());
81 (*attributes)[
"Event"].setValue(myEventID->event_number());
83 (*attributes)[
"IEvent"].setValue(iEvent);
85 (*attributes)[
"MissingET"].setValue(7.0
f*iEvent);
86 (*attributes)[
"electronPT"].setValue(5.0
f*iEvent);
88 ATH_MSG_ERROR(
"Caught exception from setValue for attributes. Message: "
91 return (StatusCode::FAILURE);
97 coral::AttributeList::const_iterator last =
attributes->end();
99 std::stringstream
str;
100 (*first).toOutputStream(
str);
102 <<
" type " << (*first).specification().typeName()
110 return StatusCode::SUCCESS;
116 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Test Algorithm for testing creation of explicit collections, writes an AttributeList to the transient...
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
virtual StatusCode finalize()
Algorithm finalize at end of job.
::StatusCode StatusCode
StatusCode definition for legacy code.
~AthenaPoolTestAttrWriter()
Algorithm destructor.
AthenaAttributeList * m_attributes
Create attr list at intitialize and use each event.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
virtual StatusCode execute()
Algorithm execute once per event.
AthenaPoolTestAttrWriter(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
This class provides general information about an event. Event information is provided by the accessor...
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
virtual StatusCode initialize()
Algorithm initialize at begin of job.