yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
WriterYODA1.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-2024 The YODA collaboration (see AUTHORS for details)
5//
6#ifndef YODA_WRITERYODA1_H
7#define YODA_WRITERYODA1_H
8
10#include "YODA/Counter.h"
11#include "YODA/Histo.h"
12#include "YODA/Profile.h"
13#include "YODA/Scatter.h"
14#include "YODA/Writer.h"
15
16namespace YODA {
17
18
20 class [[deprecated]] WriterYODA1 : public Writer {
21 public:
22
24 static Writer& create();
25
26 // Include definitions of all write methods (all fulfilled by Writer::write(...))
27 #include "YODA/WriterMethods.icc"
28
29
30 protected:
31
32 void writeAO(std::ostream& stream, const AnalysisObject& c);
33 void writeCounter(std::ostream& stream, const Counter& c);
34 void writeHisto1D(std::ostream& stream, const Histo1D& h);
35 void writeHisto2D(std::ostream& stream, const Histo2D& h);
36 void writeProfile1D(std::ostream& stream, const Profile1D& p);
37 void writeProfile2D(std::ostream& stream, const Profile2D& p);
38 void writeScatter1D(std::ostream& stream, const Scatter1D& s);
39 void writeScatter2D(std::ostream& stream, const Scatter2D& s);
40 void writeScatter3D(std::ostream& stream, const Scatter3D& s);
41
42
43 private:
44
45 void _writeAnnotations(std::ostream& os, const AnalysisObject& ao);
46
48 WriterYODA1() { }
49
50 };
51
52
53}
54
55#endif
AnalysisObject is the base class for histograms and scatters.
User-facing BinnedDbn class in arbitrary dimension.
Definition BinnedDbn.h:50
A weighted counter.
Definition Counter.h:26
A generic data type which is just a collection of n-dim data points with errors.
Definition Scatter.h:154
Persistency writer for YODA flat text format.
Definition WriterYODA1.h:20
Pure virtual base class for various output writers.
Definition Writer.h:19
Anonymous namespace to limit visibility.