Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper Class Referencefinal

Definition at line 47 of file SnapshotHelpers.hxx.

Public Member Functions

 UntypedSnapshotRNTupleHelper (const UntypedSnapshotRNTupleHelper &)=delete
 
 UntypedSnapshotRNTupleHelper (unsigned int nSlots, std::string_view filename, std::string_view dirname, std::string_view ntuplename, const ColumnNames_t &vfnames, const ColumnNames_t &fnames, const RSnapshotOptions &options, ROOT::Detail::RDF::RLoopManager *inputLM, ROOT::Detail::RDF::RLoopManager *outputLM, const std::vector< const std::type_info * > &colTypeIDs)
 
 UntypedSnapshotRNTupleHelper (UntypedSnapshotRNTupleHelper &&) noexcept
 
 ~UntypedSnapshotRNTupleHelper () final
 
void Exec (unsigned int slot, const std::vector< void * > &values)
 
void Finalize ()
 
void FinalizeTask (unsigned int slot)
 
std::string GetActionName ()
 
ROOT::RDF::SampleCallback_t GetSampleCallback () final
 Override this method to register a callback that is executed before the processing a new data sample starts.
 
void Initialize ()
 
void InitTask (TTreeReader *, unsigned int slot)
 
UntypedSnapshotRNTupleHelper MakeNew (void *newName)
 Create a new UntypedSnapshotRNTupleHelper with a different output file name.
 
UntypedSnapshotRNTupleHelperoperator= (const UntypedSnapshotRNTupleHelper &)=delete
 
UntypedSnapshotRNTupleHelperoperator= (UntypedSnapshotRNTupleHelper &&) noexcept
 
- Public Member Functions inherited from ROOT::Detail::RDF::RActionImpl< UntypedSnapshotRNTupleHelper >
virtual ~RActionImpl ()=default
 
auto CallFinalizeTask (unsigned int slot) -> decltype(std::declval< T >().FinalizeTask(slot))
 
void CallFinalizeTask (unsigned int, Args...)
 
UntypedSnapshotRNTupleHelper CallMakeNew (void *typeErasedResSharedPtr, std::string_view variation="nominal")
 
void * CallPartialUpdate (...)
 
auto CallPartialUpdate (unsigned int slot) -> decltype(std::declval< H >().PartialUpdate(slot),(void *)(nullptr))
 
virtual std::unique_ptr< RMergeableValueBaseGetMergeableValue () const
 

Private Attributes

std::string fDirName
 
std::vector< std::unique_ptr< ROOT::REntry > > fEntries
 
std::vector< ROOT::RFieldTokenfFieldTokens
 
std::string fFileName
 
std::vector< std::shared_ptr< ROOT::RNTupleFillContext > > fFillContexts
 
std::vector< const std::type_info * > fInputColumnTypeIDs
 
ColumnNames_t fInputFieldNames
 
ROOT::Detail::RDF::RLoopManagerfInputLoopManager
 
unsigned int fNSlots
 
std::string fNTupleName
 
RSnapshotOptions fOptions
 
ColumnNames_t fOutputFieldNames
 
std::unique_ptr< TFilefOutputFile
 
ROOT::Detail::RDF::RLoopManagerfOutputLoopManager
 
std::unique_ptr< ROOT::RNTupleParallelWriterfWriter
 

#include <ROOT/RDF/SnapshotHelpers.hxx>

Inheritance diagram for ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper:
[legend]

Constructor & Destructor Documentation

◆ UntypedSnapshotRNTupleHelper() [1/3]

ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::UntypedSnapshotRNTupleHelper ( unsigned int nSlots,
std::string_view filename,
std::string_view dirname,
std::string_view ntuplename,
const ColumnNames_t & vfnames,
const ColumnNames_t & fnames,
const RSnapshotOptions & options,
ROOT::Detail::RDF::RLoopManager * inputLM,
ROOT::Detail::RDF::RLoopManager * outputLM,
const std::vector< const std::type_info * > & colTypeIDs )

Definition at line 869 of file RDFSnapshotHelpers.cxx.

◆ UntypedSnapshotRNTupleHelper() [2/3]

ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::UntypedSnapshotRNTupleHelper ( const UntypedSnapshotRNTupleHelper & )
delete

◆ UntypedSnapshotRNTupleHelper() [3/3]

ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::UntypedSnapshotRNTupleHelper ( UntypedSnapshotRNTupleHelper && )
defaultnoexcept

◆ ~UntypedSnapshotRNTupleHelper()

ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::~UntypedSnapshotRNTupleHelper ( )
final

Definition at line 896 of file RDFSnapshotHelpers.cxx.

Member Function Documentation

◆ Exec()

void ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::Exec ( unsigned int slot,
const std::vector< void * > & values )

Definition at line 956 of file RDFSnapshotHelpers.cxx.

◆ Finalize()

void ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::Finalize ( )

Definition at line 974 of file RDFSnapshotHelpers.cxx.

◆ FinalizeTask()

void ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::FinalizeTask ( unsigned int slot)

Definition at line 967 of file RDFSnapshotHelpers.cxx.

◆ GetActionName()

std::string ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::GetActionName ( )
inline

Definition at line 91 of file SnapshotHelpers.hxx.

◆ GetSampleCallback()

ROOT::RDF::SampleCallback_t ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::GetSampleCallback ( )
inlinefinalvirtual

Override this method to register a callback that is executed before the processing a new data sample starts.

The callback will be invoked in the same conditions as with DefinePerSample().

Reimplemented from ROOT::Detail::RDF::RActionImpl< UntypedSnapshotRNTupleHelper >.

Definition at line 93 of file SnapshotHelpers.hxx.

◆ Initialize()

void ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::Initialize ( )

Definition at line 902 of file RDFSnapshotHelpers.cxx.

◆ InitTask()

void ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::InitTask ( TTreeReader * ,
unsigned int slot )

Definition at line 948 of file RDFSnapshotHelpers.cxx.

◆ MakeNew()

ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::MakeNew ( void * newName)

Create a new UntypedSnapshotRNTupleHelper with a different output file name.

Parameters
[in]newNameA type-erased string with the output file name
Returns
UntypedSnapshotRNTupleHelper

This MakeNew implementation is tied to the cloning feature of actions of the computation graph. In particular, cloning a Snapshot node usually also involves changing the name of the output file, otherwise the cloned Snapshot would overwrite the same file.

Definition at line 997 of file RDFSnapshotHelpers.cxx.

◆ operator=() [1/2]

UntypedSnapshotRNTupleHelper & ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::operator= ( const UntypedSnapshotRNTupleHelper & )
delete

◆ operator=() [2/2]

ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper & ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::operator= ( UntypedSnapshotRNTupleHelper && )
defaultnoexcept

Member Data Documentation

◆ fDirName

std::string ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fDirName
private

Definition at line 49 of file SnapshotHelpers.hxx.

◆ fEntries

std::vector<std::unique_ptr<ROOT::REntry> > ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fEntries
private

Definition at line 64 of file SnapshotHelpers.hxx.

◆ fFieldTokens

std::vector<ROOT::RFieldToken> ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fFieldTokens
private

Definition at line 60 of file SnapshotHelpers.hxx.

◆ fFileName

std::string ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fFileName
private

Definition at line 48 of file SnapshotHelpers.hxx.

◆ fFillContexts

std::vector<std::shared_ptr<ROOT::RNTupleFillContext> > ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fFillContexts
private

Definition at line 63 of file SnapshotHelpers.hxx.

◆ fInputColumnTypeIDs

std::vector<const std::type_info *> ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fInputColumnTypeIDs
private

Definition at line 66 of file SnapshotHelpers.hxx.

◆ fInputFieldNames

ColumnNames_t ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fInputFieldNames
private

Definition at line 57 of file SnapshotHelpers.hxx.

◆ fInputLoopManager

ROOT::Detail::RDF::RLoopManager* ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fInputLoopManager
private

Definition at line 55 of file SnapshotHelpers.hxx.

◆ fNSlots

unsigned int ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fNSlots
private

Definition at line 62 of file SnapshotHelpers.hxx.

◆ fNTupleName

std::string ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fNTupleName
private

Definition at line 50 of file SnapshotHelpers.hxx.

◆ fOptions

RSnapshotOptions ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fOptions
private

Definition at line 54 of file SnapshotHelpers.hxx.

◆ fOutputFieldNames

ColumnNames_t ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fOutputFieldNames
private

Definition at line 58 of file SnapshotHelpers.hxx.

◆ fOutputFile

std::unique_ptr<TFile> ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fOutputFile
private

Definition at line 52 of file SnapshotHelpers.hxx.

◆ fOutputLoopManager

ROOT::Detail::RDF::RLoopManager* ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fOutputLoopManager
private

Definition at line 56 of file SnapshotHelpers.hxx.

◆ fWriter

std::unique_ptr<ROOT::RNTupleParallelWriter> ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper::fWriter
private

Definition at line 59 of file SnapshotHelpers.hxx.

Libraries for ROOT::Internal::RDF::UntypedSnapshotRNTupleHelper:

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