ATLAS Offline Software
ForwardDetectors
ALFA
ALFA_Digitization
src
ALFA_DigiAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ALFA_Digitization/ALFA_DigiAlg.h
"
6
#include "
PileUpTools/IPileUpTool.h
"
7
8
ALFA_DigiAlg::ALFA_DigiAlg
(
const
std::string&
name
, ISvcLocator* pSvcLocator):
9
AthAlgorithm
(
name
, pSvcLocator),
10
m_digiTool(
"ALFA_PileUpTool"
, this )
11
{
12
declareProperty
(
"DigitizationTool"
,
m_digiTool
,
"AthAlgTool which performs ALFA digitization"
);
13
}
14
15
StatusCode
ALFA_DigiAlg::initialize
()
16
{
17
// intitialize store gate active store
18
if
(
m_digiTool
.retrieve().isFailure()) {
19
ATH_MSG_FATAL
(
"Could not retrieve ALFA_PileUpTool!"
);
20
return
StatusCode::FAILURE;
21
}
22
ATH_MSG_DEBUG
(
"Retrieved ALFA_PileUpTool."
);
23
return
StatusCode::SUCCESS;
24
}
25
26
StatusCode
ALFA_DigiAlg::execute
()
27
{
28
ATH_MSG_DEBUG
(
"ALFA_DigiAlg::execute"
);
29
30
return
m_digiTool
->processAllSubEvents(Gaudi::Hive::currentContext());
31
}
32
33
StatusCode
ALFA_DigiAlg::finalize
()
34
{
35
return
StatusCode::SUCCESS;
36
}
ALFA_DigiAlg.h
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition:
AthMsgStreamMacros.h:34
ALFA_DigiAlg::m_digiTool
ToolHandle< IPileUpTool > m_digiTool
Definition:
ALFA_DigiAlg.h:26
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
ALFA_DigiAlg::ALFA_DigiAlg
ALFA_DigiAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
ALFA_DigiAlg.cxx:8
ALFA_DigiAlg::finalize
StatusCode finalize()
Definition:
ALFA_DigiAlg.cxx:33
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...
AthAlgorithm
Definition:
AthAlgorithm.h:47
ALFA_DigiAlg::initialize
StatusCode initialize()
Definition:
ALFA_DigiAlg.cxx:15
ALFA_DigiAlg::execute
StatusCode execute()
Definition:
ALFA_DigiAlg.cxx:26
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
Generated on Thu Nov 7 2024 21:09:44 for ATLAS Offline Software by
1.8.18