AnalysisObject.h
Go to the documentation of this file.
134 const std::string& annotation(const std::string& name, const std::string& defaultreturn) const {
AnalysisObject is the base class for histograms and scatters. Definition AnalysisObject.h:21 size_t lengthMeta(const bool skipPath=true, const bool skipTitle=true) const noexcept Length of serialized meta-data vector for MPI reduce operations. Definition AnalysisObject.h:302 virtual void deserializeContent(const std::vector< double > &data)=0 Content deserialisation for MPI reduce operations. AnalysisObject(const std::string &type, const std::string &path, const AnalysisObject &ao, const std::string &title="") Constructor giving a type, a path, another AO to copy annotation from, and an optional title. Definition AnalysisObject.h:43 void setAnnotations(const Annotations &anns) Set all annotations at once. Definition AnalysisObject.h:183 virtual AnalysisObject & operator=(const AnalysisObject &ao) noexcept Default copy assignment operator. Definition AnalysisObject.h:61 virtual std::vector< double > serializeContent(bool fixed_length=false) const noexcept=0 Content serialisation for MPI reduce operations. virtual size_t lengthContent(bool fixed_length=false) const noexcept=0 Length of serialized content vector for MPI reduce operations. std::vector< std::string > serializeMeta(const bool skipPath=true, const bool skipTitle=true) const noexcept Mate-data serialisation for MPI reduce operations. Definition AnalysisObject.h:308 virtual std::string type() const Get name of the analysis object type. Definition AnalysisObject.h:268 void setAnnotation(const std::string &name, const T &value) Add or set an annotation by name (templated for remaining types) Definition AnalysisObject.h:166 virtual void deserializeMeta(const std::vector< std::string > &data, const bool resetPath=false, const bool resetTitle=false) Mate-data deserialisation for MPI reduce operations. Definition AnalysisObject.h:325 const T annotation(const std::string &name, const T &defaultreturn) const Get an annotation by name (copied to another type) with a default in case the annotation is not found... Definition AnalysisObject.h:155 AnalysisObject(const std::string &type, const std::string &path, const std::string &title="") Constructor giving a type, a path and an optional title. Definition AnalysisObject.h:36 void addAnnotation(const std::string &name, const T &value) Add or set an annotation by name. Definition AnalysisObject.h:192 virtual AnalysisObject * mkInert(const std::string &path="", const std::string &source="") const noexcept Return an inert version of the analysis object (e.g. scatter, estimate) Definition AnalysisObject.h:279 std::vector< std::string > annotations() const Definition AnalysisObject.h:107 virtual size_t dim() const noexcept=0 Get the dimension of the analysis object type. void rmAnnotation(const std::string &name) Delete an annotation by name. Definition AnalysisObject.h:198 const T annotation(const std::string &name) const Get an annotation by name (copied to another type) Definition AnalysisObject.h:145 const std::string & annotation(const std::string &name) const Get an annotation by name (as a string) Definition AnalysisObject.h:122 virtual AnalysisObject * newclone() const =0 Make a copy on the heap, via 'new'. bool hasAnnotation(const std::string &name) const Check if an annotation is defined. Definition AnalysisObject.h:116 std::map< std::string, std::string > Annotations Collection type for annotations, as a string-string map. Definition AnalysisObject.h:26 const std::string & annotation(const std::string &name, const std::string &defaultreturn) const Get an annotation by name (as a string) with a default in case the annotation is not found. Definition AnalysisObject.h:134 Error for unfound or broken AnalysisObject annotations. Definition Exceptions.h:79 Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:100 Generated on Mon Oct 28 2024 13:47:23 for YODA - Yet more Objects for Data Analysis by 1.9.8 |