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

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

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

29 {
30 this, "LUTfile", "pt_barrel.lut", ""};

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

31 {
32 this, "SP_LUTfile", "pt_barrelSP_new.lut", ""};

◆ m_ptBarrelLUT

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

Definition at line 34 of file PtBarrelLUTSvc.h.

34 {
35 this, "PtBarrelLUT", "TrigL2MuonSA::PtBarrelLUT"};

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