Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Detail::TDF::TLoopManager Class Reference

Definition at line 50 of file TDFNodes.hxx.

Public Member Functions

 TLoopManager (TTree *tree, const ColumnNames_t &defaultBranches)
 
 TLoopManager (Long64_t nEmptyEntries)
 
 TLoopManager (const TLoopManager &)=delete
 
 ~TLoopManager ()
 
void Book (const ActionBasePtr_t &actionPtr)
 
void Book (const FilterBasePtr_t &filterPtr)
 
void Book (const TmpBranchBasePtr_t &branchPtr)
 
void Book (const std::shared_ptr< bool > &branchPtr)
 
void Book (const RangeBasePtr_t &rangePtr)
 
bool CheckFilters (int, unsigned int)
 
void CleanUpTask (unsigned int slot)
 Perform clean-up operations. To be called at the end of each task execution. More...
 
TCustomColumnBaseGetBookedBranch (const std::string &name) const
 
const std::map< std::string, TmpBranchBasePtr_t > & GetBookedBranches () const
 
const ColumnNames_t & GetDefaultBranches () const
 
::TDirectoryGetDirectory () const
 
TLoopManagerGetImplPtr ()
 
Long64_t GetNEmptyEntries () const
 
unsigned int GetNSlots () const
 
std::shared_ptr< TLoopManagerGetSharedPtr ()
 
const ColumnNames_t GetTmpBranches () const
 
TTreeGetTree () const
 
bool HasRunAtLeastOnce () const
 
void IncrChildrenCount ()
 
void InitAllNodes (TTreeReader *r, unsigned int slot)
 Build TTreeReaderValues for all nodes. More...
 
void PartialReport () const
 End of recursive chain of calls, does nothing. More...
 
void Report () const
 Call PrintReport on all booked filters. More...
 
void Run ()
 
void SetTree (std::shared_ptr< TTree > tree)
 
void StopProcessing ()
 

Private Member Functions

void InitNodes ()
 Initialize all nodes of the functional graph before running the event loop. More...
 
void RunAndCheckFilters (unsigned int slot, Long64_t entry)
 

Private Attributes

ActionBaseVec_t fBookedActions
 
std::map< std::string, TmpBranchBasePtr_tfBookedBranches
 
FilterBaseVec_t fBookedFilters
 
FilterBaseVec_t fBookedNamedFilters
 
RangeBaseVec_t fBookedRanges
 
const ColumnNames_t fDefaultBranches
 
::TDirectoryfDirPtr {nullptr}
 
bool fHasRunAtLeastOnce {false}
 
unsigned int fNChildren {0}
 Number of nodes of the functional graph hanging from this object. More...
 
const Long64_t fNEmptyEntries {0}
 
const unsigned int fNSlots {0}
 
unsigned int fNStopsReceived {0}
 Number of times that a children node signaled to stop processing entries. More...
 
std::vector< std::shared_ptr< bool > > fResProxyReadiness
 
std::shared_ptr< TTreefTree {nullptr}
 

#include <ROOT/TDFNodes.hxx>

Inheritance diagram for ROOT::Detail::TDF::TLoopManager:
[legend]

Constructor & Destructor Documentation

◆ TLoopManager() [1/3]

TLoopManager::TLoopManager ( TTree tree,
const ColumnNames_t &  defaultBranches 
)

Definition at line 131 of file TDFNodes.cxx.

◆ TLoopManager() [2/3]

TLoopManager::TLoopManager ( Long64_t  nEmptyEntries)

Definition at line 137 of file TDFNodes.cxx.

◆ TLoopManager() [3/3]

ROOT::Detail::TDF::TLoopManager::TLoopManager ( const TLoopManager )
delete

◆ ~TLoopManager()

ROOT::Detail::TDF::TLoopManager::~TLoopManager ( )
inline

Definition at line 74 of file TDFNodes.hxx.

Member Function Documentation

◆ Book() [1/5]

void TLoopManager::Book ( const ActionBasePtr_t actionPtr)

Definition at line 291 of file TDFNodes.cxx.

◆ Book() [2/5]

void TLoopManager::Book ( const FilterBasePtr_t filterPtr)

Definition at line 296 of file TDFNodes.cxx.

◆ Book() [3/5]

void TLoopManager::Book ( const TmpBranchBasePtr_t branchPtr)

Definition at line 304 of file TDFNodes.cxx.

◆ Book() [4/5]

void TLoopManager::Book ( const std::shared_ptr< bool > &  branchPtr)

Definition at line 309 of file TDFNodes.cxx.

◆ Book() [5/5]

void TLoopManager::Book ( const RangeBasePtr_t rangePtr)

Definition at line 314 of file TDFNodes.cxx.

◆ CheckFilters()

bool TLoopManager::CheckFilters ( int  ,
unsigned  int 
)

Definition at line 320 of file TDFNodes.cxx.

◆ CleanUpTask()

void TLoopManager::CleanUpTask ( unsigned int  slot)

Perform clean-up operations. To be called at the end of each task execution.

Definition at line 148 of file TDFNodes.cxx.

◆ GetBookedBranch()

TCustomColumnBase * TLoopManager::GetBookedBranch ( const std::string &  name) const

Definition at line 280 of file TDFNodes.cxx.

◆ GetBookedBranches()

const std::map<std::string, TmpBranchBasePtr_t>& ROOT::Detail::TDF::TLoopManager::GetBookedBranches ( ) const
inline

Definition at line 83 of file TDFNodes.hxx.

◆ GetDefaultBranches()

const ColumnNames_t & TLoopManager::GetDefaultBranches ( ) const

Definition at line 270 of file TDFNodes.cxx.

◆ GetDirectory()

TDirectory * TLoopManager::GetDirectory ( ) const

Definition at line 286 of file TDFNodes.cxx.

◆ GetImplPtr()

TLoopManager * TLoopManager::GetImplPtr ( )

Definition at line 265 of file TDFNodes.cxx.

◆ GetNEmptyEntries()

Long64_t ROOT::Detail::TDF::TLoopManager::GetNEmptyEntries ( ) const
inline

Definition at line 85 of file TDFNodes.hxx.

◆ GetNSlots()

unsigned int ROOT::Detail::TDF::TLoopManager::GetNSlots ( ) const
inline

Definition at line 92 of file TDFNodes.hxx.

◆ GetSharedPtr()

std::shared_ptr<TLoopManager> ROOT::Detail::TDF::TLoopManager::GetSharedPtr ( )
inline

Definition at line 78 of file TDFNodes.hxx.

◆ GetTmpBranches()

const ColumnNames_t ROOT::Detail::TDF::TLoopManager::GetTmpBranches ( ) const
inline

Definition at line 80 of file TDFNodes.hxx.

◆ GetTree()

TTree * TLoopManager::GetTree ( ) const

Definition at line 275 of file TDFNodes.cxx.

◆ HasRunAtLeastOnce()

bool ROOT::Detail::TDF::TLoopManager::HasRunAtLeastOnce ( ) const
inline

Definition at line 93 of file TDFNodes.hxx.

◆ IncrChildrenCount()

void ROOT::Detail::TDF::TLoopManager::IncrChildrenCount ( )
inline

Definition at line 98 of file TDFNodes.hxx.

◆ InitAllNodes()

void TLoopManager::InitAllNodes ( TTreeReader r,
unsigned int  slot 
)

Build TTreeReaderValues for all nodes.

This method loops over all filters, actions and other booked objects and calls their BuildReaderValues methods. It is called once per node per slot, before running the event loop. It also informs each node of the TTreeReader that a particular slot will be using.

Definition at line 247 of file TDFNodes.cxx.

◆ InitNodes()

void TLoopManager::InitNodes ( )
private

Initialize all nodes of the functional graph before running the event loop.

This method is called once per event-loop and performs generic initialization operations that do not depend on the specific processing slot (i.e. operations that are common for all threads).

Definition at line 260 of file TDFNodes.cxx.

◆ PartialReport()

void ROOT::Detail::TDF::TLoopManager::PartialReport ( ) const
inline

End of recursive chain of calls, does nothing.

Definition at line 96 of file TDFNodes.hxx.

◆ Report()

void TLoopManager::Report ( ) const

Call PrintReport on all booked filters.

Definition at line 326 of file TDFNodes.cxx.

◆ Run()

void TLoopManager::Run ( )

Definition at line 155 of file TDFNodes.cxx.

◆ RunAndCheckFilters()

void TLoopManager::RunAndCheckFilters ( unsigned int  slot,
Long64_t  entry 
)
private

Definition at line 141 of file TDFNodes.cxx.

◆ SetTree()

void ROOT::Detail::TDF::TLoopManager::SetTree ( std::shared_ptr< TTree tree)
inline

Definition at line 97 of file TDFNodes.hxx.

◆ StopProcessing()

void ROOT::Detail::TDF::TLoopManager::StopProcessing ( )
inline

Definition at line 99 of file TDFNodes.hxx.

Member Data Documentation

◆ fBookedActions

ActionBaseVec_t ROOT::Detail::TDF::TLoopManager::fBookedActions
private

Definition at line 52 of file TDFNodes.hxx.

◆ fBookedBranches

std::map<std::string, TmpBranchBasePtr_t> ROOT::Detail::TDF::TLoopManager::fBookedBranches
private

Definition at line 55 of file TDFNodes.hxx.

◆ fBookedFilters

FilterBaseVec_t ROOT::Detail::TDF::TLoopManager::fBookedFilters
private

Definition at line 53 of file TDFNodes.hxx.

◆ fBookedNamedFilters

FilterBaseVec_t ROOT::Detail::TDF::TLoopManager::fBookedNamedFilters
private

Definition at line 54 of file TDFNodes.hxx.

◆ fBookedRanges

RangeBaseVec_t ROOT::Detail::TDF::TLoopManager::fBookedRanges
private

Definition at line 56 of file TDFNodes.hxx.

◆ fDefaultBranches

const ColumnNames_t ROOT::Detail::TDF::TLoopManager::fDefaultBranches
private

Definition at line 60 of file TDFNodes.hxx.

◆ fDirPtr

::TDirectory* ROOT::Detail::TDF::TLoopManager::fDirPtr {nullptr}
private

Definition at line 58 of file TDFNodes.hxx.

◆ fHasRunAtLeastOnce

bool ROOT::Detail::TDF::TLoopManager::fHasRunAtLeastOnce {false}
private

Definition at line 63 of file TDFNodes.hxx.

◆ fNChildren

unsigned int ROOT::Detail::TDF::TLoopManager::fNChildren {0}
private

Number of nodes of the functional graph hanging from this object.

Definition at line 64 of file TDFNodes.hxx.

◆ fNEmptyEntries

const Long64_t ROOT::Detail::TDF::TLoopManager::fNEmptyEntries {0}
private

Definition at line 61 of file TDFNodes.hxx.

◆ fNSlots

const unsigned int ROOT::Detail::TDF::TLoopManager::fNSlots {0}
private

Definition at line 62 of file TDFNodes.hxx.

◆ fNStopsReceived

unsigned int ROOT::Detail::TDF::TLoopManager::fNStopsReceived {0}
private

Number of times that a children node signaled to stop processing entries.

Definition at line 65 of file TDFNodes.hxx.

◆ fResProxyReadiness

std::vector<std::shared_ptr<bool> > ROOT::Detail::TDF::TLoopManager::fResProxyReadiness
private

Definition at line 57 of file TDFNodes.hxx.

◆ fTree

std::shared_ptr<TTree> ROOT::Detail::TDF::TLoopManager::fTree {nullptr}
private

Definition at line 59 of file TDFNodes.hxx.


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