|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef CALOUTILS_TOOLWITHCONSTANTS_H
19 #define CALOUTILS_TOOLWITHCONSTANTS_H
30 #include "Gaudi/Property.h"
33 #include <type_traits>
42 template <
unsigned int N>
45 return StatusCode::FAILURE;
63 const EventContext&
ctx()
const {
return m_ctx; }
66 const EventContext&
ctx)
87 virtual std::string
name()
const = 0;
115 const std::string&
prefix,
147 const std::string&
name,
148 const EventContext& ctx)
const;
214 template <
class OWNER>
216 const std::string&
name,
217 const std::string&
doc =
"");
230 template <
class OWNER>
232 const std::string&
name,
245 template <
class OWNER,
247 typename = std::enable_if_t<std::is_arithmetic_v<U> > >
249 const std::string&
name,
251 const std::string&
doc =
"");
272 virtual std::string
name()
const override;
287 :
public Gaudi::Property<T>
297 const std::string&
doc,
309 const std::string&
doc,
315 using Gaudi::Property<T>::operator=;
435 #define ATH_TWC_REQUIRES ATH_REQUIRES( requires (BASE& b, Gaudi::Property<int>& p) { { b.declareProperty(p) }; } )
436 template <
class BASE>
439 :
public extends<BASE, IToolWithConstants>
447 using extends<BASE, IToolWithConstants>::extends;
480 const std::string&
name,
481 const EventContext& ctx)
const;
490 const EventContext& ctx)
const override;
528 {
this,
"DBHandleKey",
"",
"" };
532 {
this,
"prefix",
"",
"" };
541 {
this,
"order", 0 };
554 {
this,
"isDummy",
false };
564 #undef ATH_TWC_REQUIRES
567 #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
::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.
Compatibility helpers for using some pieces of C++20 concepts with older compilers.
Context object for retrieving ToolConstant values.
=============================================================================
const CaloRec::ToolConstants * m_constants
const EventContext & m_ctx