ATLAS Offline Software
Classes | Functions
CaloUtils Namespace Reference

Classes

class  ExcBadContextlessRetrieve
 Exception — Bad contextless retrieve. More...
 
class  ExcBadToolConstantVersion
 Exception — version mismatch for tool. More...
 
class  ExcConstantNotSet
 Exception — constant not set. More...
 
class  ExcConstantReset
 Exception — constant set more than once. More...
 
class  IToolConstant
 Internal interface for dealing with a collection of ToolConstants. More...
 
class  ToolConstant
 Constant of a ToolWithConstants. More...
 
struct  ToolConstantsContext
 Context object for retrieving ToolConstant values. More...
 
class  ToolWithConstants
 
class  ToolWithConstantsImpl
 Internal implementation object. More...
 
class  ToolWithConstantsTestTool
 Algorithm used for testing ToolWithConstants. More...
 

Functions

void throwExcBadContextlessRetrieve (const std::string &toolName, const std::string &constName)
 Throw a CaloUtils::ExcBadContextlessRetrieve exception. More...
 
std::string excBadToolConstantVersion_format (const std::string &toolName, const std::string &constName, unsigned int toolVersion, unsigned int constVersion)
 Helper: Format exception string. More...
 
std::string excConstantNotSet_format (const std::string &toolName, const std::string &constName)
 Helper: Format exception string. More...
 
std::string excConstantReset_format (const std::string &toolName, const std::string &constName)
 Helper: Format exception string. More...
 
std::string excBadContextlessRetrieve_format (const std::string &toolName, const std::string &constName)
 Helper: Format exception string. More...
 

Function Documentation

◆ excBadContextlessRetrieve_format()

std::string CaloUtils::excBadContextlessRetrieve_format ( const std::string &  toolName,
const std::string &  constName 
)

Helper: Format exception string.

Definition at line 114 of file Calorimeter/CaloUtils/src/exceptions.cxx.

116 {
117  std::ostringstream os;
118  os << "ExcBadContextlessRetrieve: constant " << constName << " in tool " << toolName
119  << " bad contextless retrieve.";
120  return os.str();
121 }

◆ excBadToolConstantVersion_format()

std::string CaloUtils::excBadToolConstantVersion_format ( const std::string &  toolName,
const std::string &  constName,
unsigned int  toolVersion,
unsigned int  constVersion 
)

Helper: Format exception string.

Definition at line 20 of file Calorimeter/CaloUtils/src/exceptions.cxx.

24 {
25  std::ostringstream os;
26  os << "ExcBadToolConstantVersion: version mismatch for tool " << toolName
27  << " constant " << constName
28  << " constant version " << constVersion
29  << " is larger than tool version " << toolVersion;
30  return os.str();
31 }

◆ excConstantNotSet_format()

std::string CaloUtils::excConstantNotSet_format ( const std::string &  toolName,
const std::string &  constName 
)

Helper: Format exception string.

Definition at line 58 of file Calorimeter/CaloUtils/src/exceptions.cxx.

60 {
61  std::ostringstream os;
62  os << "ExcConstantNotSet: constant " << constName << " in tool " << toolName
63  << " was not set.";
64  return os.str();
65 }

◆ excConstantReset_format()

std::string CaloUtils::excConstantReset_format ( const std::string &  toolName,
const std::string &  constName 
)

Helper: Format exception string.

Definition at line 86 of file Calorimeter/CaloUtils/src/exceptions.cxx.

88 {
89  std::ostringstream os;
90  os << "ExcConstantReset: constant " << constName << " in tool " << toolName
91  << " set more than once.";
92  return os.str();
93 }

◆ throwExcBadContextlessRetrieve()

void CaloUtils::throwExcBadContextlessRetrieve ( const std::string &  toolName,
const std::string &  constName 
)

Throw a CaloUtils::ExcBadContextlessRetrieve exception.

Parameters
toolNameName of the tool being used.
constNameName of the constant being retrieved.

Definition at line 144 of file Calorimeter/CaloUtils/src/exceptions.cxx.

146 {
147  throw ExcBadContextlessRetrieve (toolName, constName);
148 }
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231