Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw > Class Template Referencefinal

template<typename PrevNodeRaw>
class ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >

implementation of FilterAvailable and FilterMissing operations

The filter evaluates if the entry is missing a value for the input column. Depending on which function was called by the user, the entry with the missing value:

  • will be discarded in case the user called FilterAvailable
  • will be kept in case the user called FilterMissing

Definition at line 58 of file RFilterWithMissingValues.hxx.

Public Member Functions

 RFilterWithMissingValues (bool discardEntry, std::shared_ptr< PrevNode_t > pd, const RDFInternal::RColumnRegister &colRegister, const ColumnNames_t &columns, std::string_view filterName="", const std::string &variationName="nominal")
 
 RFilterWithMissingValues (const RFilterWithMissingValues &)=delete
 
 RFilterWithMissingValues (RFilterWithMissingValues &&)=delete
 
 ~RFilterWithMissingValues () final
 
void AddFilterName (std::vector< std::string > &filters) final
 
bool CheckFilters (unsigned int slot, Long64_t entry) final
 
void FinalizeSlot (unsigned int slot) final
 Clean-up operations to be performed at the end of a task.
 
std::shared_ptr< RDFGraphDrawing::GraphNodeGetGraph (std::unordered_map< void *, std::shared_ptr< RDFGraphDrawing::GraphNode > > &visitedMap) final
 
ROOT::Detail::RDF::RColumnReaderBaseGetOrCreateColumnReader (TTreeReader *r, unsigned int slot)
 
std::shared_ptr< RNodeBaseGetVariedFilter (const std::string &variationName) final
 Return a clone of this Filter that works with values in the variationName "universe".
 
void IncrChildrenCount () final
 
void InitSlot (TTreeReader *r, unsigned int slot) final
 
RFilterWithMissingValuesoperator= (const RFilterWithMissingValues &)=delete
 
RFilterWithMissingValuesoperator= (RFilterWithMissingValues &&)=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::RColumnRegister &colRegister, const ColumnNames_t &columns, const std::vector< std::string > &prevVariations, const std::string &variation="nominal")
 
 ~RFilterBase () override
 
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 (const std::vector< std::string > &variations={}, RLoopManager *lm=nullptr)
 
virtual ~RNodeBase ()
 
virtual RLoopManagerGetLoopManagerUnchecked ()
 
const std::vector< std::string > & GetVariations () const
 
virtual void ResetChildrenCount ()
 

Private Types

using PrevNode_t = std::conditional_t< std::is_same< PrevNodeRaw, RJittedFilter >::value, RFilterBase, PrevNodeRaw >
 

Private Attributes

bool fDiscardEntryWithMissingValue
 
const std::shared_ptr< PrevNode_tfPrevNodePtr
 
std::vector< RColumnReaderBase * > fValues
 

Additional Inherited Members

- Protected Attributes inherited from ROOT::Detail::RDF::RFilterBase
std::vector< ULong64_tfAccepted = {0}
 
RDFInternal::RColumnRegister fColRegister
 
const ROOT::RDF::ColumnNames_t fColumnNames
 
ROOT::RVecB fIsDefine
 The nth flag signals whether the nth input column is a custom column or not.
 
std::vector< Long64_tfLastCheckedEntry
 
std::vector< intfLastResult = {true}
 
const std::string fName
 
std::vector< ULong64_tfRejected = {0}
 
std::string fVariation
 This indicates for what variation this filter evaluates values.
 
std::unordered_map< std::string, std::shared_ptr< RFilterBase > > fVariedFilters
 
- Protected Attributes inherited from ROOT::Detail::RDF::RNodeBase
RLoopManagerfLoopManager
 
unsigned int fNChildren {0}
 Number of nodes of the functional graph hanging from this object.
 
unsigned int fNStopsReceived {0}
 Number of times that a children node signaled to stop processing entries.
 
std::vector< std::string > fVariations
 List of systematic variations that affect this node.
 

#include <ROOT/RDF/RFilterWithMissingValues.hxx>

Inheritance diagram for ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >:
[legend]

Member Typedef Documentation

◆ PrevNode_t

template<typename PrevNodeRaw >
using ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::PrevNode_t = std::conditional_t<std::is_same<PrevNodeRaw, RJittedFilter>::value, RFilterBase, PrevNodeRaw>
private

Definition at line 63 of file RFilterWithMissingValues.hxx.

Constructor & Destructor Documentation

◆ RFilterWithMissingValues() [1/3]

template<typename PrevNodeRaw >
ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::RFilterWithMissingValues ( bool  discardEntry,
std::shared_ptr< PrevNode_t pd,
const RDFInternal::RColumnRegister colRegister,
const ColumnNames_t &  columns,
std::string_view  filterName = "",
const std::string &  variationName = "nominal" 
)
inline

Definition at line 73 of file RFilterWithMissingValues.hxx.

◆ RFilterWithMissingValues() [2/3]

template<typename PrevNodeRaw >
ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::RFilterWithMissingValues ( const RFilterWithMissingValues< PrevNodeRaw > &  )
delete

◆ RFilterWithMissingValues() [3/3]

template<typename PrevNodeRaw >
ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::RFilterWithMissingValues ( RFilterWithMissingValues< PrevNodeRaw > &&  )
delete

◆ ~RFilterWithMissingValues()

template<typename PrevNodeRaw >
ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::~RFilterWithMissingValues ( )
inlinefinal

Definition at line 91 of file RFilterWithMissingValues.hxx.

Member Function Documentation

◆ AddFilterName()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::AddFilterName ( std::vector< std::string > &  filters)
inlinefinalvirtual

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

Definition at line 181 of file RFilterWithMissingValues.hxx.

◆ CheckFilters()

template<typename PrevNodeRaw >
bool ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::CheckFilters ( unsigned int  slot,
Long64_t  entry 
)
inlinefinalvirtual

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

Definition at line 99 of file RFilterWithMissingValues.hxx.

◆ FinalizeSlot()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::FinalizeSlot ( unsigned int  slot)
inlinefinalvirtual

Clean-up operations to be performed at the end of a task.

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

Definition at line 189 of file RFilterWithMissingValues.hxx.

◆ GetGraph()

template<typename PrevNodeRaw >
std::shared_ptr< RDFGraphDrawing::GraphNode > ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::GetGraph ( std::unordered_map< void *, std::shared_ptr< RDFGraphDrawing::GraphNode > > &  visitedMap)
inlinefinalvirtual

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

Definition at line 192 of file RFilterWithMissingValues.hxx.

◆ GetOrCreateColumnReader()

template<typename PrevNodeRaw >
ROOT::Detail::RDF::RColumnReaderBase * ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::GetOrCreateColumnReader ( TTreeReader r,
unsigned int  slot 
)
inline

Definition at line 125 of file RFilterWithMissingValues.hxx.

◆ GetVariedFilter()

template<typename PrevNodeRaw >
std::shared_ptr< RNodeBase > ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::GetVariedFilter ( const std::string &  variationName)
inlinefinalvirtual

Return a clone of this Filter that works with values in the variationName "universe".

Reimplemented from ROOT::Detail::RDF::RNodeBase.

Definition at line 217 of file RFilterWithMissingValues.hxx.

◆ IncrChildrenCount()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::IncrChildrenCount ( )
inlinefinalvirtual

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

Definition at line 167 of file RFilterWithMissingValues.hxx.

◆ InitSlot()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::InitSlot ( TTreeReader r,
unsigned int  slot 
)
inlinefinalvirtual

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

Definition at line 145 of file RFilterWithMissingValues.hxx.

◆ operator=() [1/2]

template<typename PrevNodeRaw >
RFilterWithMissingValues & ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::operator= ( const RFilterWithMissingValues< PrevNodeRaw > &  )
delete

◆ operator=() [2/2]

template<typename PrevNodeRaw >
RFilterWithMissingValues & ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::operator= ( RFilterWithMissingValues< PrevNodeRaw > &&  )
delete

◆ PartialReport()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::PartialReport ( ROOT::RDF::RCutFlowReport rep) const
inlinefinalvirtual

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

Definition at line 154 of file RFilterWithMissingValues.hxx.

◆ Report()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::Report ( ROOT::RDF::RCutFlowReport rep) const
inlinefinalvirtual

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

Definition at line 152 of file RFilterWithMissingValues.hxx.

◆ StopProcessing()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::StopProcessing ( )
inlinefinalvirtual

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

Definition at line 160 of file RFilterWithMissingValues.hxx.

◆ TriggerChildrenCount()

template<typename PrevNodeRaw >
void ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::TriggerChildrenCount ( )
inlinefinalvirtual

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

Definition at line 175 of file RFilterWithMissingValues.hxx.

Member Data Documentation

◆ fDiscardEntryWithMissingValue

template<typename PrevNodeRaw >
bool ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::fDiscardEntryWithMissingValue
private

Definition at line 70 of file RFilterWithMissingValues.hxx.

◆ fPrevNodePtr

template<typename PrevNodeRaw >
const std::shared_ptr<PrevNode_t> ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::fPrevNodePtr
private

Definition at line 64 of file RFilterWithMissingValues.hxx.

◆ fValues

template<typename PrevNodeRaw >
std::vector<RColumnReaderBase *> ROOT::Detail::RDF::RFilterWithMissingValues< PrevNodeRaw >::fValues
private

Definition at line 67 of file RFilterWithMissingValues.hxx.

  • tree/dataframe/inc/ROOT/RDF/RFilterWithMissingValues.hxx