FreeHEP API
Version v1.2.2

hep.aida.ref.histogram
Class Cloud

java.lang.Object
  |
  +--hep.aida.ref.event.AIDAObservable
        |
        +--hep.aida.ref.ManagedObject
              |
              +--hep.aida.ref.histogram.AbstractBaseHistogram
                    |
                    +--hep.aida.ref.histogram.Cloud
All Implemented Interfaces:
hep.aida.IBaseHistogram, hep.aida.ICloud, hep.aida.dev.IDevManagedObject, hep.aida.IManagedObject, IsObservable
Direct Known Subclasses:
Cloud1D, Cloud2D, Cloud3D

public abstract class Cloud
extends AbstractBaseHistogram
implements hep.aida.ICloud, IsObservable


Field Summary
protected  int arraySize
           
static int CLOUD_ARRAY_ENTRIES
           
protected  int convBins
           
protected  int maxEntries
           
 
Fields inherited from class hep.aida.ref.ManagedObject
fillable
 
Fields inherited from class hep.aida.ref.event.AIDAObservable
isValid
 
Constructor Summary
protected Cloud(String name, String title, int dimension, int maxEntries, String options)
          Create a Cloud.
 
Method Summary
protected  boolean autoConvert()
          Check if the Cloud is set to convert to an Histogram automatically.
abstract  void convertToHistogram()
          Convert the ICloud to an IHistogram using the default number of bins.
protected  EventObject createEvent()
           
 String getOptions()
          Get the options with which the Cloud was created.
 void initCloud(int maxEntries, String options)
           
abstract  boolean isConverted()
          Check if the ICloud has been converted to an IHistogram.
protected  double margin()
           
 int maxEntries()
          Get the maximum number of entries after which the Cloud will convert to an Histogram.
 void reset()
          Reset the histogram; as if just created.
abstract  void scale(double scaleFactor)
          Scale the weights by a given factor.
abstract  double sumOfWeights()
          Get the sum of weights of of all the entries
 
Methods inherited from class hep.aida.ref.histogram.AbstractBaseHistogram
annotation, dimension, entries, setAnnotation, setTitle, title
 
Methods inherited from class hep.aida.ref.ManagedObject
getAIDAType, isFillable, name, setFillable, setName
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, fireStateChanged, fireStateChanged, removeListener, setIsValidAfterNotify, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.IBaseHistogram
annotation, dimension, entries, setTitle, title
 
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeListener, setValid
 

Field Detail

arraySize

protected int arraySize

maxEntries

protected int maxEntries

CLOUD_ARRAY_ENTRIES

public static final int CLOUD_ARRAY_ENTRIES
See Also:
Constant Field Values

convBins

protected int convBins
Constructor Detail

Cloud

protected Cloud(String name,
                String title,
                int dimension,
                int maxEntries,
                String options)
Create a Cloud.

Parameters:
name - The name of the Cloud as a ManagedObject.
title - The title of the Cloud.
dimension - The Cloud's dimension.
maxEntries - The maximum number of entries after which the Cloud will convert to a Histogram. If maxEntries is negative the Cloud will not convert automatically.
options - A String containing options (e.g. "autoconvert=false")
Method Detail

createEvent

protected EventObject createEvent()
Overrides:
createEvent in class AIDAObservable

reset

public void reset()
Reset the histogram; as if just created.

Specified by:
reset in interface hep.aida.IBaseHistogram
Overrides:
reset in class AbstractBaseHistogram

sumOfWeights

public abstract double sumOfWeights()
Get the sum of weights of of all the entries

Specified by:
sumOfWeights in interface hep.aida.ICloud
Returns:
The sum of the weights of all the entries.

convertToHistogram

public abstract void convertToHistogram()
Convert the ICloud to an IHistogram using the default number of bins.

Specified by:
convertToHistogram in interface hep.aida.ICloud

isConverted

public abstract boolean isConverted()
Check if the ICloud has been converted to an IHistogram.

Specified by:
isConverted in interface hep.aida.ICloud
Returns:
true if it has been converted.

scale

public abstract void scale(double scaleFactor)
Scale the weights by a given factor.

Specified by:
scale in interface hep.aida.ICloud
Parameters:
scaleFactor - The scale factor.

autoConvert

protected boolean autoConvert()
Check if the Cloud is set to convert to an Histogram automatically.

Returns:
true if it will convert automatically, false otherwise.

maxEntries

public int maxEntries()
Get the maximum number of entries after which the Cloud will convert to an Histogram.

Specified by:
maxEntries in interface hep.aida.ICloud
Returns:
The maximum number of entries.

getOptions

public String getOptions()
Get the options with which the Cloud was created.

Returns:
The String of options.

initCloud

public void initCloud(int maxEntries,
                      String options)

margin

protected double margin()

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.