ATLAS Offline Software
Loading...
Searching...
No Matches
TestMuonSF Namespace Reference

Classes

class  MuonEffiBranch
class  MuonReplicaBranches
class  MuonSFBranches
class  TriggerSFBranches

Functions

template<typename T>
getProperty (const asg::IAsgTool *interface_tool, const std::string &prop_name)

Function Documentation

◆ getProperty()

template<typename T>
T TestMuonSF::getProperty ( const asg::IAsgTool * interface_tool,
const std::string & prop_name )

Definition at line 17 of file MuonSFTestHelper.cxx.

17 {
18 const asg::AsgTool* asg_tool = dynamic_cast<const asg::AsgTool*>(interface_tool);
19 T prop;
20 const T* HandlePtr = asg_tool->getProperty < T > (prop_name);
21 if (!HandlePtr) Error("getProperty()", "Failed to retrieve property %s ", prop_name.c_str());
22 else prop = (*HandlePtr);
23 return prop;
24 }
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
const T * getProperty(const std::string &name) const
Get one of the tool's properties.