ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Digitization
MCTruthSimAlgs
src
MergeMcEventCollection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MCTRUTHSIMALGS_MERGEMCEVENTCOLLECTION_H
6
#define MCTRUTHSIMALGS_MERGEMCEVENTCOLLECTION_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
PileUpTools/PileUpMergeSvc.h
"
11
12
20
class
MergeMcEventCollection
:
public
AthAlgorithm
{
21
public
:
22
MergeMcEventCollection
(
const
std::string& name, ISvcLocator *svcLoc);
23
virtual
~MergeMcEventCollection
() =
default
;
24
virtual
StatusCode
initialize
() override final;
25
virtual StatusCode
execute
(
const
EventContext& ctx) override final;
26
virtual
bool
isClonable
()
const
override final {
return
true
; }
27
28
private
:
29
ToolHandle<IPileUpTool>
m_mergeTool
{
this
,
"MergeMcEventCollTool"
,
"MergeMcEventCollTool"
,
""
};
30
};
31
#endif
//MCTRUTHSIMALGS_MERGEMCEVENTCOLLECTION_H
AthAlgorithm.h
PileUpMergeSvc.h
the preferred mechanism to access information from the different event stores in a pileup job.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
MergeMcEventCollection::~MergeMcEventCollection
virtual ~MergeMcEventCollection()=default
MergeMcEventCollection::initialize
virtual StatusCode initialize() override final
Definition
MergeMcEventCollection.cxx:14
MergeMcEventCollection::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
MergeMcEventCollection.cxx:22
MergeMcEventCollection::MergeMcEventCollection
MergeMcEventCollection(const std::string &name, ISvcLocator *svcLoc)
Definition
MergeMcEventCollection.cxx:8
MergeMcEventCollection::isClonable
virtual bool isClonable() const override final
Specify if the algorithm is clonable.
Definition
MergeMcEventCollection.h:26
MergeMcEventCollection::m_mergeTool
ToolHandle< IPileUpTool > m_mergeTool
Definition
MergeMcEventCollection.h:29
const
Generated on
for ATLAS Offline Software by
1.17.0