ATLAS Offline Software
EventInfoCnvAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAODEVENTINFOCNV_EVENTINFOCNVALG_H
6 #define XAODEVENTINFOCNV_EVENTINFOCNVALG_H
7 
8 // System include(s):
9 #include <string>
10 
11 // Gaudi/Athena include(s):
13 #include "StoreGate/WriteHandle.h"
14 #include "GaudiKernel/ToolHandle.h"
15 
16 // Local include(s):
20 #include "EventInfo/EventInfo.h"
21 
22 namespace xAODMaker {
23 
33 
34  public:
36  EventInfoCnvAlg( const std::string& name, ISvcLocator* svcLoc );
37 
39  virtual StatusCode initialize() override;
41  virtual StatusCode execute (const EventContext& ctx) const override;
42 
43  private:
49 
52 
54  ToolHandle< IEventInfoCnvTool > m_cnvTool;
55 
56  }; // class EventInfoCnvAlg
57 
58 } // namespace xAODMaker
59 
60 #endif // XAODEVENTINFOCNV_EVENTINFOCNVALG_H
xAODMaker::EventInfoCnvAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition: EventInfoCnvAlg.cxx:37
xAODMaker::EventInfoCnvAlg::m_xaodKey
SG::WriteHandleKey< xAOD::EventInfo > m_xaodKey
Key for the output object.
Definition: EventInfoCnvAlg.h:48
SG::ReadHandleKey< EventInfo >
xAODMaker
Definition: StoreGateSvc.h:72
EventInfoContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteHandle.h
Handle class for recording to StoreGate.
xAODMaker::EventInfoCnvAlg::m_aodKey
SG::ReadHandleKey< EventInfo > m_aodKey
Key for the input object If blank, we do a keyless retrieve from SG instead!
Definition: EventInfoCnvAlg.h:46
SG::WriteHandleKey< xAOD::EventInfo >
xAODMaker::EventInfoCnvAlg::m_pileupKey
SG::WriteHandleKey< xAOD::EventInfoContainer > m_pileupKey
For pileup.
Definition: EventInfoCnvAlg.h:51
xAODMaker::EventInfoCnvAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition: EventInfoCnvAlg.cxx:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
xAODMaker::EventInfoCnvAlg::EventInfoCnvAlg
EventInfoCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition: EventInfoCnvAlg.cxx:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
EventInfo.h
xAODMaker::EventInfoCnvAlg
Algorithm for creating xAOD::EventInfo objects for the xAOD.
Definition: EventInfoCnvAlg.h:32
IEventInfoCnvTool.h
xAODMaker::EventInfoCnvAlg::m_cnvTool
ToolHandle< IEventInfoCnvTool > m_cnvTool
Handle to the converter tool.
Definition: EventInfoCnvAlg.h:54