In file PlotSet/DataDesc.hh:

class HistDataCopy : public HistDataDescriptor

Object for storing plotting data

Inheritance:


Public Methods

HistDataCopy ()
constructor
HistDataCopy (const BasicDataDescriptor& dat)
Copy Constructor.
HistDataCopy (double* edge, double* content, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Constructor.
HistDataCopy (double* edge, double* content, double* error, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Constructor.
virtual ~HistDataCopy ()
Destructor.
virtual bool SetData (const BasicDataDescriptor& dat)
Set data method.
virtual bool SetData (double* edge, double* content, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Set data method.
virtual bool SetData (double* edge, double* content, double* error, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Set data method.

Protected Fields

int fNBinx
number of bins
int fNEnt
number of data entries

Inherited from HistDataDescriptor:

Public Methods

virtual double* GetXBinEdges() const
virtual double* GetBinContents() const
virtual double* GetBinErrors() const
virtual int GetN() const
virtual const char* GetXLabel() const
virtual const char* GetNLabel() const
virtual int GetNEntries() const
virtual double* GetStats() const
virtual bool IsXY() const

Protected Fields

bool fXYData
double* fXBins
double* fContents
double* fBinErrors
int* fN
const char* fXLabel
const char* fNLabel
int* fNEntries
double* fStats

Inherited from BasicDataDescriptor:

Public Methods

virtual bool IsComplex() const
virtual void SetComplex(bool cmplx)
virtual bool IsDirty() const
virtual void SetDirty(bool set = true) const
virtual bool IsPersistent() const
virtual void SetPersistent(bool set = true)
virtual bool IsCalculated() const
virtual void SetCalculated(bool set = true)
virtual bool IsMarked() const
virtual void SetMarked(bool set = true) const
virtual float GetDX() const
virtual float* GetX() const
virtual float* GetY() const
virtual float* GetEX() const
virtual float* GetEXhigh() const
virtual float* GetEY() const
virtual float* GetEYhigh() const
virtual bool EraseData()

Protected Fields

bool fComplexData
mutable bool fDirty
bool fPersistent
bool fCalculated
mutable bool fMarked

Documentation

This data descriptor implements access to data by making a copy of the data arrays specified in the constructor. The original data can be reused.

int fNBinx
number of bins

int fNEnt
number of data entries

HistDataCopy()
constructor

HistDataCopy(const BasicDataDescriptor& dat)
Constructs a histogram data descriptor from another one.
Returns:
void
Parameters:
dat - Basic data descriptor

HistDataCopy(double* edge, double* content, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Constructs a histogram data descriptor by providing pointer to the data array (w/o bin error) and parameters.
Returns:
void
Parameters:
edge - Pointer to X bin edge array
content - Pointer to bin content array
nbinx - Number of bins
xlabel - X-axis label
nlabel - bin content axis label
nent - number of data entries to the histogram
stat - Pointer to the histogram statistics array
xydata - true: variable bin spacing, false: fixed bin spacing

HistDataCopy(double* edge, double* content, double* error, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Constructs a histogram data descriptor by providing pointer to the data array (w/ bin error) and parameters.
Returns:
void
Parameters:
edge - Pointer to X bin edge array
content - Pointer to bin content array
error - Pointer to bin error array
nbinx - Number of bins
xlabel - X-axis label
nlabel - bin content axis label
nent - number of data entries to the histogram
stat - Pointer to the histogram statistics array
xydata - true: variable bin spacing, false: fixed bin spacing

virtual ~HistDataCopy()
Destructs the histogram data descriptor.
Returns:
void

virtual bool SetData(const BasicDataDescriptor& dat)
Set a histogram data descriptor from another one.
Returns:
void
Parameters:
dat - Basic data descriptor

virtual bool SetData(double* edge, double* content, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Sets a new histogram data for descriptor by providing pointer to the data array and parameters. The old data is freed and the new data is copied into local arrays.
Returns:
void
Parameters:
edge - Pointer to X bin edge array
content - Pointer to bin content array
nbinx - Number of bins
xlabel - X-axis label
nlabel - bin content axis label
nent - number of data entries to the histogram
stat - Pointer to the histogram statistics array
xydata - true: variable bin spacing, false: fixed bin spacing

virtual bool SetData(double* edge, double* content, double* error, int& nbinx, const char* xlabel, const char* nlabel, int& nent, double* stat, bool xydata)
Sets a new histogram data for descriptor by providing pointer to the data array and parameters. The old data is freed and the new data is copied into local arrays.
Returns:
void
Parameters:
edge - Pointer to X bin edge array
content - Pointer to bin content array
error - Pointer to bin error array
nbinx - Number of bins
xlabel - X-axis label
nlabel - bin content axis label
nent - number of data entries to the histogram
stat - Pointer to the histogram statistics array
xydata - true: variable bin spacing, false: fixed bin spacing


This class has no child classes.
Author:
Written July 2001 by Masahiro Ito
Version:
1.0

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++