Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

HistWriter Class Reference

#include <HistWriter.hh>

Inheritance diagram for HistWriter:

RootWriter List of all members.

Detailed Description

Abstract interface of a class to write histograms to disk.

See also:
RootWriter.

Definition at line 9 of file HistWriter.hh.

Public Member Functions

virtual ~HistWriter ()
virtual bool enterDir (const std::string &name, Bool_t create=kFALSE)=0
 Enter a subdirectory in the file.

virtual void upDir ()=0
 Go up one directory level.

virtual void writeToCurrentDir (const FloatHistogram1D &hist, const std::string &name)=0
 Write the given histogram to a ROOT file.


Constructor & Destructor Documentation

virtual HistWriter::~HistWriter  )  [inline, virtual]
 

Definition at line 12 of file HistWriter.hh.


Member Function Documentation

virtual bool HistWriter::enterDir const std::string &  name,
Bool_t  create = kFALSE
[pure virtual]
 

Enter a subdirectory in the file.

Parameters:
name the name of the sub directory
create set to true if non existing directories shall be created
Returns:
true incase the directory exists

Referenced by HistMgr::writeHistograms().

virtual void HistWriter::upDir  )  [pure virtual]
 

Go up one directory level.

Implemented in RootWriter.

Referenced by HistMgr::writeHistograms().

virtual void HistWriter::writeToCurrentDir const FloatHistogram1D hist,
const std::string &  name
[pure virtual]
 

Write the given histogram to a ROOT file.

Parameters:
hist reference to the histogram
name the name given to the histogram

Implemented in RootWriter.

Referenced by HistMgr::writeHistograms().


The documentation for this class was generated from the following file:
Generated on Tue Oct 11 04:13:54 2005 for calice-reco-0.1.0 by doxygen 1.3.5