Specialization of RMergeableValue for the Mean action.
This subclass is responsible for merging results coming from Mean actions. Other than the result itself, the number of entries that were used to compute that mean is also stored in the object.
Definition at line 358 of file RMergeableValue.hxx.
Public Member Functions | |
| RMergeableMean ()=default | |
| Default constructor. | |
| RMergeableMean (const RMergeableMean &)=delete | |
| RMergeableMean (Double_t value, ULong64_t counts) | |
| Constructor that initializes data members. | |
| RMergeableMean (RMergeableMean &&)=delete | |
| const Double_t & | GetValue () const |
| Retrieve the result wrapped by this mergeable. | |
| RMergeableMean & | operator= (const RMergeableMean &)=delete |
| RMergeableMean & | operator= (RMergeableMean &&)=delete |
Protected Attributes | |
| Double_t | fValue |
Private Member Functions | |
| void | Merge (const RMergeableValue< Double_t > &other) final |
| Aggregate the information contained in another RMergeableValue into this. | |
Private Attributes | |
| ULong64_t | fCounts |
| The number of entries used to compute the mean. | |
#include <ROOT/RDF/RMergeableValue.hxx>
Constructor that initializes data members.
| [in] | value | The action result. |
| [in] | counts | The number of entries used to compute that result. |
Definition at line 400 of file RMergeableValue.hxx.
|
default |
Default constructor.
Needed to allow serialization of ROOT objects. See [TBufferFile::WriteObjectClass] (classTBufferFile.html::a209078a4cb58373b627390790bf0c9c1)
|
delete |
|
delete |
|
inlineinherited |
Retrieve the result wrapped by this mergeable.
Definition at line 185 of file RMergeableValue.hxx.
|
inlinefinalprivatevirtual |
Aggregate the information contained in another RMergeableValue into this.
| [in] | other | Another RMergeableValue object. |
| std::invalid_argument | If the cast of the other object to the same type as this one fails. |
The other RMergeableValue object is cast to the same type as this object. This is needed to make sure that only results of the same type of action are merged together. The function then computes the weighted mean of the two means held by the mergeables.
Implements ROOT::Detail::RDF::RMergeableValue< Double_t >.
Definition at line 376 of file RMergeableValue.hxx.
|
delete |
|
delete |
|
private |
The number of entries used to compute the mean.
Definition at line 359 of file RMergeableValue.hxx.
|
protectedinherited |
Definition at line 164 of file RMergeableValue.hxx.