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

#include <AlignmentBarrelLUTSvc.h>

Inheritance diagram for TrigL2MuonSA::AlignmentBarrelLUTSvc:
Collaboration diagram for TrigL2MuonSA::AlignmentBarrelLUTSvc:

Public Member Functions

 AlignmentBarrelLUTSvc (const std::string &name, ISvcLocator *sl)
 
virtual StatusCode initialize () override
 
const ToolHandle< AlignmentBarrelLUT > * alignmentBarrelLUT (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
 
ToolHandle< AlignmentBarrelLUTm_alignmentBarrelLUT
 

Detailed Description

Definition at line 17 of file AlignmentBarrelLUTSvc.h.

Constructor & Destructor Documentation

◆ AlignmentBarrelLUTSvc()

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

Definition at line 12 of file AlignmentBarrelLUTSvc.cxx.

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

Member Function Documentation

◆ alignmentBarrelLUT()

const ToolHandle<AlignmentBarrelLUT>* TrigL2MuonSA::AlignmentBarrelLUTSvc::alignmentBarrelLUT ( void  ) const
inline

Definition at line 35 of file AlignmentBarrelLUTSvc.h.

36  { return &m_alignmentBarrelLUT; };

◆ initialize()

StatusCode TrigL2MuonSA::AlignmentBarrelLUTSvc::initialize ( )
overridevirtual

Definition at line 20 of file AlignmentBarrelLUTSvc.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 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 }

◆ 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  }

Member Data Documentation

◆ m_alignmentBarrelLUT

ToolHandle<AlignmentBarrelLUT> TrigL2MuonSA::AlignmentBarrelLUTSvc::m_alignmentBarrelLUT
private
Initial value:
{
this, "AlignmentBarrelLUT", "TrigL2MuonSA::AlignmentBarrelLUT/AlignmentBarrelLUT"}

Definition at line 31 of file AlignmentBarrelLUTSvc.h.

◆ m_lut_fileName

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

Definition at line 28 of file AlignmentBarrelLUTSvc.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::AlignmentBarrelLUTSvc::m_lut_fileName
Gaudi::Property< std::string > m_lut_fileName
Definition: AlignmentBarrelLUTSvc.h:28
TrigL2MuonSA::AlignmentBarrelLUTSvc::m_alignmentBarrelLUT
ToolHandle< AlignmentBarrelLUT > m_alignmentBarrelLUT
Definition: AlignmentBarrelLUTSvc.h:31
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192