ATLAS Offline Software
DummyDecisionWriter.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3  */
13 #include "DummyDecisionWriter.h"
15 #include "StoreGate/WriteHandle.h"
16 
17 
18 namespace DMTest {
19 
20 
25 {
26  ATH_CHECK( m_decisionKey.initialize() );
27  return StatusCode::SUCCESS;
28 }
29 
30 
34 StatusCode DummyDecisionWriter::execute (const EventContext& ctx) const
35 {
37  ATH_CHECK( decH.record (std::make_unique<xAOD::TrigDecision>(),
38  std::make_unique<xAOD::TrigDecisionAuxInfo>()) );
39 
40  return StatusCode::SUCCESS;
41 }
42 
43 
44 } // namespace DMTest
45 
DMTest::DummyDecisionWriter::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: DummyDecisionWriter.cxx:34
TrigDecisionAuxInfo.h
DMTest::DummyDecisionWriter::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: DummyDecisionWriter.cxx:24
WriteHandle.h
Handle class for recording to StoreGate.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DummyDecisionWriter.h
Make a dummy xAOD::TrigDecision to avoid warnings when writing bytestream.
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
DMTest::DummyDecisionWriter::m_decisionKey
SG::WriteHandleKey< xAOD::TrigDecision > m_decisionKey
Definition: DummyDecisionWriter.h:51
DMTest
Definition: B.h:23