Writer.h
Go to the documentation of this file.
86 void write(std::ostream& stream, const std::vector<const AnalysisObject*>& aos, int precision = -1);
AnalysisObject is the base class for histograms and scatters. Definition AnalysisObject.h:26 virtual void writeHead(std::ostream &) Write any opening boilerplate required by the format to stream. Definition Writer.h:199 void write(std::ostream &stream, const AnalysisObject &ao) Write out object ao to output stream stream. Definition Writer.h:45 virtual void writeFoot(std::ostream &stream) Write any closing boilerplate required by the format to stream. Definition Writer.h:214 std::enable_if_t< DerefableToAO< T >::value > write(const std::string &filename, const T &ao) Write out pointer-like object ao to file filename. Definition Writer.h:60 std::enable_if_t< CIterable< RANGE >::value > write(std::ostream &stream, const RANGE &aos) Definition Writer.h:95 virtual void writeAO(std::ostream &stream, const AnalysisObject &ao)=0 virtual void writeBody(std::ostream &stream, const AnalysisObject *ao) Write the body elements corresponding to AnalysisObject ao to stream. Definition Writer.cc:109 void write(std::ostream &stream, const AOITER &begin, const AOITER &end, int precision=-1) Definition Writer.h:117 void write(const std::string &filename, const AOITER &begin, const AOITER &end) Definition Writer.h:130 std::enable_if_t< CIterable< RANGE >::value > write(const std::string &filename, const RANGE &aos) Write out a collection of objects objs to file filename. Definition Writer.h:102 void write(const std::string &filename, const AnalysisObject &ao) Write out object ao to file filename. Definition Writer.cc:56 virtual void writeAOS(YODA_H5::File &file, const vector< const AnalysisObject * > &aos)=0 std::enable_if_t< DerefableToAO< T >::value > writeBody(std::ostream &stream, const T &ao) Write the body elements corresponding to AnalysisObject ao to stream. Definition Writer.h:211 void setAOPrecision(const bool needsDP=false) Set precision of numerical quantities for current AO in this writer's output. Definition Writer.h:181 void setPrecision(int precision) Set precision of numerical quantities in this writer's output. Definition Writer.h:176 std::enable_if_t< DerefableToAO< T >::value > write(std::ostream &stream, const T &ao) Write out pointer-like object ao to output stream stream. Definition Writer.h:53 Writer & mkWriter(const std::string &format_name) Factory function to make a writer object by format name or a filename. Definition Writer.cc:29 Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |