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

Definition at line 154 of file SnapshotHelpers.hxx.

Public Member Functions

 UntypedSnapshotTTreeHelper (const UntypedSnapshotTTreeHelper &)=delete
 
 UntypedSnapshotTTreeHelper (std::string_view filename, std::string_view dirname, std::string_view treename, const ColumnNames_t &vbnames, const ColumnNames_t &bnames, const RSnapshotOptions &options, std::vector< bool > &&isDefine, ROOT::Detail::RDF::RLoopManager *loopManager, ROOT::Detail::RDF::RLoopManager *inputLM, const std::vector< const std::type_info * > &colTypeIDs)
 
 UntypedSnapshotTTreeHelper (UntypedSnapshotTTreeHelper &&) noexcept
 
 ~UntypedSnapshotTTreeHelper () final
 
void Exec (unsigned int, const std::vector< void * > &values)
 
void Finalize ()
 
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)
 
UntypedSnapshotTTreeHelper MakeNew (void *newName, std::string_view="nominal")
 Create a new UntypedSnapshotTTreeHelper with a different output file name.
 
UntypedSnapshotTTreeHelperoperator= (const UntypedSnapshotTTreeHelper &)=delete
 
UntypedSnapshotTTreeHelperoperator= (UntypedSnapshotTTreeHelper &&) noexcept
 
void SetBranches (const std::vector< void * > &values)
 
void SetEmptyBranches (TTree *inputTree, TTree &outputTree)
 
void UpdateCArraysPtrs (const std::vector< void * > &values)
 
- Public Member Functions inherited from ROOT::Detail::RDF::RActionImpl< UntypedSnapshotTTreeHelper >
virtual ~RActionImpl ()=default
 
auto CallFinalizeTask (unsigned int slot) -> decltype(std::declval< T >().FinalizeTask(slot))
 
void CallFinalizeTask (unsigned int, Args...)
 
UntypedSnapshotTTreeHelper 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

bool fBranchAddressesNeedReset {true}
 
std::vector< RBranchDatafBranchData
 
std::string fDirName
 
std::string fFileName
 
ROOT::Detail::RDF::RLoopManagerfInputLoopManager
 
TTreefInputTree = nullptr
 
RSnapshotOptions fOptions
 
std::unique_ptr< TFilefOutputFile
 
ROOT::Detail::RDF::RLoopManagerfOutputLoopManager
 
std::unique_ptr< TTreefOutputTree
 
std::string fTreeName
 

#include <ROOT/RDF/SnapshotHelpers.hxx>

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

Constructor & Destructor Documentation

◆ UntypedSnapshotTTreeHelper() [1/3]

ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::UntypedSnapshotTTreeHelper ( std::string_view filename,
std::string_view dirname,
std::string_view treename,
const ColumnNames_t & vbnames,
const ColumnNames_t & bnames,
const RSnapshotOptions & options,
std::vector< bool > && isDefine,
ROOT::Detail::RDF::RLoopManager * loopManager,
ROOT::Detail::RDF::RLoopManager * inputLM,
const std::vector< const std::type_info * > & colTypeIDs )

Definition at line 432 of file RDFSnapshotHelpers.cxx.

◆ UntypedSnapshotTTreeHelper() [2/3]

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

◆ UntypedSnapshotTTreeHelper() [3/3]

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

◆ ~UntypedSnapshotTTreeHelper()

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

Definition at line 459 of file RDFSnapshotHelpers.cxx.

Member Function Documentation

◆ Exec()

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

Definition at line 484 of file RDFSnapshotHelpers.cxx.

◆ Finalize()

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

Definition at line 559 of file RDFSnapshotHelpers.cxx.

◆ GetActionName()

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

Definition at line 194 of file SnapshotHelpers.hxx.

◆ GetSampleCallback()

ROOT::RDF::SampleCallback_t ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::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< UntypedSnapshotTTreeHelper >.

Definition at line 196 of file SnapshotHelpers.hxx.

◆ Initialize()

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

Definition at line 535 of file RDFSnapshotHelpers.cxx.

◆ InitTask()

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

Definition at line 475 of file RDFSnapshotHelpers.cxx.

◆ MakeNew()

ROOT::Internal::RDF::UntypedSnapshotTTreeHelper ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::MakeNew ( void * newName,
std::string_view = "nominal" )

Create a new UntypedSnapshotTTreeHelper with a different output file name.

Parameters
newNameA type-erased string with the output file name
Returns
UntypedSnapshotTTreeHelper

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 592 of file RDFSnapshotHelpers.cxx.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ SetBranches()

void ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::SetBranches ( const std::vector< void * > & values)

Definition at line 517 of file RDFSnapshotHelpers.cxx.

◆ SetEmptyBranches()

void ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::SetEmptyBranches ( TTree * inputTree,
TTree & outputTree )

Definition at line 527 of file RDFSnapshotHelpers.cxx.

◆ UpdateCArraysPtrs()

void ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::UpdateCArraysPtrs ( const std::vector< void * > & values)

Definition at line 496 of file RDFSnapshotHelpers.cxx.

Member Data Documentation

◆ fBranchAddressesNeedReset

bool ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::fBranchAddressesNeedReset {true}
private

Definition at line 161 of file SnapshotHelpers.hxx.

◆ fBranchData

std::vector<RBranchData> ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::fBranchData
private

Definition at line 163 of file SnapshotHelpers.hxx.

◆ fDirName

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

Definition at line 156 of file SnapshotHelpers.hxx.

◆ fFileName

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

Definition at line 155 of file SnapshotHelpers.hxx.

◆ fInputLoopManager

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

Definition at line 165 of file SnapshotHelpers.hxx.

◆ fInputTree

TTree* ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::fInputTree = nullptr
private

Definition at line 162 of file SnapshotHelpers.hxx.

◆ fOptions

RSnapshotOptions ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::fOptions
private

Definition at line 158 of file SnapshotHelpers.hxx.

◆ fOutputFile

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

Definition at line 159 of file SnapshotHelpers.hxx.

◆ fOutputLoopManager

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

Definition at line 164 of file SnapshotHelpers.hxx.

◆ fOutputTree

std::unique_ptr<TTree> ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::fOutputTree
private

Definition at line 160 of file SnapshotHelpers.hxx.

◆ fTreeName

std::string ROOT::Internal::RDF::UntypedSnapshotTTreeHelper::fTreeName
private

Definition at line 157 of file SnapshotHelpers.hxx.

Libraries for ROOT::Internal::RDF::UntypedSnapshotTTreeHelper:

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