Definition at line 27 of file RResultHandle.hxx.
|
void | CheckType (const std::type_info &type) |
| Compare given type to the type of the wrapped result and throw if the types don't match.
|
|
void * | Get () |
| Get the pointer to the encapsulated result.
|
|
void | ThrowIfNull () |
|
#include <ROOT/RResultHandle.hxx>
◆ RResultHandle() [1/4]
template<class T >
ROOT::RDF::RResultHandle::RResultHandle |
( |
const RResultPtr< T > & |
resultPtr | ) |
|
|
inline |
◆ RResultHandle() [2/4]
ROOT::RDF::RResultHandle::RResultHandle |
( |
const RResultHandle & |
| ) |
|
|
default |
◆ RResultHandle() [3/4]
◆ RResultHandle() [4/4]
ROOT::RDF::RResultHandle::RResultHandle |
( |
| ) |
|
|
default |
◆ CheckType()
void ROOT::RDF::RResultHandle::CheckType |
( |
const std::type_info & |
type | ) |
|
|
inlineprivate |
Compare given type to the type of the wrapped result and throw if the types don't match.
Definition at line 49 of file RResultHandle.hxx.
◆ Get()
void * ROOT::RDF::RResultHandle::Get |
( |
| ) |
|
|
inlineprivate |
Get the pointer to the encapsulated result.
Ownership is not transferred to the caller. Triggers event loop and execution of all actions booked in the associated RLoopManager.
Definition at line 41 of file RResultHandle.hxx.
◆ GetPtr()
template<class T >
T * ROOT::RDF::RResultHandle::GetPtr |
( |
| ) |
|
|
inline |
Get the pointer to the encapsulated object.
Triggers event loop and execution of all actions booked in the associated RLoopManager.
- Template Parameters
-
T | Type of the action result |
Definition at line 78 of file RResultHandle.hxx.
◆ GetResultPtr()
template<class T >
RResultPtr< T > ROOT::RDF::RResultHandle::GetResultPtr |
( |
| ) |
|
|
inline |
◆ GetValue()
template<class T >
const T & ROOT::RDF::RResultHandle::GetValue |
( |
| ) |
|
|
inline |
Get a const reference to the encapsulated object.
Triggers event loop and execution of all actions booked in the associated RLoopManager.
- Template Parameters
-
T | Type of the action result |
Definition at line 89 of file RResultHandle.hxx.
◆ IsReady()
bool ROOT::RDF::RResultHandle::IsReady |
( |
| ) |
const |
|
inline |
Check whether the result has already been computed.
std::vector<RResultHandle> results;
results.emplace_back(df.Mean<double>("var"));
res.IsReady();
std::cout << res.GetValue<double>() << std::endl;
res.IsReady();
Definition at line 114 of file RResultHandle.hxx.
◆ operator!=()
◆ operator==()
◆ ThrowIfNull()
void ROOT::RDF::RResultHandle::ThrowIfNull |
( |
| ) |
|
|
inlineprivate |
◆ RunGraphs
Trigger the event loop of multiple RDataFrames concurrently.
- Parameters
-
[in] | handles | A vector of RResultHandles |
This function triggers the event loop of all computation graphs which relate to the given RResultHandles. The advantage compared to running the event loop implicitly by accessing the RResultPtr is that the event loops will run concurrently. Therefore, the overall computation of all results is generally more efficient. It should be noted that user-defined operations (e.g., Filters and Defines) of the different RDataFrame graphs are assumed to be safe to call concurrently.
auto r1 = df1.Histo1D("var1");
auto r2 = df2.Sum("var2");
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTree,...
void RunGraphs(std::vector< RResultHandle > handles)
Trigger the event loop of multiple RDataFrames concurrently.
◆ fActionPtr
Owning pointer to the action that will produce this result.
Ownership is shared with RResultPtrs and RResultHandles that refer to the same result.
Definition at line 31 of file RResultHandle.hxx.
◆ fLoopManager
◆ fObjPtr
std::shared_ptr<void> ROOT::RDF::RResultHandle::fObjPtr |
|
private |
Type erased shared pointer encapsulating the wrapped result.
Definition at line 32 of file RResultHandle.hxx.
◆ fType
const std::type_info* ROOT::RDF::RResultHandle::fType = nullptr |
|
private |
The documentation for this class was generated from the following file: