25 (
const std::string& toolName,
26 const std::string& prefix,
41 return StatusCode::SUCCESS;
79 const std::string& name,
80 const EventContext& ctx)
const
82 stream <<
"Member: m_constants" << std::endl;
86 stream <<
"Member: m_DBconstants" << std::endl;
87 consts->writeConstants (stream,name);
107 if (out.clsname().empty()) {
108 out.clsname (typeName);
109 out.version (toolVersion);
111 else if (out.clsname() != typeName) {
113 <<
"Trying to write to ToolConstants for tools of differing types: "
114 << out.clsname() <<
" and " << typeName;
115 return StatusCode::FAILURE;
117 else if (out.version() != toolVersion) {
119 <<
"Trying to write to ToolConstants for differing versions of tool "
120 << out.clsname() <<
": " << out.version() <<
" and " << toolVersion;
121 return StatusCode::FAILURE;
125 std::string cname = c->name();
126 std::string prefname = this->
m_prefix + cname;
131 if (!c->setFromJO() &&
141 if (!isDummy || cname ==
"isDummy")
142 out.setrep (this->
m_prefix + cname, *rep);
144 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define REPORT_ERROR_WITH_CONTEXT(SC, CONTEXT_NAME)
Report an error, with an explicitly specified context name.
Exception — constant not set.
const_pointer_type retrieve()
Representation class for Array's.
const CaloRec::ToolConstants * m_constants