xml::xsilHistogram Class Reference

#include <XsilHistogram.hh>

List of all members.

Public Member Functions

 xsilHistogram (int level=1)
 Constructor.
 xsilHistogram (const Histogram1 *h1, int level=1)
 Constructor for 1D histogram.
 xsilHistogram (const Histogram1 &h1, int level=1)
 Constructor for 1D histogram.
 xsilHistogram (const Histogram2 *h2, int level=1)
 Constructor for 2D histogram.
 xsilHistogram (const Histogram2 &h2, int level=1)
 Constructor for 2D histogram.
std::ostream & write (std::ostream &os) const
 Write the histogram data to output stream.

Protected Attributes

int fLevel
 Indent level.
const Histogram1 * fH1
 Reference to Hostogram1 object.
const Histogram2 * fH2
 Reference to Hostogram2 object.


Detailed Description

Converts a DMT Histogram1 or Histogram2 object to an output stream in LIGO_LW format as described in LIGO-T000067.

Example: {verbatim} ofstream out ("myfile.xml"); Histogram1 h1 (...); Histogram2 h2 (...); Fill histogram... out << xsilHeader() << endl; out << xsilHistogram (&h1) << endl; out << xsilHistogram (&h2) << endl; out << xsilTrailer() << endl; {verbatim}

brief Writes HistogramX in LIGO_LW format as described in LIGO-TOOOO67

Author:
Written September 2001 by Daniel Sigg
Version:
0.1

The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:46 2009 for dmt by  doxygen 1.5.4