ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigL2MuonSA
src
PtBarrelLUTSvc.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
7
#include "
PtBarrelLUTSvc.h
"
8
#include "
PathResolver/PathResolver.h
"
9
10
#include "
AthenaBaseComps/AthMsgStreamMacros.h
"
11
12
TrigL2MuonSA::PtBarrelLUTSvc::PtBarrelLUTSvc
(
const
std::string& name,ISvcLocator* sl) :
13
AthService
(name,sl)
14
{
15
}
16
17
// --------------------------------------------------------------------------------
18
// --------------------------------------------------------------------------------
19
20
StatusCode
TrigL2MuonSA::PtBarrelLUTSvc::initialize
()
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 barrel LUT file "
<< lut_fileName);
29
return
StatusCode::FAILURE;
30
}
31
32
// implement the search of SP LUT trought the pathresolver Tool.
33
std::string lutSP_fileName =
PathResolver::find_file
(
m_lutSP_fileName
,
"DATAPATH"
);
34
ATH_MSG_INFO
(lutSP_fileName);
35
36
if
(lutSP_fileName.empty()) {
37
ATH_MSG_ERROR
(
"Cannot find barrel SP LUT file "
<< lutSP_fileName);
38
return
StatusCode::FAILURE;
39
}
40
41
ATH_CHECK
(
m_ptBarrelLUT
.retrieve() );
42
ATH_MSG_DEBUG
(
"Retrieved service "
<<
m_ptBarrelLUT
);
43
44
// read LUT
45
ATH_CHECK
(
m_ptBarrelLUT
->readLUT(lut_fileName, lutSP_fileName) );
46
47
return
StatusCode::SUCCESS;
48
}
49
50
// --------------------------------------------------------------------------------
51
// --------------------------------------------------------------------------------
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
AthMsgStreamMacros.h
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
PathResolver.h
PtBarrelLUTSvc.h
AthService::AthService
AthService()
PathResolver::find_file
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
Definition
PathResolver.cxx:220
TrigL2MuonSA::PtBarrelLUTSvc::initialize
virtual StatusCode initialize(void) override
Definition
PtBarrelLUTSvc.cxx:20
TrigL2MuonSA::PtBarrelLUTSvc::m_lutSP_fileName
Gaudi::Property< std::string > m_lutSP_fileName
Definition
PtBarrelLUTSvc.h:31
TrigL2MuonSA::PtBarrelLUTSvc::m_lut_fileName
Gaudi::Property< std::string > m_lut_fileName
Definition
PtBarrelLUTSvc.h:29
TrigL2MuonSA::PtBarrelLUTSvc::m_ptBarrelLUT
ToolHandle< PtBarrelLUT > m_ptBarrelLUT
Definition
PtBarrelLUTSvc.h:34
TrigL2MuonSA::PtBarrelLUTSvc::PtBarrelLUTSvc
PtBarrelLUTSvc(const std::string &name, ISvcLocator *sl)
Definition
PtBarrelLUTSvc.cxx:12
Generated on
for ATLAS Offline Software by
1.17.0