ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODEventInfoCnv
src
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
18
#include <
AthenaBaseComps/AthReentrantAlgorithm.h
>
19
#include <
xAODEventInfo/EventInfo.h
>
20
21
#if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
22
#include <
StoreGate/ReadCondHandleKey.h
>
23
#include <
BeamSpotConditionsData/BeamSpotData.h
>
24
#endif
25
26
namespace
xAODMaker
27
{
28
29
class
EventInfoOverlay
:
public
AthReentrantAlgorithm
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)
39
StatusCode
decorationsToKeep
(
const
xAOD::EventInfo
* signalEvent, std::vector<std::string>& keep_ids)
const
;
40
#endif
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_bkgInputKey
{
this
,
"BkgInputKey"
,
"Bkg_EventInfo"
,
"ReadHandleKey for Background xAOD::EventInfo"
};
46
SG::ReadHandleKey<xAOD::EventInfo>
m_signalInputKey
{
this
,
"SignalInputKey"
,
"Sig_EventInfo"
,
"ReadHandleKey for Signal xAOD::EventInfo"
};
47
SG::WriteHandleKey<xAOD::EventInfo>
m_outputKey
{
this
,
"OutputKey"
,
"EventInfo"
,
"WriteHandleKey for Output xAOD::EventInfo"
};
48
49
Gaudi::Property<bool>
m_dataOverlay
{
this
,
"DataOverlay"
,
false
,
"True if running data overlay"
};
50
Gaudi::Property<bool>
m_validateBeamSpot
{
this
,
"ValidateBeamSpot"
,
false
,
"validate input beamspot size"
};
51
Gaudi::Property<uint32_t>
m_mcChannelNumber
{
this
,
"MCChannelNumber"
, 0,
"sample MC channel number"
};
52
};
53
54
}
// namespace xAODMaker
55
56
#endif
AthReentrantAlgorithm.h
BeamSpotData.h
ReadCondHandleKey.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
xAODMaker::EventInfoOverlay::m_mcChannelNumber
Gaudi::Property< uint32_t > m_mcChannelNumber
Definition
EventInfoOverlay.h:51
xAODMaker::EventInfoOverlay::m_outputKey
SG::WriteHandleKey< xAOD::EventInfo > m_outputKey
Definition
EventInfoOverlay.h:47
xAODMaker::EventInfoOverlay::EventInfoOverlay
EventInfoOverlay(const std::string &name, ISvcLocator *pSvcLocator)
Definition
EventInfoOverlay.cxx:18
xAODMaker::EventInfoOverlay::initialize
virtual StatusCode initialize() override
Definition
EventInfoOverlay.cxx:22
xAODMaker::EventInfoOverlay::m_signalInputKey
SG::ReadHandleKey< xAOD::EventInfo > m_signalInputKey
Definition
EventInfoOverlay.h:46
xAODMaker::EventInfoOverlay::m_validateBeamSpot
Gaudi::Property< bool > m_validateBeamSpot
Definition
EventInfoOverlay.h:50
xAODMaker::EventInfoOverlay::m_dataOverlay
Gaudi::Property< bool > m_dataOverlay
Definition
EventInfoOverlay.h:49
xAODMaker::EventInfoOverlay::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
EventInfoOverlay.cxx:65
xAODMaker::EventInfoOverlay::m_bkgInputKey
SG::ReadHandleKey< xAOD::EventInfo > m_bkgInputKey
Definition
EventInfoOverlay.h:45
xAODMaker::EventInfoOverlay::decorationsToKeep
StatusCode decorationsToKeep(const xAOD::EventInfo *signalEvent, std::vector< std::string > &keep_ids) const
Definition
EventInfoOverlay.cxx:48
xAODMaker::EventInfoOverlay::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition
EventInfoOverlay.h:42
xAODMaker
Definition
StoreGateSvc.h:70
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0