ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
13{
14public:
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
21private:
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
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Property< bool > m_removeBkgHardScatterTruth
SG::ReadHandleKey< McEventCollection > m_bkgInputKey
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteHandleKey< McEventCollection > m_outputKey
CopyMcEventCollection(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< McEventCollection > m_signalInputKey
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.