ATLAS Offline Software
Simulation
Digitization
MCTruthSimAlgs
src
MergeMcEventCollection.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MergeMcEventCollection.h
"
6
#include "
PileUpTools/IPileUpTool.h
"
7
8
MergeMcEventCollection::MergeMcEventCollection
(
const
std::string&
name
,
9
ISvcLocator *svcLoc):
10
AthAlgorithm
(
name
, svcLoc)
11
{
12
}
13
14
StatusCode
MergeMcEventCollection::initialize
()
15
{
16
ATH_MSG_DEBUG
(
"Initializing "
<<
name
() );
17
ATH_CHECK
(
m_mergeTool
.retrieve());
18
ATH_MSG_DEBUG
(
"Retrieved MergeMcEventCollTool ("
<<
m_mergeTool
->name() <<
")."
);
19
return
StatusCode::SUCCESS;
20
}
21
22
StatusCode
MergeMcEventCollection::execute
()
23
{
24
ATH_MSG_DEBUG
(
"execute()"
);
25
return
m_mergeTool
->processAllSubEvents(Gaudi::Hive::currentContext());
26
}
MergeMcEventCollection.h
MergeMcEventCollection::m_mergeTool
ToolHandle< IPileUpTool > m_mergeTool
Definition:
MergeMcEventCollection.h:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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...
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
MergeMcEventCollection::initialize
virtual StatusCode initialize() override final
Definition:
MergeMcEventCollection.cxx:14
AthAlgorithm
Definition:
AthAlgorithm.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
MergeMcEventCollection::MergeMcEventCollection
MergeMcEventCollection(const std::string &name, ISvcLocator *svcLoc)
Definition:
MergeMcEventCollection.cxx:8
MergeMcEventCollection::execute
virtual StatusCode execute() override final
Definition:
MergeMcEventCollection.cxx:22
Generated on Sun Dec 22 2024 21:14:23 for ATLAS Offline Software by
1.8.18