ATLAS Offline Software
Loading...
Searching...
No Matches
DummyDecisionWriter.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3 */
11
12
13#include "DummyDecisionWriter.h"
16
17
18namespace DMTest {
19
20
25{
26 ATH_CHECK( m_decisionKey.initialize() );
27 return StatusCode::SUCCESS;
28}
29
30
34StatusCode 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
#define ATH_CHECK
Evaluate an expression and check for errors.
Make a dummy xAOD::TrigDecision to avoid warnings when writing bytestream.
Handle class for recording to StoreGate.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
SG::WriteHandleKey< xAOD::TrigDecision > m_decisionKey
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Definition B.h:23