ATLAS Offline Software
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 {
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
CopyMcEventCollection::m_bkgInputKey
SG::ReadHandleKey< McEventCollection > m_bkgInputKey
Definition: CopyMcEventCollection.h:24
CopyMcEventCollection::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: CopyMcEventCollection.h:23
SG::ReadHandleKey< xAOD::EventInfo >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CopyMcEventCollection::m_signalInputKey
SG::ReadHandleKey< McEventCollection > m_signalInputKey
Definition: CopyMcEventCollection.h:25
SG::WriteHandleKey< McEventCollection >
McEventCollection.h
CopyMcEventCollection::initialize
virtual StatusCode initialize() override
Definition: CopyMcEventCollection.cxx:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CopyMcEventCollection::m_removeBkgHardScatterTruth
Gaudi::Property< bool > m_removeBkgHardScatterTruth
Definition: CopyMcEventCollection.h:28
CopyMcEventCollection::m_outputKey
SG::WriteHandleKey< McEventCollection > m_outputKey
Definition: CopyMcEventCollection.h:26
AthReentrantAlgorithm.h
CopyMcEventCollection
Definition: CopyMcEventCollection.h:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
EventInfo.h
CopyMcEventCollection::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CopyMcEventCollection.cxx:30
CopyMcEventCollection::CopyMcEventCollection
CopyMcEventCollection(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CopyMcEventCollection.cxx:8