ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15#ifndef OVERLAYCOMMONALGS_EVENTINFOOVERLAY_H
16#define OVERLAYCOMMONALGS_EVENTINFOOVERLAY_H
17
20
21#if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
24#endif
25
26namespace xAODMaker
27{
28
30{
31public:
32 EventInfoOverlay(const std::string &name, ISvcLocator *pSvcLocator);
33
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute(const EventContext& ctx) const override;
36
37private:
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
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Gaudi::Property< uint32_t > m_mcChannelNumber
SG::WriteHandleKey< xAOD::EventInfo > m_outputKey
EventInfoOverlay(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::EventInfo > m_signalInputKey
Gaudi::Property< bool > m_validateBeamSpot
Gaudi::Property< bool > m_dataOverlay
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::EventInfo > m_bkgInputKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey