 |
ATLAS Offline Software
|
Go to the documentation of this file.
32 return StatusCode::SUCCESS;
39 int runNumber = ctx.eventID().run_number();
43 ATH_CHECK(
hits.record( std::make_unique<ExampleHitContainer>() ) );
44 for (
int i = 0;
i < 10;
i++) {
45 auto hitObj = std::make_unique<ExampleHit>();
47 hitObj->setY(-2.346 +
runNumber * 100 - 5.6789 *
i);
48 hitObj->setZ(34.567 -
eventNumber * 100 + 87.6 / (
i + 0.456));
49 hitObj->setDetector(
"DummyHitDetector");
50 hits->push_back(std::move (hitObj));
58 return StatusCode::SUCCESS;
63 return StatusCode::SUCCESS;
SG::WriteHandleKey< ExampleHitContainer > m_aliasKey
virtual ~WriteData()
Destructor.
virtual StatusCode finalize() override
virtual StatusCode execute(const EventContext &ctx) const override
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< ExampleHitContainer > m_exampleHitKey
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 StatusCode initialize() override
Gaudi Service Interface method implementations:
This file contains the class definition for the ExampleHitContainer class.
WriteData(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
This file contains the class definition for the WriteData class.