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 23 of file Estimate0D.h. Member Typedef Documentation◆ BaseT
Definition at line 28 of file Estimate0D.h. ◆ Ptr
Definition at line 27 of file Estimate0D.h. Constructor & Destructor Documentation◆ Estimate0D() [1/7]
Nullary constructor for unique pointers etc.
Definition at line 41 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 48 of file Estimate0D.h. ◆ Estimate0D() [3/7]
Alternative constructor to set an Estimate0D with value and uncertainty. Definition at line 55 of file Estimate0D.h. ◆ Estimate0D() [4/7]
Copy constructor (needed for clone functions).
Definition at line 62 of file Estimate0D.h. 62 : Estimate(other),
63 AnalysisObject(other.type(), other.path(), other, other.title()) { }
◆ Estimate0D() [5/7]
Move constructor. Definition at line 66 of file Estimate0D.h. 66 : BaseT(std::move(other)),
67 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 114 of file Estimate0D.h. 114 {
116 BaseT::add(toAdd, pat_uncorr);
117 return *this;
118 }
void rmAnnotation(const std::string &name) Delete an annotation by name. Definition AnalysisObject.h:198 bool hasAnnotation(const std::string &name) const Check if an annotation is defined. Definition AnalysisObject.h:116 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 125 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 78 of file Estimate0D.h. 78 {
80 }
Estimate0D(const std::string &path="", const std::string &title="") Nullary constructor for unique pointers etc. Definition Estimate0D.h:41 ◆ deserializeContent()
Content deserialisation for MPI reduce operations. Implements YODA::AnalysisObject. Definition at line 241 of file Estimate0D.h. 241 {
242 BaseT::_deserializeContent(data, data.size() == 4);
243 }
◆ dim()
Total dimension of this data object. Implements YODA::AnalysisObject. Definition at line 162 of file Estimate0D.h. 162{ return 1; }
◆ lengthContent()
Length of serialized content vector for MPI reduce operations. Implements YODA::AnalysisObject. Definition at line 233 of file Estimate0D.h. 233 {
234 return BaseT::_lengthContent(fixed_length);
235 }
◆ mkInert()
Method returns clone of the estimate with streamlined error source. Reimplemented from YODA::AnalysisObject. Definition at line 266 of file Estimate0D.h. 267 {
269 rtn->setPath(path);
270 if (rtn->numErrs() == 1) {
271 try {
272 rtn->renameSource("", source);
273 }
275 }
276 return rtn;
277 }
Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:100 References newclone(), YODA::Estimate::numErrs(), YODA::AnalysisObject::path(), YODA::Estimate::renameSource(), and YODA::AnalysisObject::setPath(). ◆ mkScatter()
Definition at line 250 of file Estimate0D.h. 251 {
252 Scatter1D rtn;
255 }
257
258 // Add the PointND
261
262 return rtn;
263 }
std::vector< std::string > annotations() const Definition AnalysisObject.h:107 const std::string & annotation(const std::string &name) const Get an annotation by name (as a string) Definition AnalysisObject.h:122 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 83 of file Estimate0D.h. Referenced by YODA::Counter::mkInert(), and mkInert(). ◆ operator+=() [1/2]
Definition at line 120 of file Estimate0D.h. 120 {
122 }
Estimate0D & add(const Estimate0D &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimate0Ds. Definition Estimate0D.h:114 References add(). ◆ operator+=() [2/2]
Definition at line 131 of file Estimate0D.h. References add(). ◆ operator-=() [1/2]
Definition at line 142 of file Estimate0D.h. 142 {
144 }
Estimate0D & subtract(const Estimate0D &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract two Estimate0Ds. Definition Estimate0D.h:136 References subtract(). ◆ operator-=() [2/2]
Definition at line 152 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 96 of file Estimate0D.h. 96 {
97 if (this != &toCopy) {
98 AnalysisObject::operator = (toCopy);
99 BaseT::operator = (toCopy);
100 }
101 return *this;
102 }
virtual AnalysisObject & operator=(const AnalysisObject &ao) noexcept Default copy assignment operator. Definition AnalysisObject.h:61 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 105 of file Estimate0D.h. 105 {
106 if (this != &toMove) {
107 AnalysisObject::operator = (toMove);
108 BaseT::operator = (std::move(toMove));
109 }
110 return *this;
111 }
References YODA::AnalysisObject::operator=(), and YODA::Estimate::operator=(). ◆ reset()
Reset the internal values. Implements YODA::AnalysisObject. Definition at line 170 of file Estimate0D.h. References YODA::Estimate::reset(). ◆ serializeContent()
Content serialisation for MPI reduce operations. Implements YODA::AnalysisObject. Definition at line 237 of file Estimate0D.h. 237 {
238 return BaseT::_serializeContent(fixed_length);
239 }
◆ subtract() [1/2]
Subtract two Estimate0Ds. Definition at line 136 of file Estimate0D.h. 136 {
138 BaseT::subtract(toSubtract, pat_uncorr);
139 return *this;
140 }
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 147 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 Mon Oct 28 2024 13:47:24 for YODA - Yet more Objects for Data Analysis by 1.9.8 |