ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigL2MuonSA::PtBarrelLUTSvc Class Reference

#include <PtBarrelLUTSvc.h>

Inheritance diagram for TrigL2MuonSA::PtBarrelLUTSvc:
Collaboration diagram for TrigL2MuonSA::PtBarrelLUTSvc:

Public Member Functions

 PtBarrelLUTSvc (const std::string &name, ISvcLocator *sl)
 
virtual StatusCode initialize (void) override
 
const ToolHandle< PtBarrelLUT > * ptBarrelLUT (void) const
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Private Attributes

Gaudi::Property< std::string > m_lut_fileName
 
Gaudi::Property< std::string > m_lutSP_fileName
 
ToolHandle< PtBarrelLUTm_ptBarrelLUT
 

Detailed Description

Definition at line 18 of file PtBarrelLUTSvc.h.

Constructor & Destructor Documentation

◆ PtBarrelLUTSvc()

TrigL2MuonSA::PtBarrelLUTSvc::PtBarrelLUTSvc ( const std::string &  name,
ISvcLocator *  sl 
)

Definition at line 12 of file PtBarrelLUTSvc.cxx.

12  :
13  AthService(name,sl)
14 {
15 }

Member Function Documentation

◆ initialize()

StatusCode TrigL2MuonSA::PtBarrelLUTSvc::initialize ( void  )
overridevirtual

Definition at line 20 of file PtBarrelLUTSvc.cxx.

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 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Service >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Service >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Service >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ ptBarrelLUT()

const ToolHandle<PtBarrelLUT>* TrigL2MuonSA::PtBarrelLUTSvc::ptBarrelLUT ( void  ) const
inline

Definition at line 38 of file PtBarrelLUTSvc.h.

39  {return &m_ptBarrelLUT;};

Member Data Documentation

◆ m_lut_fileName

Gaudi::Property< std::string > TrigL2MuonSA::PtBarrelLUTSvc::m_lut_fileName
private
Initial value:
{
this, "LUTfile", "pt_barrel.lut", ""}

Definition at line 29 of file PtBarrelLUTSvc.h.

◆ m_lutSP_fileName

Gaudi::Property< std::string > TrigL2MuonSA::PtBarrelLUTSvc::m_lutSP_fileName
private
Initial value:
{
this, "SP_LUTfile", "pt_barrelSP_new.lut", ""}

Definition at line 31 of file PtBarrelLUTSvc.h.

◆ m_ptBarrelLUT

ToolHandle<PtBarrelLUT> TrigL2MuonSA::PtBarrelLUTSvc::m_ptBarrelLUT
private
Initial value:
{
this, "PtBarrelLUT", "TrigL2MuonSA::PtBarrelLUT"}

Definition at line 34 of file PtBarrelLUTSvc.h.


The documentation for this class was generated from the following files:
AthService::AthService
AthService()
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
TrigL2MuonSA::PtBarrelLUTSvc::m_lut_fileName
Gaudi::Property< std::string > m_lut_fileName
Definition: PtBarrelLUTSvc.h:29
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TrigL2MuonSA::PtBarrelLUTSvc::m_ptBarrelLUT
ToolHandle< PtBarrelLUT > m_ptBarrelLUT
Definition: PtBarrelLUTSvc.h:34
TrigL2MuonSA::PtBarrelLUTSvc::m_lutSP_fileName
Gaudi::Property< std::string > m_lutSP_fileName
Definition: PtBarrelLUTSvc.h:31