yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.9.4
WriterAIDA.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // This file is part of YODA -- Yet more Objects for Data Analysis
4 // Copyright (C) 2008-2021 The YODA collaboration (see AUTHORS for details)
5 //
6 #ifndef YODA_WRITERAIDA_H
7 #define YODA_WRITERAIDA_H
8 
9 #include "YODA/AnalysisObject.h"
10 #include "YODA/Writer.h"
11 
12 namespace YODA {
13 
14 
16  class WriterAIDA : public Writer {
17  public:
18 
20  static Writer& create();
21 
22  // Include definitions of all write methods (all fulfilled by Writer::write(...))
23  #include "YODA/WriterMethods.icc"
24 
25 
26  protected:
27 
28  void writeHead(std::ostream& stream);
29  void writeFoot(std::ostream& stream);
30 
31  void writeCounter(std::ostream& stream, const Counter& c);
32  void writeHisto1D(std::ostream& stream, const Histo1D& h);
33  void writeHisto2D(std::ostream& stream, const Histo2D& h);
34  void writeProfile1D(std::ostream& stream, const Profile1D& p);
35  void writeProfile2D(std::ostream& stream, const Profile2D& p);
36  void writeScatter1D(std::ostream& stream, const Scatter1D& s);
37  void writeScatter2D(std::ostream& stream, const Scatter2D& s);
38  void writeScatter3D(std::ostream& stream, const Scatter3D& s);
39 
40 
41  private:
42 
44  WriterAIDA() { }
45 
46  };
47 
48 
49 }
50 
51 #endif
void writeProfile2D(std::ostream &stream, const Profile2D &p)
Definition: WriterAIDA.cc:64
void writeHisto2D(std::ostream &stream, const Histo2D &h)
Definition: WriterAIDA.cc:49
A very generic data type which is just a collection of 2D data points with errors.
Definition: Scatter2D.h:25
A weighted counter.
Definition: Counter.h:24
A one-dimensional histogram.
Definition: Histo1D.h:28
void writeProfile1D(std::ostream &stream, const Profile1D &p)
Definition: WriterAIDA.cc:57
void writeScatter3D(std::ostream &stream, const Scatter3D &s)
Definition: WriterAIDA.cc:123
void writeScatter1D(std::ostream &stream, const Scatter1D &s)
Definition: WriterAIDA.cc:72
A two-dimensional profile histogram.
Definition: Profile2D.h:32
void writeHisto1D(std::ostream &stream, const Histo1D &h)
Definition: WriterAIDA.cc:42
void writeHead(std::ostream &stream)
Write any opening boilerplate required by the format to stream.
Definition: WriterAIDA.cc:24
void writeCounter(std::ostream &stream, const Counter &c)
Definition: WriterAIDA.cc:37
void writeFoot(std::ostream &stream)
Write any closing boilerplate required by the format to stream.
Definition: WriterAIDA.cc:32
Pure virtual base class for various output writers.
Definition: Writer.h:28
A very generic data type which is just a collection of 3D data points with errors.
Definition: Scatter3D.h:25
Persistency writer for AIDA XML format.
Definition: WriterAIDA.h:16
static Writer & create()
Singleton creation function.
Definition: WriterAIDA.cc:17
A two-dimensional histogram.
Definition: Histo2D.h:32
A one-dimensional profile histogram.
Definition: Profile1D.h:35
void writeScatter2D(std::ostream &stream, const Scatter2D &s)
Definition: WriterAIDA.cc:77