hep.analysis
Class DerivedHistogram

java.lang.Object
  |
  +--hep.analysis.AbstractNamedObject
        |
        +--hep.analysis.Histogram
              |
              +--hep.analysis.DerivedHistogram
All Implemented Interfaces:
NamedObject, java.io.Serializable

public class DerivedHistogram
extends Histogram

DerivedHistogram extends the hep.analysis.Histogram class but overrides all of the methods which actually change the histograms to throw exceptions.

See Also:
Serialized Form

Inner classes inherited from class hep.analysis.NamedObject
NamedObject.RenameException
 
Fields inherited from class hep.analysis.Histogram
m_partition
 
Fields inherited from class hep.analysis.AbstractNamedObject
m_parent
 
Constructor Summary
DerivedHistogram(java.lang.String name)
          Create a new histogram.
DerivedHistogram(java.lang.String name, HistogramFolder parent)
          Create a new histogram in a folder.
 
Method Summary
 void clear()
          Clears the histogram contents
 void fill(java.util.Date x)
          Fill a histogram with a single date.
 void fill(java.util.Date x, double value)
           
 void fill(double x)
          Fill a histogram with a single double.
 void fill(double x, double value)
           
 void fill(int x)
          Fill a histogram with a single int.
 void fill(int x, double value)
           
 void fill(java.lang.String x)
          Fill a histogram with a single string.
 void fill(java.lang.String x, double value)
           
 
Methods inherited from class hep.analysis.Histogram
fillW, fillW, fillW, fillW, fillW, fillW, find, find, getDefaultParent, getEntries, getPartition, getStyle, isClearOnRewind, partitionDestroyedNotify, setClearOnRewind, setPartition, setStyle, show, toString
 
Methods inherited from class hep.analysis.AbstractNamedObject
delete, getFolder, getName, rename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DerivedHistogram

public DerivedHistogram(java.lang.String name)
Create a new histogram.
Parameters:
name - The name of the derived histogram. If a histogram of this name already exists its contents are cleared and a reference to the previously existing histogram is returned.

DerivedHistogram

public DerivedHistogram(java.lang.String name,
                        HistogramFolder parent)
Create a new histogram in a folder.
Parameters:
name - The name of the histogram. If a histogram of this name already exists its contents are cleared and a reference to the previously existing histogram is returned.
parent - the HistogramFolder in which to store this Hsitogram
Method Detail

fill

public void fill(double x)
Description copied from class: Histogram
Fill a histogram with a single double. This method creates a SimplePartition if no partition has been set, and fills the partition with the given value.
Overrides:
fill in class Histogram
Following copied from class: hep.analysis.Histogram
Parameters:
x - X coordinate
See Also:
SimplePartition

fill

public void fill(double x,
                 double value)
Overrides:
fill in class Histogram

fill

public void fill(int x)
Description copied from class: Histogram
Fill a histogram with a single int. This method creates a SimpleIntPartition if no partition has been set, and fills the partition with the given value.
Overrides:
fill in class Histogram
Following copied from class: hep.analysis.Histogram
Parameters:
x - X coordinate
See Also:
SimpleIntPartition

fill

public void fill(int x,
                 double value)

fill

public void fill(java.lang.String x)
Description copied from class: Histogram
Fill a histogram with a single string. This method creates a StringPartition if no partition has been set, and fills the partition with the given value.
Overrides:
fill in class Histogram
Following copied from class: hep.analysis.Histogram
Parameters:
x - String value to fill
See Also:
StringPartition

fill

public void fill(java.lang.String x,
                 double value)

fill

public void fill(java.util.Date x)
Description copied from class: Histogram
Fill a histogram with a single date. This method creates a SimpleDatePartition if no partition has been set, and fills the partition with the given value.
Overrides:
fill in class Histogram
Following copied from class: hep.analysis.Histogram
Parameters:
x - Date value to fill
See Also:
SimpleDatePartition

fill

public void fill(java.util.Date x,
                 double value)
Overrides:
fill in class Histogram

clear

public void clear()
Description copied from class: Histogram
Clears the histogram contents
Overrides:
clear in class Histogram