ATLAS Offline Software
Loading...
Searching...
No Matches
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
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; };
ToolHandle< AlignmentBarrelLUT > 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}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
Gaudi::Property< std::string > m_lut_fileName

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

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

31 {
32 this, "AlignmentBarrelLUT", "TrigL2MuonSA::AlignmentBarrelLUT/AlignmentBarrelLUT"};

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

28 {
29 this, "LUTfile", "dZ_barrel.lut", ""};

The documentation for this class was generated from the following files: