#include <ViewHelper.h>
Definition at line 134 of file ViewHelper.h.
◆ ViewMerger()
ViewHelper::ViewMerger::ViewMerger |
( |
StoreGateSvc * |
sg, |
|
|
MsgStream & |
msg |
|
) |
| |
|
inline |
◆ mergeViewCollection() [1/2]
Definition at line 172 of file ViewHelper.h.
175 if ( !outputData.getStore() )
177 m_msg << MSG::ERROR <<
"output data does not have the store" <<
endmsg;
178 return StatusCode::FAILURE;
189 for (
auto inputView : viewVector )
193 if ( !
sc.isSuccess() )
195 m_msg << MSG::ERROR <<
"Failed to use view " << inputView->name() <<
" to read " << queryHandle.key() <<
endmsg;
200 if ( queryHandle->size() == 0 )
203 m_msg <<
MSG::DEBUG <<
"Empty collection " << queryHandle.key() <<
" in a view " << inputView->name() <<
endmsg;
209 for (
const auto inputObject : *queryHandle.cptr() )
212 T * outputObject =
new T();
214 *outputObject = *inputObject;
217 viewBookkeeper( *outputObject ) = inputView->getROI();
221 m_msg <<
MSG::DEBUG <<
"Copied " << queryHandle->size() <<
" objects from collection in view " << inputView->name() <<
endmsg;
225 auto proxy = inputView->proxy( queryHandle.clid(), queryHandle.key() );
230 offset += queryHandle->size();
233 return StatusCode::SUCCESS;
◆ mergeViewCollection() [2/2]
Definition at line 143 of file ViewHelper.h.
149 for (
SG::View* inputView : viewVector )
153 if ( !
sc.isSuccess() )
155 m_msg << MSG::ERROR <<
"Failed to use view " << inputView->name() <<
" to read " << queryHandle.key() <<
" resetting output" <<
endmsg;
161 T inputData = *queryHandle;
162 outputData.insert( outputData.end(), inputData.begin(), inputData.end() );
165 return StatusCode::SUCCESS;
◆ m_msg
MsgStream& ViewHelper::ViewMerger::m_msg |
|
private |
◆ m_sg
The documentation for this class was generated from the following file: