12 #include "GaudiKernel/ThreadLocalContext.h"
28 <<
"Found " << m_tools.size() <<
30 return StatusCode::SUCCESS;
37 const EventContext& ctx = Gaudi::Hive::currentContext();
38 if (!m_inlineFolder.empty()) {
40 std::string toolnames;
41 unsigned coolChannelNbr=m_blobTool->nameToChannelNumber(m_key);
43 if (
detStore()->contains<CondAttrListCollection>(m_inlineFolder)) {
51 for (
size_t i = 0;
i < m_tools.size();
i++) {
52 CHECK( m_tools[
i]->mergeConstants (tc, ctx) );
53 toolnames += m_tools[
i]->name() +
" ";
57 return StatusCode::FAILURE;
59 const std::string& tName=m_key;
60 attrColl->
add(coolChannelNbr,tName);
61 attrColl->
add(coolChannelNbr,*attrList);
66 REPORT_MESSAGE(MSG::INFO) <<
"Recorded CondAttributeListCollection with key " << m_inlineFolder <<
" channel name " << m_key
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++) {
73 CHECK( m_tools[
i]->mergeConstants (*tc, ctx) );
74 toolnames += m_tools[
i]->name() +
" ";
78 REPORT_MESSAGE(MSG::INFO) <<
"Recorded constants for key " << m_key
79 <<
" to DetStore.\n Tools: " << toolnames;
88 return StatusCode::SUCCESS;
97 return StatusCode::SUCCESS;