#include <ViewHelper.h>
Definition at line 135 of file ViewHelper.h.
◆ ViewMerger()
ViewHelper::ViewMerger::ViewMerger |
( |
StoreGateSvc * |
sg, |
|
|
MsgStream & |
msg |
|
) |
| |
|
inline |
◆ mergeViewCollection() [1/2]
Definition at line 173 of file ViewHelper.h.
176 if ( !outputData.getStore() )
178 m_msg << MSG::ERROR <<
"output data does not have the store" <<
endmsg;
179 return StatusCode::FAILURE;
190 for (
auto inputView : viewVector )
194 if ( !
sc.isSuccess() )
196 m_msg << MSG::ERROR <<
"Failed to use view " << inputView->name() <<
" to read " << queryHandle.key() <<
endmsg;
201 if ( queryHandle->size() == 0 )
204 m_msg <<
MSG::DEBUG <<
"Empty collection " << queryHandle.key() <<
" in a view " << inputView->name() <<
endmsg;
210 for (
const auto inputObject : *queryHandle.cptr() )
213 T * outputObject =
new T();
215 *outputObject = *inputObject;
218 viewBookkeeper( *outputObject ) = inputView->getROI();
222 m_msg <<
MSG::DEBUG <<
"Copied " << queryHandle->size() <<
" objects from collection in view " << inputView->name() <<
endmsg;
226 auto proxy = inputView->proxy( queryHandle.clid(), queryHandle.key() );
231 offset += queryHandle->size();
234 return StatusCode::SUCCESS;
◆ mergeViewCollection() [2/2]
Definition at line 144 of file ViewHelper.h.
150 for (
SG::View* inputView : viewVector )
154 if ( !
sc.isSuccess() )
156 m_msg << MSG::ERROR <<
"Failed to use view " << inputView->name() <<
" to read " << queryHandle.key() <<
" resetting output" <<
endmsg;
162 T inputData = *queryHandle;
163 outputData.insert( outputData.end(), inputData.begin(), inputData.end() );
166 return StatusCode::SUCCESS;
◆ m_msg
MsgStream& ViewHelper::ViewMerger::m_msg |
|
private |
◆ m_sg
The documentation for this class was generated from the following file: