ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Overlay
OverlayCopyAlgs
src
CopyMcEventCollection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef OVERLAYCOPYALGS_COPYMCEVENTCOLLECTION_H
6
#define OVERLAYCOPYALGS_COPYMCEVENTCOLLECTION_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
GeneratorObjects/McEventCollection.h
"
10
#include "
xAODEventInfo/EventInfo.h
"
11
12
class
CopyMcEventCollection
:
public
AthReentrantAlgorithm
13
{
14
public
:
15
16
CopyMcEventCollection
(
const
std::string &name, ISvcLocator *pSvcLocator);
17
18
virtual
StatusCode
initialize
()
override
;
19
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
20
21
private
:
22
// Dummy dependency: HepMCWeightSvc has a depedency on EventInfo.
23
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"EventInfoKey"
,
"EventInfo"
,
"ReadHandleKey for dummy EventInfo dependency"
};
24
SG::ReadHandleKey<McEventCollection>
m_bkgInputKey
{
this
,
"BkgInputKey"
,
"Bkg_TruthEvent"
,
"ReadHandleKey for Background McEventCollection"
};
25
SG::ReadHandleKey<McEventCollection>
m_signalInputKey
{
this
,
"SignalInputKey"
,
"Sig_TruthEvent"
,
"ReadHandleKey for Signal McEventCollection"
};
26
SG::WriteHandleKey<McEventCollection>
m_outputKey
{
this
,
"OutputKey"
,
"TruthEvent"
,
"WriteHandleKey for Output McEventCollection"
};
27
28
Gaudi::Property<bool>
m_removeBkgHardScatterTruth
{
this
,
"RemoveBkgHardScatterTruth"
,
true
,
"Remove hard scatter truth from background"
};
29
30
};
31
32
#endif
// OVERLAYCOPYALGS_COPYMCEVENTCOLLECTION_H
AthReentrantAlgorithm.h
McEventCollection.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CopyMcEventCollection::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
CopyMcEventCollection.h:23
CopyMcEventCollection::m_removeBkgHardScatterTruth
Gaudi::Property< bool > m_removeBkgHardScatterTruth
Definition
CopyMcEventCollection.h:28
CopyMcEventCollection::m_bkgInputKey
SG::ReadHandleKey< McEventCollection > m_bkgInputKey
Definition
CopyMcEventCollection.h:24
CopyMcEventCollection::initialize
virtual StatusCode initialize() override
Definition
CopyMcEventCollection.cxx:13
CopyMcEventCollection::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
CopyMcEventCollection.cxx:30
CopyMcEventCollection::m_outputKey
SG::WriteHandleKey< McEventCollection > m_outputKey
Definition
CopyMcEventCollection.h:26
CopyMcEventCollection::CopyMcEventCollection
CopyMcEventCollection(const std::string &name, ISvcLocator *pSvcLocator)
Definition
CopyMcEventCollection.cxx:8
CopyMcEventCollection::m_signalInputKey
SG::ReadHandleKey< McEventCollection > m_signalInputKey
Definition
CopyMcEventCollection.h:25
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
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0