ATLAS Offline Software
Loading...
Searching...
No Matches
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
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}
#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_lut_fileNameRun3
Gaudi::Property< std::string > m_lut_fileNameRun2
Gaudi::Property< bool > m_useRun3LUT
ToolHandle< PtEndcapLUT > m_ptEndcapLUT

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

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

34 {
35 this, "FileName", "pt_endcap.lut", ""};

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

32 {
33 this, "FileNameRun2", "pt_endcap_run2.lut", ""};

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

30 {
31 this, "FileNameRun3", "pt_endcap_run3.lut", ""};

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

36 {
37 this, "EMeanLUT", "pt_comb_mean.lut", ""};

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

38 {
39 this, "ESigmaLUT", "pt_comb_sigma.lut", ""};

◆ m_ptEndcapLUT

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

Definition at line 43 of file PtEndcapLUTSvc.h.

43{this, "PtEndcapLUT", "TrigL2MuonSA::PtEndcapLUT"};

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

40 {
41 this,"UseRun3LUT",true,"Select LUT at geometry"};

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