ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
Digitization
MCTruthSimAlgs
src
MergeTruthParticles.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MergeTruthParticles.h
"
6
7
#include "
PileUpTools/IPileUpTool.h
"
8
9
MergeTruthParticles::MergeTruthParticles
(
const
std::string& name,
10
ISvcLocator* svcLoc)
11
:
AthAlgorithm
(name, svcLoc)
12
{
13
}
14
15
StatusCode
MergeTruthParticles::initialize
() {
16
ATH_MSG_DEBUG
(
"Initializing "
<< name() );
17
ATH_CHECK
(
m_mergeTool
.retrieve());
18
ATH_MSG_DEBUG
(
"Retrieved MergeTruthParticlesTool ("
<<
m_mergeTool
->name() <<
")."
);
19
return
StatusCode::SUCCESS;
20
}
21
22
StatusCode
MergeTruthParticles::execute
() {
23
ATH_MSG_DEBUG
(
"execute()"
);
24
return
m_mergeTool
->processAllSubEvents(Gaudi::Hive::currentContext());
25
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
IPileUpTool.h
a call-back interface for tools that merge pileup events information An IPileUpTool is called back fo...
MergeTruthParticles.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthAlgorithm.cxx:24
MergeTruthParticles::m_mergeTool
ToolHandle< IPileUpTool > m_mergeTool
Definition
MergeTruthParticles.h:24
MergeTruthParticles::MergeTruthParticles
MergeTruthParticles(const std::string &name, ISvcLocator *svcLoc)
Definition
MergeTruthParticles.cxx:9
MergeTruthParticles::execute
virtual StatusCode execute() override final
Definition
MergeTruthParticles.cxx:22
MergeTruthParticles::initialize
virtual StatusCode initialize() override final
Definition
MergeTruthParticles.cxx:15
Generated on
for ATLAS Offline Software by
1.14.0