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

#include <PtEndcapLUTSvc.h>

Inheritance diagram for TrigL2MuonSA::PtEndcapLUTSvc:
Collaboration diagram for TrigL2MuonSA::PtEndcapLUTSvc:

Public Member Functions

 PtEndcapLUTSvc (const std::string &name, ISvcLocator *sl)
 
virtual StatusCode initialize () override
 
const ToolHandle< PtEndcapLUT > * ptEndcapLUT (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_fileNameRun3
 
Gaudi::Property< std::string > m_lut_fileNameRun2
 
Gaudi::Property< std::string > m_lut_fileName
 
Gaudi::Property< std::string > m_lut_mean
 
Gaudi::Property< std::string > m_lut_sigma
 
Gaudi::Property< bool > m_useRun3LUT
 
ToolHandle< PtEndcapLUTm_ptEndcapLUT {this, "PtEndcapLUT", "TrigL2MuonSA::PtEndcapLUT"}
 

Detailed Description

Definition at line 19 of file PtEndcapLUTSvc.h.

Constructor & Destructor Documentation

◆ PtEndcapLUTSvc()

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

Definition at line 15 of file PtEndcapLUTSvc.cxx.

15  :
16  AthService(name,sl)
17 {
18 }

Member Function Documentation

◆ initialize()

StatusCode TrigL2MuonSA::PtEndcapLUTSvc::initialize ( )
overridevirtual

Definition at line 23 of file PtEndcapLUTSvc.cxx.

24 {
25  // implement the search of LUT trought the pathresolver Tool.
26  std::string lut_fileName;
27  if(m_useRun3LUT){
28  lut_fileName = PathResolver::find_file(m_lut_fileNameRun3, "DATAPATH");
29  } else {
30  lut_fileName = PathResolver::find_file(m_lut_fileNameRun2, "DATAPATH");
31  }
32  ATH_MSG_INFO(lut_fileName);
33 
34  if (lut_fileName.empty()) {
35  ATH_MSG_ERROR("Cannot find EndcapLUT file " << m_lut_fileNameRun3);
36  return StatusCode::FAILURE;
37  }
38 
39  ATH_CHECK( m_ptEndcapLUT.retrieve() );
40  ATH_MSG_DEBUG("Retrieved service " << m_ptEndcapLUT);
41 
42  // read LUT
43  ATH_CHECK( m_ptEndcapLUT->readLUT(lut_fileName) );
44  if(m_useRun3LUT){
45  ATH_MSG_DEBUG("Read endcap LUT" << m_lut_fileNameRun3);
46  } else {
47  ATH_MSG_DEBUG("Read endcap LUT" << m_lut_fileNameRun2);
48  }
49 
50  return StatusCode::SUCCESS;
51 }

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

◆ ptEndcapLUT()

const ToolHandle<PtEndcapLUT>* TrigL2MuonSA::PtEndcapLUTSvc::ptEndcapLUT ( void  ) const
inline

Definition at line 46 of file PtEndcapLUTSvc.h.

47  {return &m_ptEndcapLUT;};

Member Data Documentation

◆ m_lut_fileName

Gaudi::Property< std::string > TrigL2MuonSA::PtEndcapLUTSvc::m_lut_fileName
private
Initial value:
{
this, "FileName", "pt_endcap.lut", ""}

Definition at line 34 of file PtEndcapLUTSvc.h.

◆ m_lut_fileNameRun2

Gaudi::Property< std::string > TrigL2MuonSA::PtEndcapLUTSvc::m_lut_fileNameRun2
private
Initial value:
{
this, "FileNameRun2", "pt_endcap_run2.lut", ""}

Definition at line 32 of file PtEndcapLUTSvc.h.

◆ m_lut_fileNameRun3

Gaudi::Property< std::string > TrigL2MuonSA::PtEndcapLUTSvc::m_lut_fileNameRun3
private
Initial value:
{
this, "FileNameRun3", "pt_endcap_run3.lut", ""}

Definition at line 30 of file PtEndcapLUTSvc.h.

◆ m_lut_mean

Gaudi::Property< std::string > TrigL2MuonSA::PtEndcapLUTSvc::m_lut_mean
private
Initial value:
{
this, "EMeanLUT", "pt_comb_mean.lut", ""}

Definition at line 36 of file PtEndcapLUTSvc.h.

◆ m_lut_sigma

Gaudi::Property< std::string > TrigL2MuonSA::PtEndcapLUTSvc::m_lut_sigma
private
Initial value:
{
this, "ESigmaLUT", "pt_comb_sigma.lut", ""}

Definition at line 38 of file PtEndcapLUTSvc.h.

◆ m_ptEndcapLUT

ToolHandle<PtEndcapLUT> TrigL2MuonSA::PtEndcapLUTSvc::m_ptEndcapLUT {this, "PtEndcapLUT", "TrigL2MuonSA::PtEndcapLUT"}
private

Definition at line 43 of file PtEndcapLUTSvc.h.

◆ m_useRun3LUT

Gaudi::Property<bool> TrigL2MuonSA::PtEndcapLUTSvc::m_useRun3LUT
private
Initial value:
{
this,"UseRun3LUT",true,"Select LUT at geometry"}

Definition at line 40 of file PtEndcapLUTSvc.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
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TrigL2MuonSA::PtEndcapLUTSvc::m_ptEndcapLUT
ToolHandle< PtEndcapLUT > m_ptEndcapLUT
Definition: PtEndcapLUTSvc.h:43
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TrigL2MuonSA::PtEndcapLUTSvc::m_lut_fileNameRun3
Gaudi::Property< std::string > m_lut_fileNameRun3
Definition: PtEndcapLUTSvc.h:30
TrigL2MuonSA::PtEndcapLUTSvc::m_useRun3LUT
Gaudi::Property< bool > m_useRun3LUT
Definition: PtEndcapLUTSvc.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigL2MuonSA::PtEndcapLUTSvc::m_lut_fileNameRun2
Gaudi::Property< std::string > m_lut_fileNameRun2
Definition: PtEndcapLUTSvc.h:32