AnalysisObject.h
Go to the documentation of this file.
103 virtual void _extractLabels(std::vector<std::string>&, std::vector<size_t>&) const noexcept { };
150 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:26 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:318 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:48 void setAnnotations(const Annotations &anns) Set all annotations at once. Definition AnalysisObject.h:199 virtual AnalysisObject & operator=(const AnalysisObject &ao) noexcept Default copy assignment operator. Definition AnalysisObject.h:66 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 Meta-data serialisation for MPI reduce operations. Definition AnalysisObject.h:324 virtual std::string type() const Get name of the analysis object type. Definition AnalysisObject.h:284 void setAnnotation(const std::string &name, const T &value) Add or set an annotation by name (templated for remaining types) Definition AnalysisObject.h:182 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:341 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:171 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:41 void addAnnotation(const std::string &name, const T &value) Add or set an annotation by name. Definition AnalysisObject.h:208 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:295 std::vector< std::string > annotations() const Definition AnalysisObject.h:123 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:214 const T annotation(const std::string &name) const Get an annotation by name (copied to another type) Definition AnalysisObject.h:161 const std::string & annotation(const std::string &name) const Get an annotation by name (as a string) Definition AnalysisObject.h:138 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:132 std::map< std::string, std::string > Annotations Collection type for annotations, as a string-string map. Definition AnalysisObject.h:31 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:150 Errors relating to insufficient (effective) statistics. Definition Exceptions.h:65 Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:86 Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |