#include <RNtupleFieldHelpers.h>
Definition at line 83 of file RNtupleFieldHelpers.h.
◆ ContainerFieldProcessor() [1/2]
| CP::RNtupleFieldHelpers::ContainerFieldProcessor::ContainerFieldProcessor |
( |
| ) |
|
|
default |
◆ ~ContainerFieldProcessor()
| virtual CP::RNtupleFieldHelpers::ContainerFieldProcessor::~ContainerFieldProcessor |
( |
| ) |
|
|
virtualdefault |
◆ ContainerFieldProcessor() [2/2]
◆ getData()
| void * CP::RNtupleFieldHelpers::ContainerFieldProcessor::getData |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ process()
| StatusCode CP::RNtupleFieldHelpers::ContainerFieldProcessor::process |
( |
const SG::AuxElement & | element, |
|
|
size_t | index, |
|
|
MsgStream & | msg ) |
Definition at line 348 of file RNtupleFieldHelpers.cxx.
348 {
350 if( !rawDataPtr && index > 0 ) return StatusCode::FAILURE;
351
352 try {
353 TempInterface dstiface( index + 1,
m_acc->auxid(), rawDataPtr );
355 } catch( ... ) {
357 return StatusCode::FAILURE;
358 }
359 return StatusCode::SUCCESS;
360 }
const SG::IAuxTypeVectorFactory * m_factory
std::unique_ptr< SG::TypelessConstAccessor > m_acc
const SG::AuxVectorData * container() const
Return the container holding this element.
size_t index() const
Return the index of this element within its container.
◆ resize()
| StatusCode CP::RNtupleFieldHelpers::ContainerFieldProcessor::resize |
( |
size_t | size, |
|
|
MsgStream & | msg ) |
Definition at line 340 of file RNtupleFieldHelpers.cxx.
340 {
342 m_ops.resize( size );
343 return StatusCode::SUCCESS;
344 }
345 return StatusCode::FAILURE;
346 }
◆ setup() [1/2]
| StatusCode CP::RNtupleFieldHelpers::ContainerFieldProcessor::setup |
( |
ROOT::RNTupleModel & | model, |
|
|
const BranchConfig & | branchConfig, |
|
|
OutputBranchData & | outputData, |
|
|
MsgStream & | msg ) |
|
overridevirtual |
Implements CP::TreeBranchHelpers::IComponentProcessor.
Definition at line 306 of file RNtupleFieldHelpers.cxx.
309 {
311 m_acc.reset(
new SG::TypelessConstAccessor( *branchConfig.auxType, outputData.auxName ) );
312
313 if( branchConfig.auxFactory && branchConfig.auxVecType ) {
315 const std::type_info* type_info = branchConfig.auxVecType;
316
318 } else {
319 msg << MSG::ERROR <<
"BranchConfig not properly configured for " << outputData.auxName <<
endmsg;
320 return StatusCode::FAILURE;
321 }
322
323 if( !
m_field )
return StatusCode::FAILURE;
324
327 return StatusCode::FAILURE;
328 }
329 return StatusCode::SUCCESS;
330 }
std::shared_ptr< void > m_field
◆ setup() [2/2]
| StatusCode CP::RNtupleFieldHelpers::ContainerFieldProcessor::setup |
( |
TTree & | , |
|
|
const BranchConfig & | , |
|
|
OutputBranchData & | , |
|
|
MsgStream & | msg ) |
|
overridevirtual |
◆ m_acc
◆ m_dataPtr
| void* CP::RNtupleFieldHelpers::ContainerFieldProcessor::m_dataPtr = nullptr |
◆ m_factory
◆ m_field
| std::shared_ptr<void> CP::RNtupleFieldHelpers::ContainerFieldProcessor::m_field |
◆ m_fieldName
| std::string CP::RNtupleFieldHelpers::ContainerFieldProcessor::m_fieldName |
◆ m_ops
| FieldOps CP::RNtupleFieldHelpers::ContainerFieldProcessor::m_ops |
The documentation for this class was generated from the following files: