![]() |
ATLAS Offline Software
|
Internal implementation object. More...
#include <ToolWithConstants.h>
Public Types | |
| using | Context = ToolConstantsContext |
Public Member Functions | |
| ToolWithConstantsImpl (const std::string &toolName, const std::string &prefix, SG::ReadCondHandleKey< CaloRec::ToolConstants > &DBHandle) | |
| Constructor. More... | |
| StatusCode | initialize () |
| Initialize. More... | |
| Context | context (const EventContext &ctx) const |
Create a Context object. More... | |
| void | addConstant (IToolConstant *c) |
| Add a new constant to the tool. More... | |
| void | writeConstants (std::ostream &stream, const std::string &name, const EventContext &ctx) const |
| Dump method (for debugging) More... | |
| StatusCode | mergeConstants (const std::string &typeName, int toolVersion, Context &myctx, bool isDummy, CaloRec::ToolConstants &out) const |
Merge our constants into out with the proper prefix. More... | |
Public Attributes | |
| std::string | m_toolName |
| Name of the owning tool. More... | |
| const std::string & | m_prefix |
| The prefix of this constant in COOL. More... | |
| CaloRec::ToolConstants | m_constants |
| For settings made from JO. More... | |
| SG::ReadCondHandleKey< CaloRec::ToolConstants > & | m_DBHandle |
| Handle to a ToolConstants conditions object. More... | |
| std::vector< IToolConstant * > | m_declaredConstants |
| All constants declared to this tool. More... | |
Internal implementation object.
Allows factoring out code which doesn't depend on template parameters.
Definition at line 101 of file ToolWithConstants.h.
Definition at line 104 of file ToolWithConstants.h.
| CaloUtils::ToolWithConstantsImpl::ToolWithConstantsImpl | ( | const std::string & | toolName, |
| const std::string & | prefix, | ||
| SG::ReadCondHandleKey< CaloRec::ToolConstants > & | DBHandle | ||
| ) |
Constructor.
| toolName | Name of the tool. |
| prefix | Constant prefix in COOL. |
| DBHandle | Handle key for the conditions object. |
Definition at line 24 of file ToolWithConstants.cxx.
| void CaloUtils::ToolWithConstantsImpl::addConstant | ( | IToolConstant * | c | ) |
Add a new constant to the tool.
| c | Constant to add. |
Definition at line 66 of file ToolWithConstants.cxx.
| ToolWithConstantsImpl::Context CaloUtils::ToolWithConstantsImpl::context | ( | const EventContext & | ctx | ) | const |
Create a Context object.
This can then be passed to Constant::operator().
Definition at line 51 of file ToolWithConstants.cxx.
| StatusCode CaloUtils::ToolWithConstantsImpl::initialize | ( | ) |
Initialize.
Definition at line 38 of file ToolWithConstants.cxx.
| StatusCode CaloUtils::ToolWithConstantsImpl::mergeConstants | ( | const std::string & | typeName, |
| int | toolVersion, | ||
| Context & | myctx, | ||
| bool | isDummy, | ||
| CaloRec::ToolConstants & | out | ||
| ) | const |
Merge our constants into out with the proper prefix.
| typeName | Name of the type of the tool. | |
| toolVersion | Version of the tool. | |
| myctx | Internal Context structure. | |
| isDummy | isDummy constant from the tool | |
| [out] | out | Object to receive our constants. |
Definition at line 101 of file ToolWithConstants.cxx.
| void CaloUtils::ToolWithConstantsImpl::writeConstants | ( | std::ostream & | stream, |
| const std::string & | name, | ||
| const EventContext & | ctx | ||
| ) | const |
Dump method (for debugging)
| stream | Ostream to which to write. |
| name | Name to go in output |
| ctx | Event context. |
Definition at line 78 of file ToolWithConstants.cxx.
| CaloRec::ToolConstants CaloUtils::ToolWithConstantsImpl::m_constants |
For settings made from JO.
Definition at line 176 of file ToolWithConstants.h.
| SG::ReadCondHandleKey<CaloRec::ToolConstants>& CaloUtils::ToolWithConstantsImpl::m_DBHandle |
Handle to a ToolConstants conditions object.
Definition at line 179 of file ToolWithConstants.h.
| std::vector<IToolConstant*> CaloUtils::ToolWithConstantsImpl::m_declaredConstants |
All constants declared to this tool.
Definition at line 182 of file ToolWithConstants.h.
| const std::string& CaloUtils::ToolWithConstantsImpl::m_prefix |
The prefix of this constant in COOL.
Definition at line 173 of file ToolWithConstants.h.
| std::string CaloUtils::ToolWithConstantsImpl::m_toolName |
Name of the owning tool.
Definition at line 167 of file ToolWithConstants.h.
1.8.18