ATLAS Offline Software
EventInfoUpdateFromContextAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef XAODEVENTINFOCNV_EVENTINFOUPDATEFROMCONTEXTALG_H
16 #define XAODEVENTINFOCNV_EVENTINFOUPDATEFROMCONTEXTALG_H
17 
19 
23 
24 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
27 #endif
28 
29 namespace xAODMaker
30 {
31 
33  {
34  public:
35 
36  EventInfoUpdateFromContextAlg(const std::string &name, ISvcLocator *pSvcLocator);
37  virtual StatusCode initialize() override;
38  virtual StatusCode execute(const EventContext& ctx) const override;
39 
40  private:
41 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
42  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
43 #endif
44 
45  SG::ReadHandleKey<xAOD::EventInfo> m_signalInputKey{ this, "SignalInputKey", "Input_EventInfo", "ReadHandleKey for input xAOD::EventInfo" };
46  SG::WriteHandleKey<xAOD::EventInfo> m_outputKey{ this, "OutputKey", "EventInfo", "WriteHandleKey for Output xAOD::EventInfo" };
47 
48  Gaudi::Property<uint32_t> m_mcChannelNumber{ this, "MCChannelNumber", 0, "sample MC channel number" };
49  };
50 
51 } // namespace xAODMaker
52 
53 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
xAODMaker::EventInfoUpdateFromContextAlg::EventInfoUpdateFromContextAlg
EventInfoUpdateFromContextAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: EventInfoUpdateFromContextAlg.cxx:15
xAODMaker::EventInfoUpdateFromContextAlg
Definition: EventInfoUpdateFromContextAlg.h:33
xAODMaker::EventInfoUpdateFromContextAlg::m_mcChannelNumber
Gaudi::Property< uint32_t > m_mcChannelNumber
Definition: EventInfoUpdateFromContextAlg.h:48
xAODMaker::EventInfoUpdateFromContextAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: EventInfoUpdateFromContextAlg.cxx:36
SG::ReadHandleKey< xAOD::EventInfo >
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::EventInfoUpdateFromContextAlg::m_outputKey
SG::WriteHandleKey< xAOD::EventInfo > m_outputKey
Definition: EventInfoUpdateFromContextAlg.h:46
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
xAODMaker::EventInfoUpdateFromContextAlg::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: EventInfoUpdateFromContextAlg.h:42
SG::WriteHandleKey< xAOD::EventInfo >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfo.h
SG::ReadCondHandleKey< InDet::BeamSpotData >
xAODMaker::EventInfoUpdateFromContextAlg::initialize
virtual StatusCode initialize() override
Definition: EventInfoUpdateFromContextAlg.cxx:18
BeamSpotData.h
xAODMaker::EventInfoUpdateFromContextAlg::m_signalInputKey
SG::ReadHandleKey< xAOD::EventInfo > m_signalInputKey
Definition: EventInfoUpdateFromContextAlg.h:45