ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Digitization
MCTruthSimAlgs
src
MergeTrackRecordCollection.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 "
MergeTrackRecordCollection.h
"
6
7
#include "
PileUpTools/IPileUpTool.h
"
8
9
MergeTrackRecordCollection::MergeTrackRecordCollection
(
const
std::string& name,
10
ISvcLocator* svcLoc)
11
:
AthAlgorithm
(name, svcLoc)
12
{
13
}
14
15
StatusCode
MergeTrackRecordCollection::initialize
() {
16
ATH_MSG_DEBUG
(
"Initializing "
<< name() );
17
ATH_CHECK
(
m_mergeTool
.retrieve());
18
ATH_MSG_DEBUG
(
"Retrieved MergeTrackRecordCollTool ("
<<
m_mergeTool
->name() <<
")."
);
19
20
return
StatusCode::SUCCESS;
21
}
22
23
StatusCode
MergeTrackRecordCollection::execute
(
const
EventContext& ctx) {
24
ATH_MSG_DEBUG
(
"execute()"
);
25
return
m_mergeTool
->processAllSubEvents(ctx);
26
}
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...
MergeTrackRecordCollection.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
MergeTrackRecordCollection::MergeTrackRecordCollection
MergeTrackRecordCollection(const std::string &name, ISvcLocator *svcLoc)
Definition
MergeTrackRecordCollection.cxx:9
MergeTrackRecordCollection::initialize
virtual StatusCode initialize() override final
Definition
MergeTrackRecordCollection.cxx:15
MergeTrackRecordCollection::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
MergeTrackRecordCollection.cxx:23
MergeTrackRecordCollection::m_mergeTool
ToolHandle< IPileUpTool > m_mergeTool
Definition
MergeTrackRecordCollection.h:24
Generated on
for ATLAS Offline Software by
1.17.0