ATLAS Offline Software
Classes | Functions
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  }
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
asg::AsgTool::getProperty
const T * getProperty(const std::string &name) const
Get one of the tool's properties.
L1Topo::Error
Error
The different types of error that can be flagged in the L1TopoRDO.
Definition: Error.h:16
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35