Logo ROOT   master
Reference Guide
ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame > Class Template Referencefinal

template<typename FilterF, typename PrevDataFrame>
class ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >

Definition at line 54 of file RFilter.hxx.

Public Member Functions

 RFilter (FilterF f, const ColumnNames_t &columns, std::shared_ptr< PrevDataFrame > pd, const RDFInternal::RBookedCustomColumns &customColumns, std::string_view name="")
 
 RFilter (const RFilter &)=delete
 
 ~RFilter ()
 
void AddFilterName (std::vector< std::string > &filters)
 
template<std::size_t... S>
bool CheckFilterHelper (unsigned int slot, Long64_t entry, std::index_sequence< S... >)
 
bool CheckFilters (unsigned int slot, Long64_t entry) final
 
virtual void ClearTask (unsigned int slot) final
 
virtual void ClearValueReaders (unsigned int slot) final
 
std::shared_ptr< RDFGraphDrawing::GraphNodeGetGraph ()
 
void IncrChildrenCount () final
 
void InitSlot (TTreeReader *r, unsigned int slot) final
 
RFilteroperator= (const RFilter &)=delete
 
void PartialReport (ROOT::RDF::RCutFlowReport &rep) const final
 
void Report (ROOT::RDF::RCutFlowReport &rep) const final
 
void StopProcessing () final
 
void TriggerChildrenCount () final
 
- Public Member Functions inherited from ROOT::Detail::RDF::RFilterBase
 RFilterBase (RLoopManager *df, std::string_view name, const unsigned int nSlots, const RDFInternal::RBookedCustomColumns &customColumns)
 
virtual ~RFilterBase ()
 
virtual void FillReport (ROOT::RDF::RCutFlowReport &) const
 
std::string GetName () const
 
bool HasName () const
 
virtual void InitNode ()
 
RFilterBaseoperator= (const RFilterBase &)=delete
 
virtual void ResetReportCount ()
 
- Public Member Functions inherited from ROOT::Detail::RDF::RNodeBase
 RNodeBase (RLoopManager *lm=nullptr)
 
virtual ~RNodeBase ()
 
virtual RLoopManagerGetLoopManagerUnchecked ()
 
virtual void ResetChildrenCount ()
 

Private Types

using ColumnTypes_t = typename CallableTraits< FilterF >::arg_types
 
using TypeInd_t = std::make_index_sequence< ColumnTypes_t::list_size >
 

Private Attributes

const ColumnNames_t fColumnNames
 
FilterF fFilter
 
std::array< bool, ColumnTypes_t::list_size > fIsCustomColumn
 The nth flag signals whether the nth input column is a custom column or not. More...
 
PrevDataFrame & fPrevData
 
const std::shared_ptr< PrevDataFrame > fPrevDataPtr
 
std::vector< RDFInternal::RDFValueTuple_t< ColumnTypes_t > > fValues
 

Additional Inherited Members

- Protected Attributes inherited from ROOT::Detail::RDF::RFilterBase
std::vector< ULong64_tfAccepted = {0}
 
RDFInternal::RBookedCustomColumns fCustomColumns
 
std::vector< Long64_tfLastCheckedEntry
 
std::vector< intfLastResult = {true}
 
const std::string fName
 
const unsigned int fNSlots
 Number of thread slots used by this node, inherited from parent node. More...
 
std::vector< ULong64_tfRejected = {0}
 
- Protected Attributes inherited from ROOT::Detail::RDF::RNodeBase
RLoopManagerfLoopManager
 
unsigned int fNChildren {0}
 Number of nodes of the functional graph hanging from this object. More...
 
unsigned int fNStopsReceived {0}
 Number of times that a children node signaled to stop processing entries. More...
 

#include <ROOT/RDF/RFilter.hxx>

Inheritance diagram for ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >:
[legend]

Member Typedef Documentation

◆ ColumnTypes_t

template<typename FilterF , typename PrevDataFrame >
using ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::ColumnTypes_t = typename CallableTraits<FilterF>::arg_types
private

Definition at line 55 of file RFilter.hxx.

◆ TypeInd_t

template<typename FilterF , typename PrevDataFrame >
using ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::TypeInd_t = std::make_index_sequence<ColumnTypes_t::list_size>
private

Definition at line 56 of file RFilter.hxx.

Constructor & Destructor Documentation

◆ RFilter() [1/2]

template<typename FilterF , typename PrevDataFrame >
ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::RFilter ( FilterF  f,
const ColumnNames_t &  columns,
std::shared_ptr< PrevDataFrame >  pd,
const RDFInternal::RBookedCustomColumns customColumns,
std::string_view  name = "" 
)
inline

Definition at line 67 of file RFilter.hxx.

◆ RFilter() [2/2]

template<typename FilterF , typename PrevDataFrame >
ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::RFilter ( const RFilter< FilterF, PrevDataFrame > &  )
delete

◆ ~RFilter()

template<typename FilterF , typename PrevDataFrame >
ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::~RFilter ( )
inline

Definition at line 82 of file RFilter.hxx.

Member Function Documentation

◆ AddFilterName()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::AddFilterName ( std::vector< std::string > &  filters)
inlinevirtual

Implements ROOT::Detail::RDF::RFilterBase.

Definition at line 152 of file RFilter.hxx.

◆ CheckFilterHelper()

template<typename FilterF , typename PrevDataFrame >
template<std::size_t... S>
bool ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::CheckFilterHelper ( unsigned int  slot,
Long64_t  entry,
std::index_sequence< S... >   
)
inline

Definition at line 102 of file RFilter.hxx.

◆ CheckFilters()

template<typename FilterF , typename PrevDataFrame >
bool ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::CheckFilters ( unsigned int  slot,
Long64_t  entry 
)
inlinefinalvirtual

Implements ROOT::Detail::RDF::RNodeBase.

Definition at line 84 of file RFilter.hxx.

◆ ClearTask()

template<typename FilterF , typename PrevDataFrame >
virtual void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::ClearTask ( unsigned int  slot)
inlinefinalvirtual

Implements ROOT::Detail::RDF::RFilterBase.

Definition at line 159 of file RFilter.hxx.

◆ ClearValueReaders()

template<typename FilterF , typename PrevDataFrame >
virtual void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::ClearValueReaders ( unsigned int  slot)
inlinefinalvirtual

Implements ROOT::Detail::RDF::RFilterBase.

Definition at line 147 of file RFilter.hxx.

◆ GetGraph()

template<typename FilterF , typename PrevDataFrame >
std::shared_ptr<RDFGraphDrawing::GraphNode> ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::GetGraph ( )
inlinevirtual

Implements ROOT::Detail::RDF::RNodeBase.

Definition at line 168 of file RFilter.hxx.

◆ IncrChildrenCount()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::IncrChildrenCount ( )
inlinefinalvirtual

Implements ROOT::Detail::RDF::RNodeBase.

Definition at line 133 of file RFilter.hxx.

◆ InitSlot()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::InitSlot ( TTreeReader r,
unsigned int  slot 
)
inlinefinalvirtual

Implements ROOT::Detail::RDF::RFilterBase.

Definition at line 110 of file RFilter.hxx.

◆ operator=()

template<typename FilterF , typename PrevDataFrame >
RFilter& ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::operator= ( const RFilter< FilterF, PrevDataFrame > &  )
delete

◆ PartialReport()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::PartialReport ( ROOT::RDF::RCutFlowReport rep) const
inlinefinalvirtual

Implements ROOT::Detail::RDF::RNodeBase.

Definition at line 120 of file RFilter.hxx.

◆ Report()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::Report ( ROOT::RDF::RCutFlowReport rep) const
inlinefinalvirtual

Implements ROOT::Detail::RDF::RNodeBase.

Definition at line 118 of file RFilter.hxx.

◆ StopProcessing()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::StopProcessing ( )
inlinefinalvirtual

Implements ROOT::Detail::RDF::RNodeBase.

Definition at line 126 of file RFilter.hxx.

◆ TriggerChildrenCount()

template<typename FilterF , typename PrevDataFrame >
void ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::TriggerChildrenCount ( )
inlinefinalvirtual

Implements ROOT::Detail::RDF::RFilterBase.

Definition at line 141 of file RFilter.hxx.

Member Data Documentation

◆ fColumnNames

template<typename FilterF , typename PrevDataFrame >
const ColumnNames_t ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::fColumnNames
private

Definition at line 59 of file RFilter.hxx.

◆ fFilter

template<typename FilterF , typename PrevDataFrame >
FilterF ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::fFilter
private

Definition at line 58 of file RFilter.hxx.

◆ fIsCustomColumn

template<typename FilterF , typename PrevDataFrame >
std::array<bool, ColumnTypes_t::list_size> ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::fIsCustomColumn
private

The nth flag signals whether the nth input column is a custom column or not.

Definition at line 64 of file RFilter.hxx.

◆ fPrevData

template<typename FilterF , typename PrevDataFrame >
PrevDataFrame& ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::fPrevData
private

Definition at line 61 of file RFilter.hxx.

◆ fPrevDataPtr

template<typename FilterF , typename PrevDataFrame >
const std::shared_ptr<PrevDataFrame> ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::fPrevDataPtr
private

Definition at line 60 of file RFilter.hxx.

◆ fValues

template<typename FilterF , typename PrevDataFrame >
std::vector<RDFInternal::RDFValueTuple_t<ColumnTypes_t> > ROOT::Detail::RDF::RFilter< FilterF, PrevDataFrame >::fValues
private

Definition at line 62 of file RFilter.hxx.


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