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

Definition at line 204 of file SnapshotHelpers.hxx.

Public Member Functions

 UntypedSnapshotTTreeHelperMT (const UntypedSnapshotTTreeHelperMT &)=delete
 
 UntypedSnapshotTTreeHelperMT (unsigned int nSlots, 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)
 
 UntypedSnapshotTTreeHelperMT (UntypedSnapshotTTreeHelperMT &&) noexcept
 
 ~UntypedSnapshotTTreeHelperMT () 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 *r, unsigned int slot)
 
UntypedSnapshotTTreeHelperMT MakeNew (void *newName, std::string_view="nominal")
 Create a new UntypedSnapshotTTreeHelperMT with a different output file name.
 
UntypedSnapshotTTreeHelperMToperator= (const UntypedSnapshotTTreeHelperMT &)=delete
 
UntypedSnapshotTTreeHelperMToperator= (UntypedSnapshotTTreeHelperMT &&) noexcept
 
void SetBranches (unsigned int slot, const std::vector< void * > &values)
 
void SetEmptyBranches (TTree *inputTree, TTree &outputTree)
 
void UpdateCArraysPtrs (unsigned int slot, const std::vector< void * > &values)
 
- Public Member Functions inherited from ROOT::Detail::RDF::RActionImpl< UntypedSnapshotTTreeHelperMT >
virtual ~RActionImpl ()=default
 
auto CallFinalizeTask (unsigned int slot) -> decltype(std::declval< T >().FinalizeTask(slot))
 
void CallFinalizeTask (unsigned int, Args...)
 
UntypedSnapshotTTreeHelperMT 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::vector< intfBranchAddressesNeedReset
 
std::vector< std::vector< RBranchData > > fBranchData
 
std::string fDirName
 
std::string fFileName
 
ROOT::Detail::RDF::RLoopManagerfInputLoopManager
 
std::vector< TTree * > fInputTrees
 
std::unique_ptr< ROOT::TBufferMergerfMerger
 
unsigned int fNSlots
 
RSnapshotOptions fOptions
 
TFilefOutputFile
 
std::vector< std::shared_ptr< ROOT::TBufferMergerFile > > fOutputFiles
 
ROOT::Detail::RDF::RLoopManagerfOutputLoopManager
 
std::vector< std::unique_ptr< TTree > > fOutputTrees
 
std::string fTreeName
 

#include <ROOT/RDF/SnapshotHelpers.hxx>

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

Constructor & Destructor Documentation

◆ UntypedSnapshotTTreeHelperMT() [1/3]

ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::UntypedSnapshotTTreeHelperMT ( unsigned int nSlots,
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 620 of file RDFSnapshotHelpers.cxx.

◆ UntypedSnapshotTTreeHelperMT() [2/3]

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

◆ UntypedSnapshotTTreeHelperMT() [3/3]

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

◆ ~UntypedSnapshotTTreeHelperMT()

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

Definition at line 657 of file RDFSnapshotHelpers.cxx.

Member Function Documentation

◆ Exec()

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

Definition at line 714 of file RDFSnapshotHelpers.cxx.

◆ Finalize()

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

Definition at line 786 of file RDFSnapshotHelpers.cxx.

◆ FinalizeTask()

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

Definition at line 704 of file RDFSnapshotHelpers.cxx.

◆ GetActionName()

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

Definition at line 258 of file SnapshotHelpers.hxx.

◆ GetSampleCallback()

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

Definition at line 260 of file SnapshotHelpers.hxx.

◆ Initialize()

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

Definition at line 775 of file RDFSnapshotHelpers.cxx.

◆ InitTask()

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

Definition at line 674 of file RDFSnapshotHelpers.cxx.

◆ MakeNew()

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

Create a new UntypedSnapshotTTreeHelperMT with a different output file name.

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

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ SetBranches()

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

Definition at line 753 of file RDFSnapshotHelpers.cxx.

◆ SetEmptyBranches()

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

Definition at line 766 of file RDFSnapshotHelpers.cxx.

◆ UpdateCArraysPtrs()

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

Definition at line 729 of file RDFSnapshotHelpers.cxx.

Member Data Documentation

◆ fBranchAddressesNeedReset

std::vector<int> ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fBranchAddressesNeedReset
private

Definition at line 212 of file SnapshotHelpers.hxx.

◆ fBranchData

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

Definition at line 214 of file SnapshotHelpers.hxx.

◆ fDirName

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

Definition at line 219 of file SnapshotHelpers.hxx.

◆ fFileName

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

Definition at line 218 of file SnapshotHelpers.hxx.

◆ fInputLoopManager

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

Definition at line 227 of file SnapshotHelpers.hxx.

◆ fInputTrees

std::vector<TTree *> ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fInputTrees
private

Definition at line 213 of file SnapshotHelpers.hxx.

◆ fMerger

std::unique_ptr<ROOT::TBufferMerger> ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fMerger
private

Definition at line 209 of file SnapshotHelpers.hxx.

◆ fNSlots

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

Definition at line 208 of file SnapshotHelpers.hxx.

◆ fOptions

RSnapshotOptions ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fOptions
private

Definition at line 222 of file SnapshotHelpers.hxx.

◆ fOutputFile

TFile* ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fOutputFile
private

Definition at line 221 of file SnapshotHelpers.hxx.

◆ fOutputFiles

std::vector<std::shared_ptr<ROOT::TBufferMergerFile> > ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fOutputFiles
private

Definition at line 210 of file SnapshotHelpers.hxx.

◆ fOutputLoopManager

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

Definition at line 226 of file SnapshotHelpers.hxx.

◆ fOutputTrees

std::vector<std::unique_ptr<TTree> > ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT::fOutputTrees
private

Definition at line 211 of file SnapshotHelpers.hxx.

◆ fTreeName

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

Definition at line 220 of file SnapshotHelpers.hxx.

Libraries for ROOT::Internal::RDF::UntypedSnapshotTTreeHelperMT:

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