Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef CALOUTILS_TOOLWITHCONSTANTS_H
19 #define CALOUTILS_TOOLWITHCONSTANTS_H
29 #include "Gaudi/Property.h"
32 #include <type_traits>
41 template <
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;
194 template <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=;
365 {
c.declareProperty(
p) };
444 template <HasProperties BASE>
446 :
public extends<BASE, IToolWithConstants>
454 using extends<BASE, IToolWithConstants>::extends;
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
574 #endif // not CALOUTILS_TOOLWITHCONSTANTS_H
Exceptions that can be thrown from CaloUtils.
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
const EventContext & ctx() const
concept HasProperties
Concept to test if a class has Gaudi properties.
requires requires()
This specialization is used for classes deriving from DataObject.
::StatusCode StatusCode
StatusCode definition for legacy code.
Read-only multidimensional array.
ToolConstantsContext(const CaloRec::ToolConstants *constants, const EventContext &ctx)
Helpers for checking error return status codes and reporting errors.
Context object for retrieving ToolConstant values.
=============================================================================
const CaloRec::ToolConstants * m_constants
const EventContext & m_ctx