ATLAS Offline Software
Loading...
Searching...
No Matches
LArHitEMapMaker.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// +==========================================================================+
6// + +
7// + "empty" algorithm to run LAr digitization +
8// + invoking new LArPileUpTool to do all the work +
9// + +
10// +==========================================================================+
11//
12#include "LArHitEMapMaker.h"
13
14//----------------------------------------------------------------------------------
15
16LArHitEMapMaker::LArHitEMapMaker(const std::string& name, ISvcLocator* pSvcLocator)
17 : AthAlgorithm(name, pSvcLocator),
18 m_LArPileUpTool("LArPileUpTool",this)
19{
20 declareProperty("LArPileUpTool",m_LArPileUpTool,"Tool to perform the real work");
21}
22
23// ----------------------------------------------------------------------------------
24
26{
27
28 ATH_MSG_DEBUG("initialize LArHitEMapMaker");
29
30 if (m_LArPileUpTool.retrieve().isFailure())
31 {
32 ATH_MSG_ERROR(" Unable to access LArPileUpTool");
33 return StatusCode::FAILURE;
34 }
35
36
37 ATH_MSG_DEBUG(" Initialization completed successfully");
38
39 return StatusCode::SUCCESS;
40}
41
42// -------------------------------------------------------------------------------------
43
45{
46
47 if (m_LArPileUpTool->processAllSubEvents(Gaudi::Hive::currentContext()).isFailure()) {
48 ATH_MSG_ERROR(" error in LArPileupTool::processAllSubEvents");
49 return StatusCode::FAILURE;
50 }
51
52 return StatusCode::SUCCESS;
53
54}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< IPileUpTool > m_LArPileUpTool
virtual StatusCode execute() override
LArHitEMapMaker(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override