ATLAS Offline Software
Loading...
Searching...
No Matches
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
7
8ALFA_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
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
27{
28 ATH_MSG_DEBUG ( "ALFA_DigiAlg::execute" );
29
30 return m_digiTool->processAllSubEvents(Gaudi::Hive::currentContext());
31}
32
34{
35 return StatusCode::SUCCESS;
36}
#define ATH_MSG_FATAL(x)
#define ATH_MSG_DEBUG(x)
a call-back interface for tools that merge pileup events information An IPileUpTool is called back fo...
StatusCode execute()
ToolHandle< IPileUpTool > m_digiTool
StatusCode initialize()
ALFA_DigiAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize()
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)