YODA::Estimate0D Class Reference An estimate in 0D. More...
Inheritance diagram for YODA::Estimate0D:
![]()
Detailed DescriptionAn estimate in 0D. This class linkes the Estimate class with AnalysisObject, so it can be used as a type reduction for the Counter type. Definition at line 27 of file Estimate0D.h. Member Typedef Documentation◆ BaseT
Definition at line 32 of file Estimate0D.h. ◆ Ptr
Definition at line 31 of file Estimate0D.h. Constructor & Destructor Documentation◆ Estimate0D() [1/7]
Nullary constructor for unique pointers etc.
Definition at line 45 of file Estimate0D.h. ◆ Estimate0D() [2/7]
Constructor to set an Estimate0D with a pre-filled state. Principally designed for internal persistency use. Definition at line 52 of file Estimate0D.h. ◆ Estimate0D() [3/7]
Alternative constructor to set an Estimate0D with value and uncertainty. Definition at line 59 of file Estimate0D.h. ◆ Estimate0D() [4/7]
Copy constructor (needed for clone functions).
Definition at line 66 of file Estimate0D.h. 66 : Estimate(other),
67 AnalysisObject(other.type(), other.path(), other, other.title()) { }
◆ Estimate0D() [5/7]
Move constructor. Definition at line 70 of file Estimate0D.h. 70 : BaseT(std::move(other)),
71 AnalysisObject(other.type(), other.path(), other, other.title()) { }
◆ Estimate0D() [6/7]
◆ Estimate0D() [7/7]
Member Function Documentation◆ add() [1/2]
Add two Estimate0Ds. Definition at line 118 of file Estimate0D.h. 118 {
120 BaseT::add(toAdd, pat_uncorr);
121 return *this;
122 }
void rmAnnotation(const std::string &name) Delete an annotation by name. Definition AnalysisObject.h:214 bool hasAnnotation(const std::string &name) const Check if an annotation is defined. Definition AnalysisObject.h:132 Estimate & add(const Estimate &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimates. Definition Estimate.h:95 References YODA::Estimate::add(), YODA::AnalysisObject::hasAnnotation(), and YODA::AnalysisObject::rmAnnotation(). Referenced by operator+=(), and operator+=(). ◆ add() [2/2]
Add two (rvalue) Estimate0Ds. Definition at line 129 of file Estimate0D.h. References YODA::Estimate::add(), YODA::AnalysisObject::hasAnnotation(), and YODA::AnalysisObject::rmAnnotation(). ◆ clone()
Make a copy on the stack. Definition at line 82 of file Estimate0D.h. 82 {
84 }
Estimate0D(const std::string &path="", const std::string &title="") Nullary constructor for unique pointers etc. Definition Estimate0D.h:45 ◆ deserializeContent()
Content deserialisation for MPI reduce operations. Implements YODA::AnalysisObject. Definition at line 283 of file Estimate0D.h. 283 {
284 BaseT::_deserializeContent(data, data.size() == 4);
285 }
◆ dim()
Total dimension of this data object. Implements YODA::AnalysisObject. Definition at line 166 of file Estimate0D.h. 166{ return 1; }
◆ lengthContent()
Length of serialized content vector for MPI reduce operations. Implements YODA::AnalysisObject. Definition at line 275 of file Estimate0D.h. 275 {
276 return BaseT::_lengthContent(fixed_length);
277 }
◆ mkInert()
Method returns clone of the estimate with streamlined error source. Reimplemented from YODA::AnalysisObject. Definition at line 308 of file Estimate0D.h. 309 {
311 rtn->setPath(path);
312 if (rtn->numErrs() == 1) {
313 try {
314 rtn->renameSource("", source);
315 }
317 }
318 return rtn;
319 }
Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:86 References newclone(), YODA::Estimate::numErrs(), YODA::AnalysisObject::path(), YODA::Estimate::renameSource(), and YODA::AnalysisObject::setPath(). ◆ mkScatter()
Definition at line 292 of file Estimate0D.h. 293 {
294 Scatter1D rtn;
297 }
299
300 // Add the PointND
303
304 return rtn;
305 }
std::vector< std::string > annotations() const Definition AnalysisObject.h:123 const std::string & annotation(const std::string &name) const Get an annotation by name (as a string) Definition AnalysisObject.h:138 double totalErrPos(const std::string &pat_match="") const noexcept The positive total uncertainty. Definition Estimate.h:423 References YODA::ScatterND< N >::addPoint(), YODA::AnalysisObject::annotation(), YODA::AnalysisObject::annotations(), YODA::AnalysisObject::path(), YODA::AnalysisObject::setAnnotation(), YODA::Estimate::totalErrPos(), and YODA::Estimate::val(). ◆ newclone()
Make a copy on the heap. Implements YODA::AnalysisObject. Definition at line 87 of file Estimate0D.h. Referenced by YODA::Counter::mkInert(), and mkInert(). ◆ operator+=() [1/2]
Definition at line 124 of file Estimate0D.h. 124 {
126 }
Estimate0D & add(const Estimate0D &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimate0Ds. Definition Estimate0D.h:118 References add(). ◆ operator+=() [2/2]
Definition at line 135 of file Estimate0D.h. References add(). ◆ operator-=() [1/2]
Definition at line 146 of file Estimate0D.h. 146 {
148 }
Estimate0D & subtract(const Estimate0D &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract two Estimate0Ds. Definition Estimate0D.h:140 References subtract(). ◆ operator-=() [2/2]
Definition at line 156 of file Estimate0D.h. References subtract(). ◆ operator=() [1/2]
Copy assignment Sets all the parameters using the ones provided from an existing Estimate0D. Definition at line 100 of file Estimate0D.h. 100 {
101 if (this != &toCopy) {
102 AnalysisObject::operator = (toCopy);
103 BaseT::operator = (toCopy);
104 }
105 return *this;
106 }
virtual AnalysisObject & operator=(const AnalysisObject &ao) noexcept Default copy assignment operator. Definition AnalysisObject.h:66 Estimate & operator=(const Estimate &toCopy) noexcept Definition Estimate.h:69 References YODA::AnalysisObject::operator=(), and YODA::Estimate::operator=(). ◆ operator=() [2/2]
Move assignment. Definition at line 109 of file Estimate0D.h. 109 {
110 if (this != &toMove) {
111 AnalysisObject::operator = (toMove);
112 BaseT::operator = (std::move(toMove));
113 }
114 return *this;
115 }
References YODA::AnalysisObject::operator=(), and YODA::Estimate::operator=(). ◆ reset()
Reset the internal values. Implements YODA::AnalysisObject. Definition at line 174 of file Estimate0D.h. References YODA::Estimate::reset(). ◆ serializeContent()
Content serialisation for MPI reduce operations. Implements YODA::AnalysisObject. Definition at line 279 of file Estimate0D.h. 279 {
280 return BaseT::_serializeContent(fixed_length);
281 }
◆ subtract() [1/2]
Subtract two Estimate0Ds. Definition at line 140 of file Estimate0D.h. 140 {
142 BaseT::subtract(toSubtract, pat_uncorr);
143 return *this;
144 }
Estimate & subtract(const Estimate &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract one Estimate from another. Definition Estimate.h:125 References YODA::AnalysisObject::hasAnnotation(), YODA::AnalysisObject::rmAnnotation(), and YODA::Estimate::subtract(). Referenced by operator-=(), and operator-=(). ◆ subtract() [2/2]
Subtract two (rvalue) Estimate0Ds. Definition at line 151 of file Estimate0D.h. References YODA::AnalysisObject::hasAnnotation(), YODA::AnalysisObject::rmAnnotation(), and YODA::Estimate::subtract(). The documentation for this class was generated from the following file:
Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |