RDFAnalysis  0.1.1
Physics analysis with ROOT::RDataFrame
INodeWriter< Detail > Class Template Referenceabstract

Base class for writing specific information from Nodes to file. More...

#include <INodeWriter.h>

Inheritance diagram for INodeWriter< Detail >:
CutflowWriter< Detail > TObjectWriter< Detail >

Public Member Functions

virtual ~INodeWriter ()
 
virtual void write (Node< Detail > &node, TDirectory *directory, std::size_t depth)=0
 Write the contents of node to directory. More...
 
virtual void write (typename Scheduler< Detail >::Region &region, TDirectory *directory, std::size_t depth)
 Write the contents of a region to a directory. More...
 

Detailed Description

template<typename Detail>
class RDFAnalysis::INodeWriter< Detail >

Base class for writing specific information from Nodes to file.

Template Parameters
DetailThe templated Detail type of the Node class to read from.

This class provides for a uniform interface for objects that extract information from a given node to write to an output file. This allows detailed and flexible configuration of what is written to the output.

Constructor & Destructor Documentation

virtual ~INodeWriter ( )
inlinevirtual

Member Function Documentation

virtual void write ( Node< Detail > &  node,
TDirectory *  directory,
std::size_t  depth 
)
pure virtual

Write the contents of node to directory.

Parameters
nodeThe node to write
directoryThe directory to write
depthHow deep down the node structure we are.

Implemented in CutflowWriter< Detail >, and TObjectWriter< Detail >.

virtual void write ( typename Scheduler< Detail >::Region &  region,
TDirectory *  directory,
std::size_t  depth 
)
inlinevirtual

Write the contents of a region to a directory.

Parameters
regionThe region to write
directoryThe directory to write to
depthHow deep down the node structure we are.

This variant is largely there so that the TObjectWriter can pick up preselections correctly...

Reimplemented in TObjectWriter< Detail >.


The documentation for this class was generated from the following file: