12#include "GaudiKernel/ThreadLocalContext.h"
28 <<
"Found " <<
m_tools.size() <<
30 return StatusCode::SUCCESS;
37 const EventContext& ctx = Gaudi::Hive::currentContext();
40 std::string toolnames;
51 for (
size_t i = 0; i <
m_tools.size(); i++) {
53 toolnames +=
m_tools[i]->name() +
" ";
55 coral::AttributeList* attrList=
m_blobTool->ToolConstantsToAttrList(&
tc);
57 return StatusCode::FAILURE;
59 const std::string& tName=
m_key;
60 attrColl->
add(coolChannelNbr,tName);
61 attrColl->
add(coolChannelNbr,*attrList);
67 <<
" to DetStore.\n Tools: " << toolnames;
70 auto tc = std::make_unique<CaloRec::ToolConstants>();
71 std::string toolnames;
72 for (
size_t i = 0; i <
m_tools.size(); i++) {
74 toolnames +=
m_tools[i]->name() +
" ";
79 <<
" to DetStore.\n Tools: " << toolnames;
88 return StatusCode::SUCCESS;
97 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define CHECK(...)
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
virtual StatusCode initialize() override
StringProperty m_inlineFolder
ToolHandle< Blob2ToolConstants > m_blobTool
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode finalize() override
StringProperty m_key
Key for the DetectorStore (jobOptions) The ToolConstants will be recorded with this key.
ToolHandleArray< IToolWithConstants > m_tools
The list of tools.
This class is a collection of AttributeLists where each one is associated with a channel number.
bool add(ChanNum chanNum, const AttributeList &attributeList)
Adding in chan/attrList pairs.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
Namespace for helper functions.