ATLAS Offline Software
EventInfoOverlay.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 OVERLAYCOMMONALGS_EVENTINFOOVERLAY_H
16 #define OVERLAYCOMMONALGS_EVENTINFOOVERLAY_H
17 
20 
21 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
24 #endif
25 
26 namespace xAODMaker
27 {
28 
30 {
31 public:
32  EventInfoOverlay(const std::string &name, ISvcLocator *pSvcLocator);
33 
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute(const EventContext& ctx) const override;
36 
37 private:
38 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
39  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
40 #endif
41 
42  SG::ReadHandleKey<xAOD::EventInfo> m_bkgInputKey{ this, "BkgInputKey", "Bkg_EventInfo", "ReadHandleKey for Background xAOD::EventInfo" };
43  SG::ReadHandleKey<xAOD::EventInfo> m_signalInputKey{ this, "SignalInputKey", "Sig_EventInfo", "ReadHandleKey for Signal xAOD::EventInfo" };
44  SG::WriteHandleKey<xAOD::EventInfo> m_outputKey{ this, "OutputKey", "EventInfo", "WriteHandleKey for Output xAOD::EventInfo" };
45 
46  Gaudi::Property<bool> m_dataOverlay{ this, "DataOverlay", false, "True if running data overlay" };
47  Gaudi::Property<bool> m_validateBeamSpot{ this, "ValidateBeamSpot", false, "validate input beamspot size" };
48  Gaudi::Property<uint32_t> m_mcChannelNumber{ this, "MCChannelNumber", 0, "sample MC channel number" };
49 };
50 
51 } // namespace xAODMaker
52 
53 #endif
xAODMaker::EventInfoOverlay::m_signalInputKey
SG::ReadHandleKey< xAOD::EventInfo > m_signalInputKey
Definition: EventInfoOverlay.h:43
xAODMaker::EventInfoOverlay::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: EventInfoOverlay.h:39
SG::ReadHandleKey< xAOD::EventInfo >
xAODMaker
Definition: StoreGateSvc.h:72
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
xAODMaker::EventInfoOverlay::m_bkgInputKey
SG::ReadHandleKey< xAOD::EventInfo > m_bkgInputKey
Definition: EventInfoOverlay.h:42
SG::WriteHandleKey< xAOD::EventInfo >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::EventInfoOverlay
Definition: EventInfoOverlay.h:30
xAODMaker::EventInfoOverlay::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: EventInfoOverlay.cxx:45
xAODMaker::EventInfoOverlay::EventInfoOverlay
EventInfoOverlay(const std::string &name, ISvcLocator *pSvcLocator)
Definition: EventInfoOverlay.cxx:16
xAODMaker::EventInfoOverlay::m_mcChannelNumber
Gaudi::Property< uint32_t > m_mcChannelNumber
Definition: EventInfoOverlay.h:48
ReadCondHandleKey.h
xAODMaker::EventInfoOverlay::m_outputKey
SG::WriteHandleKey< xAOD::EventInfo > m_outputKey
Definition: EventInfoOverlay.h:44
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODMaker::EventInfoOverlay::initialize
virtual StatusCode initialize() override
Definition: EventInfoOverlay.cxx:20
EventInfo.h
SG::ReadCondHandleKey< InDet::BeamSpotData >
xAODMaker::EventInfoOverlay::m_dataOverlay
Gaudi::Property< bool > m_dataOverlay
Definition: EventInfoOverlay.h:46
BeamSpotData.h
xAODMaker::EventInfoOverlay::m_validateBeamSpot
Gaudi::Property< bool > m_validateBeamSpot
Definition: EventInfoOverlay.h:47