ATLAS Offline Software
ForwardEventInfoCnvAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 //
8 #ifndef XAODFORWARDCNV_FORWARDEVENTINFOCNVALG_H
9 #define XAODFORWARDCNV_FORWARDEVENTINFOCNVALG_H
10 
11 // System include(s):
12 #include <string>
13 
14 // Athena/Gaudi include(s):
16 #include "GaudiKernel/ToolHandle.h"
20 
21 namespace xAODMaker
22 {
23 
28  {
29 
30  public:
32  ForwardEventInfoCnvAlg(const std::string &name, ISvcLocator *svcLoc);
33 
35  virtual StatusCode initialize() override;
37  virtual StatusCode execute(const EventContext &ctx) const override;
38 
39  private:
40  SG::ReadHandleKey<MBTSCollisionTime> m_inputKey{this, "MBTSCollisionsTimeKey", "MBTSCollisionTime"};
41 
42  SG::WriteHandleKey<xAOD::ForwardEventInfoContainer> m_outputKey{this, "ForwardEventInfoKey", "MBTSForwardEventInfo"};
43 
44  ToolHandle<IForwardEventInfoCnvTool> m_cnvTool{this, "CnvTool", "xAODMaker::ForwardEventInfoCnvTool/ForwardEventInfoCnvTool"};
45 
46  }; // class ForwardEventInfoCnvAlg
47 
48 } // namespace xAODMaker
49 
50 #endif // XAODFORWARDCNV_FORWARDEVENTINFOCNVALG_H
IForwardEventInfoCnvTool.h
ForwardEventInfoContainer.h
xAODMaker::ForwardEventInfoCnvAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition: ForwardEventInfoCnvAlg.cxx:25
xAODMaker::ForwardEventInfoCnvAlg::ForwardEventInfoCnvAlg
ForwardEventInfoCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition: ForwardEventInfoCnvAlg.cxx:21
SG::ReadHandleKey< MBTSCollisionTime >
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::ForwardEventInfoCnvAlg::m_cnvTool
ToolHandle< IForwardEventInfoCnvTool > m_cnvTool
Definition: ForwardEventInfoCnvAlg.h:44
xAODMaker::ForwardEventInfoCnvAlg::m_inputKey
SG::ReadHandleKey< MBTSCollisionTime > m_inputKey
Definition: ForwardEventInfoCnvAlg.h:40
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
xAODMaker::ForwardEventInfoCnvAlg
Algorithm creating xAOD::ForwardEventInfos from MBTSCollisionTime object.
Definition: ForwardEventInfoCnvAlg.h:28
MBTSCollisionTime.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::ForwardEventInfoCnvAlg::m_outputKey
SG::WriteHandleKey< xAOD::ForwardEventInfoContainer > m_outputKey
Definition: ForwardEventInfoCnvAlg.h:42
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODMaker::ForwardEventInfoCnvAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition: ForwardEventInfoCnvAlg.cxx:36