ATLAS Offline Software
AlignmentBarrelLUTSvc.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GaudiKernel/ISvcLocator.h"
6 
9 
11 
13  AthService(name,sl)
14 {
15 }
16 
17 // --------------------------------------------------------------------------------
18 // --------------------------------------------------------------------------------
19 
21 {
22 
23  // implement the search of LUT trought the pathresolver Tool.
24  std::string lut_fileName = PathResolver::find_file (m_lut_fileName, "DATAPATH");
25  ATH_MSG_INFO(lut_fileName);
26 
27  if (lut_fileName.empty()) {
28  ATH_MSG_ERROR("Cannot find EndcapLUT file " << lut_fileName);
29  return StatusCode::FAILURE;
30  }
31 
32  ATH_CHECK( m_alignmentBarrelLUT.retrieve() );
33 
34  // read LUT
35  ATH_CHECK( m_alignmentBarrelLUT->readLUT(lut_fileName) );
36 
37  return StatusCode::SUCCESS;
38 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
PathResolver::find_file
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Definition: PathResolver.cxx:251
AthMsgStreamMacros.h
AlignmentBarrelLUTSvc.h
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthService
Definition: AthService.h:32
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TrigL2MuonSA::AlignmentBarrelLUTSvc::initialize
virtual StatusCode initialize() override
Definition: AlignmentBarrelLUTSvc.cxx:20
PathResolver.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigL2MuonSA::AlignmentBarrelLUTSvc::AlignmentBarrelLUTSvc
AlignmentBarrelLUTSvc(const std::string &name, ISvcLocator *sl)
Definition: AlignmentBarrelLUTSvc.cxx:12