18#ifndef CALOUTILS_TOOLWITHCONSTANTS_H
19#define CALOUTILS_TOOLWITHCONSTANTS_H
29#include "Gaudi/Property.h"
41template <
unsigned int N>
44 return StatusCode::FAILURE;
62 const EventContext&
ctx()
const {
return m_ctx; }
65 const EventContext&
ctx)
86 virtual std::string
name()
const = 0;
114 const std::string& prefix,
146 const std::string& name,
147 const EventContext& ctx)
const;
194template <CxxUtils::FromArrayrep T>
212 template <
class OWNER>
214 const std::string&
name,
215 const std::string& doc =
"");
228 template <
class OWNER>
230 const std::string&
name,
243 template <
class OWNER,
245 typename = std::enable_if_t<std::is_arithmetic_v<U> > >
247 const std::string&
name,
249 const std::string& doc =
"");
270 virtual std::string
name()
const override;
285 :
public Gaudi::Property<T>
295 const std::string& doc,
307 const std::string& doc,
313 using Gaudi::Property<T>::operator=;
326 virtual void toStream( std::ostream& out )
const override;
333 virtual StatusCode
fromString(
const std::string& value )
override;
363 requires (T& c, Gaudi::Property<int>& p)
365 { c.declareProperty(p) };
444template <HasProperties BASE>
446 :
public extends<BASE, IToolWithConstants>
462 template <CxxUtils::FromArrayrep T>
487 const std::string& name,
488 const EventContext& ctx)
const;
497 const EventContext& ctx)
const override;
530 template <CxxUtils::FromArrayrep T>
535 {
this,
"DBHandleKey",
"",
"" };
539 {
this,
"prefix",
"",
"" };
548 {
this,
"order", 0 };
561 {
this,
"isDummy",
false };
571#undef ATH_TWC_REQUIRES
Exceptions that can be thrown from CaloUtils.
Helpers for checking error return status codes and reporting errors.
Read-only multidimensional array.
Concept to test if a class has Gaudi properties.
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
=============================================================================
Context object for retrieving ToolConstant values.
const CaloRec::ToolConstants * m_constants
const EventContext & m_ctx
const EventContext & ctx() const
ToolConstantsContext(const CaloRec::ToolConstants *constants, const EventContext &ctx)