#include <StHist1DProjector.h>
Inheritance diagram for StHist1DProjector:
A vector of ProjValue1D
objects is created and presented to a client via an iterator. The binning parameters are fixed hence it is called static 1D histogram-mer.
Definition at line 27 of file StHist1DProjector.h.
Public Types | |
typedef void(hippodraw::Observer::* | Action )(const Observable *) |
The member function of the Observer that is called. | |
typedef std::list< hippodraw::Observer * > | ObserverList_t |
The type of STL container to maintain list of Observer objects. | |
Public Member Functions | |
void | addObserver (hippodraw::Observer *) |
Adds an Observer to the Observer list. | |
virtual void | addValues (const std::vector< double > &v) |
Add the values to the histogram. | |
virtual void | checkScaling () |
Checks the axis scaling. | |
ProjectorBase * | clone () |
The clone function returns an object of its own kind which is a copy of this object at this moment. | |
virtual DataSource * | createNTuple () const |
Returns an NTuple representing the binned values. | |
virtual const DataSource * | createOldStyleNTuple () const |
Creates and returns NTuple object. | |
virtual Range | dataRangeOn (hippodraw::Axes::Type axis) const |
Returns the range of the data on a specified axis. | |
virtual double | getAverage (hippodraw::Axes::Type axis) const |
Get the Average of all projected values on the specified axis. | |
virtual const std::vector< std::string > & | getAxisBindings () const |
Returns the axis bindings. | |
virtual AxisModelBase * | getAxisModel (hippodraw::Axes::Type axis) const |
Get the AxisModel for axis axis. | |
const BinsBase * | getBinner () const |
Returns reference to BinsBase object used by this projector. | |
double | getBinWidth (hippodraw::Axes::Type axis) const |
Returns the bin width of the axis. | |
virtual NTuple * | getNTupleAfterCuts () const |
Template for projectors that can return subsets of the NTuple used by the DataRep. | |
virtual int | getNumberOfBins (hippodraw::Axes::Type axis) const |
Returns the number of bins. | |
virtual int | getNumberOfEntries () const |
Returns the total number of entries that went into creating the projected values. | |
const ObserverList_t & | getObservers () const |
Returns the list of observers. | |
double | getOffset (hippodraw::Axes::Type axis) const |
Returns the offset of the axis. | |
const std::vector< std::string > & | getPointReps () const |
Return the vector of Point Reps. | |
virtual double | getPosOn (hippodraw::Axes::Type axis) const |
Returns the minimum positive value of the data on a specified axis. | |
const DataSource * | getProjectedValues () const |
Returns ntuple representation of projected values. | |
virtual const Range & | getRange (hippodraw::Axes::Type) const |
Returns the Range along the specified axis. | |
virtual double | getRMS (hippodraw::Axes::Type axis) |
Returns the RMS. | |
virtual const std::string & | getTitle () const |
Finds the title of the plot. | |
const std::string & | getXLabel () const |
Returns the label (title) of the x axis. | |
const std::string & | getYLabel (bool flag=false) const |
Returns the label for the Y axis. | |
virtual const std::string & | getZLabel () const |
Finds the Z axis label of the plot. | |
virtual double | getZValue (double x, double y) const |
Get the z value at the specified point (x,y). | |
virtual bool | isAxisBinned (const std::string &axis) const |
Returns true if the intended axis is "X", otherwise returns false. | |
bool | isDirty () const |
Returns true if the projector has been marked dirty. | |
bool | isEmpty () const |
Returns false as this class' data source is never empty even if no filling has occurred yet. | |
virtual bool | isValueBinned () const |
Returns true as the projected value is the result of accumulation into bins. | |
virtual void | matrixTranspose (bool yes) |
Transposes the X and Y axis. | |
virtual void | normalize () |
Normalizes the projector to its target. | |
virtual void | normalizeTo (const ProjectorBase *target) |
Normalize the output of the receiving object's projected values to that of target. | |
virtual void | normalizeTo (double number) |
Sets a scale factor on the output so that the number of entries appears to be number. | |
virtual void | notifyObservers () const |
Notifies Observer objects of a change. | |
virtual Range | preferredRange (hippodraw::Axes::Type) const |
Returns the preferred Range. | |
virtual void | prepareValues () |
Prepares the projector for plotting by executing, if needed, the binning procedure. | |
void | removeObserver (hippodraw::Observer *) |
Removes an Observer from the Observer list. | |
virtual void | reset () |
Resets the bins. | |
virtual void | setAxisBinding (const std::string &axis, const std::string &label) |
Sets the axis binding. | |
virtual void | setAxisBindings (const std::vector< std::string > &bindings) |
Sets the axis binding. | |
virtual void | setAxisModel (hippodraw::Axes::Type, AxisModelBase *) |
Sets the AxisModel for axis axis. | |
void | setBinContents (const DataSource *source) |
Sets the contents of the bins from the data source. | |
void | setBinner (BinsBase *bins) |
Sets the BinsBase object to be used by this projector. | |
virtual void | setBinnerOn (BinnerAxis *binner, hippodraw::Axes::Type axis) |
Sets the bin edge calculator to binner on axis axis. | |
virtual void | setBinnerRange (hippodraw::Axes::Type axis, const Range &range, bool const_width) |
Sets the Range of the binner. | |
virtual void | setBinWidth (const std::string &axis, int parm, bool dragging) |
Sets the bin width. | |
virtual void | setBinWidth (hippodraw::Axes::Type axis, double width) |
virtual void | setDirty (bool value=true) |
Sets the dirty flag to value. | |
virtual void | setNormalizing (bool on) |
Sets the scaling number of entries on if on is true , otherwise turns if off. | |
virtual void | setNumberOfBins (hippodraw::Axes::Type axis, unsigned int number) |
Sets the number of bins. | |
virtual void | setOffset (hippodraw::Axes::Type axis, double offset) |
Sets the bin offset. | |
virtual void | setOffset (const std::string &axis, int parm, bool dragging) |
Sets the bin offset. | |
virtual void | setRange (hippodraw::Axes::Type, const Range &range, bool) |
Sets the range of the binner. | |
virtual void | setRange (hippodraw::Axes::Type, bool) |
void | setYLabel () |
Sets the Y axis label. | |
StHist1DProjector (const StHist1DProjector &projector) | |
The copy constructor. | |
StHist1DProjector () | |
The default constructor. | |
virtual void | update (const Observable *object) |
Updates the receiving projector. | |
virtual Range | valueRange () const |
Finds the range of the projected values. | |
virtual bool | wantsScaleFactor (const std::string &axis) const |
Returns true if axis is the Y axis. | |
virtual void | willDelete (const Observable *object) |
If object is the target of normalization, removes the target and sets normalization off. | |
Protected Member Functions | |
virtual void | addPointReps () |
Function to add the acceptable point reps. | |
Range | dataRangeOnValue () const |
Returns the data range on the Y axis. | |
virtual void | execute () |
Provides the all the data to the binner. | |
virtual void | fillDataSource (DataSource *ntuple, bool in_range=false) const |
Fills the DataSource source with the projected values. | |
virtual void | fillProjectedValues (DataSource *ntuple, bool in_range=false) const |
Fills the NTuple ntuple with the projected values. | |
double | getPosOnValue () const |
Returns the smallest positive value on the Y axis. | |
void | notifyObservers (Action action) const |
An internal method to iterate over all observers and to send the message action. | |
Protected Attributes | |
BinsBase * | m_binner |
The binner object. | |
std::vector< std::string > | m_pointreps |
Vector of acceptable PointReps. | |
DataSource * | m_proj_values |
The NTuple representing the result of the projection. | |
const ProjectorBase * | m_target |
The target projector. | |
AxisModelBase * | m_x_axis |
The AxisModel along the X axis. | |
AxisModelBase * | m_y_axis |
The AxisModel along the Y axis. | |
std::string | m_y_label_density |
The label of the y axis when axis is not scaled. | |
std::string | m_y_label_entries |
The label of the y axis when axis is scaled. | |
AxisModelBase * | m_z_axis |
The AxisModel along the Z axis. | |
std::string | m_z_label |
Dummy member so that getZLabel can return a reference. | |
Private Attributes | |
std::string | m_title |
The title of the histogram. | |
std::string | m_x_label |
The label of the x axis. | |
std::string | m_y_label |
The label of the y axis. |
|
The member function of the Observer that is called.
Definition at line 83 of file Observable.h. |
|
The type of STL container to maintain list of Observer objects.
Definition at line 46 of file Observable.h. |
|
The default constructor.
Definition at line 43 of file StHist1DProjector.cxx. References m_y_label. Referenced by clone(). |
|
The copy constructor.
Definition at line 51 of file StHist1DProjector.cxx. |
|
Adds an Observer to the Observer list.
Definition at line 49 of file Observable.cxx. References Observable::m_list. Referenced by CutPlotter::addCutTarget(), XyPlotter::addDataRep(), FunctionRep::FunctionRep(), BinningProjector::normalizeTo(), DataRepController::setAxisBindings(), DisplayController::setNTuple(), CutPlotter::setNTuple(), and TextPlotter::setParentDataRep(). |
|
Function to add the acceptable point reps.
Implements ProjectorBase. Definition at line 74 of file Hist1DProjImp.cxx. References ProjectorBase::m_pointreps. Referenced by Hist1DProjImp::Hist1DProjImp(). |
|
Add the values to the histogram. The first element of the vector is the value to be accumulated into the histogram. If the size of the vector is 2, then the second element is the weight, otherwise the weight is 1.0. Reimplemented from ProjectorBase. Definition at line 149 of file StHist1DProjector.cxx. References std::accumulate(), BinningProjector::m_binner, Observable::notifyObservers(), and ProjectorBase::setDirty(). |
|
Checks the axis scaling. If bins are all same width, then sets the Y axis scale factor. Otherwise, turns off the scale factor on the Y axis. Reimplemented from BinningProjector. Definition at line 83 of file Hist1DProjImp.cxx. References BinsBase::hasEqualWidths(), BinningProjector::m_binner, ProjectorBase::m_y_axis, BinsBase::scaleFactor(), AxisModelBase::setScaleFactor(), and AxisModelBase::setScaling(). Referenced by setBinnerRange(), and DyHist1DProjector::setBinnerRange(). |
|
The clone function returns an object of its own kind which is a copy of this object at this moment.
Implements ProjectorBase. Definition at line 59 of file StHist1DProjector.cxx. References StHist1DProjector(). |
|
Returns an NTuple representing the binned values.
Implements ProjectorBase. Definition at line 272 of file BinningProjector.cxx. References BinsBase::createNTuple(), and BinningProjector::m_binner. Referenced by BinningProjector::BinningProjector(), BinningProjector::createOldStyleNTuple(), and BinningProjector::setBinner(). |
|
Creates and returns NTuple object. Creates an old style NTuple representation of the projected values, i.e. one in which the NTuple contains the bin width as the XERR instead of the half width. This member function exists for backward compatibility of deprecated functions. Reimplemented from ProjectorBase. Definition at line 84 of file BinningProjector.cxx. References BinningProjector::createNTuple(), BinningProjector::execute(), BinningProjector::fillProjectedValues(), ProjectorBase::isDirty(), and BinningProjector::m_binner. |
|
Returns the range of the data on a specified axis. For the X axis, it returns the range of the data. For the Y axis, it returns the range of the binned data.
Implements ProjectorBase. Definition at line 84 of file StHist1DProjector.cxx. References Hist1DProjImp::dataRangeOnValue(), BinsBase::getRange(), BinningProjector::m_binner, hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Returns the data range on the Y axis.
Definition at line 130 of file Hist1DProjImp.cxx. References ProjectorBase::m_proj_values, BinningProjector::prepareValues(), and hippodraw::Axes::Y. Referenced by dataRangeOn(), DyHist1DProjector::dataRangeOn(), and Hist1DProjImp::getPosOnValue(). |
|
Provides the all the data to the binner.
Reimplemented in DyHist1DProjector, DyHist2DProjector, Profile2DProjector, and ProfileProjector. Definition at line 253 of file BinningProjector.cxx. Referenced by BinningProjector::createOldStyleNTuple(), and BinningProjector::prepareValues(). |
|
Fills the DataSource source with the projected values.
Fills the DataSource source with the results of projecting the data source to projected values. Derived classes must implement this method. Clients, such as plotters or fitters, can then use getProjectedValues method to access the projected value data. The default behavior is to fill the DataSource with all values that are accepted by the TupleCut objects, if any. If in_range is equal to Implements ProjectorBase. Definition at line 286 of file BinningProjector.cxx. References BinningProjector::m_binner. Referenced by BinningProjector::BinningProjector(), and BinningProjector::prepareValues(). |
|
Fills the NTuple ntuple with the projected values.
Fills the NTuple !ntuple with the results of projecting the data source to projected values. Derived classes must implement this method. Clients, such as plotters or fitters, can then use getProjectedValues method to access the projected value data. The default behavior is to fill the NTuple with all values that are accepted by the TupleCut objects, if any. If in_range is equal to Implements ProjectorBase. Definition at line 279 of file BinningProjector.cxx. References BinningProjector::m_binner. Referenced by BinningProjector::createOldStyleNTuple(). |
|
Get the Average of all projected values on the specified axis.
Reimplemented from ProjectorBase. Definition at line 113 of file StHist1DProjector.cxx. References ProjectorBase::getProjectedValues(), AxisModelBase::getScaleFactor(), ProjectorBase::m_y_axis, mean, ProjectorHelper::meanCoord(), ProjectorHelper::meanValue(), BinningProjector::prepareValues(), ProjectorBase::setDirty(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Returns the axis bindings. Returns the name associated with each axis. This member function should only be called with a derived class which can process it in a meaningful way. thus if this method is called on this base class, an assertion is raised. Reimplemented in NTupleProjector. Definition at line 99 of file ProjectorBase.cxx. Referenced by XYPlot::setAxisBindings(). |
|
Get the AxisModel for axis axis.
Definition at line 204 of file ProjectorBase.cxx. References ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, ProjectorBase::m_z_axis, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. Referenced by CompositePlotter::processReturnValue(), and ContourPointRep::setContourValues(). |
|
Returns reference to BinsBase object used by this projector.
Definition at line 99 of file BinningProjector.cxx. References BinningProjector::m_binner. Referenced by BinningProjectorXML::createChildren(). |
|
Returns the bin width of the axis. Not all projectors has a notation of a bin width. This interface is declared for those that do. The implementation in this base class is to does nothing. Reimplemented from ProjectorBase. Definition at line 238 of file BinningProjector.cxx. References BinsBase::binWidth(), BinningProjector::m_binner, BinningProjector::m_binner_dim, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. |
|
Template for projectors that can return subsets of the NTuple used by the DataRep.
Reimplemented in NTupleProjector. Definition at line 324 of file ProjectorBase.cxx. Referenced by DataRep::getNTupleAfterCuts(). |
|
Returns the number of bins. Returns number of bins if axis is binned, otherwise returns 0. Reimplemented from ProjectorBase. Definition at line 137 of file BinningProjector.cxx. References ProjectorBase::getNumberOfBins(), BinningProjector::m_binner, BinningProjector::m_binner_dim, BinsBase::numberOfBins(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Returns the total number of entries that went into creating the projected values. It is up to derived classes to interpret what this means. Some may find it meaningless and raise an exception and/or assertion. Implements ProjectorBase. Definition at line 140 of file StHist1DProjector.cxx. References BinsBase::getNumberOfEntries(), and BinningProjector::m_binner. |
|
Returns the list of observers.
Definition at line 57 of file Observable.cxx. References Observable::m_list. |
|
Returns the offset of the axis. Not all projectors has a notation of a bin width. This interface is declared for those that do. The implementation in this base class is to does nothing. Reimplemented from ProjectorBase. Definition at line 223 of file BinningProjector.cxx. References BinsBase::getOffset(), BinningProjector::m_binner, BinningProjector::m_binner_dim, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. |
|
Return the vector of Point Reps.
Definition at line 317 of file ProjectorBase.cxx. References ProjectorBase::m_pointreps. |
|
Returns the minimum positive value of the data on a specified axis.
Implements ProjectorBase. Definition at line 75 of file StHist1DProjector.cxx. References Hist1DProjImp::getPosOnValue(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Returns the smallest positive value on the Y axis.
Definition at line 106 of file Hist1DProjImp.cxx. References Hist1DProjImp::dataRangeOnValue(), and Range::pos(). Referenced by getPosOn(), and DyHist1DProjector::getPosOn(). |
|
Returns ntuple representation of projected values.
Definition at line 338 of file ProjectorBase.cxx. References ProjectorBase::m_proj_values. Referenced by BinningProjectorXML::createChildren(), ProjectorBase::createOldStyleNTuple(), StHist2DProjector::getAverage(), getAverage(), MapMatrixProjector::getAverage(), Map1Projector::getAverage(), ProjectorBase::getRMS(), and FunctionProjector::initializeFunction(). |
|
Returns the Range along the specified axis. The behavior implemented here is to return the range of the AxisModelBase owned by the PlotterBase. However, derived classes may override this function, such as projectors that have binners, if this behavior is incorrect. Definition at line 145 of file ProjectorBase.cxx. References AxisModelBase::getRange(), ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, ProjectorBase::m_z_axis, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. Referenced by LineProjector::dataRangeOn(), LineProjector::fillDataSource(), LineProjector::fillProjectedValues(), NTupleProjector::getAverage(), DyHist1DProjector::getAverage(), LineProjector::getPosOn(), and LineProjector::valueRange(). |
|
Returns the RMS. Returns the root mean square of the data points along the axis axis. Definition at line 279 of file ProjectorBase.cxx. References ProjectorBase::getProjectedValues(), ProjectorHelper::stdCoord(), and hippodraw::Axes::X. |
|
Finds the title of the plot.
Implements ProjectorBase. Definition at line 133 of file StHist1DProjector.cxx. References m_title. |
|
Returns the label (title) of the x axis.
Implements ProjectorBase. Definition at line 96 of file StHist1DProjector.cxx. References m_x_label. |
|
Returns the label for the Y axis. Returns the label for the Y axis. The argument @ flag is ignored. Implements ProjectorBase. Definition at line 106 of file StHist1DProjector.cxx. References m_y_label. |
|
Finds the Z axis label of the plot. A plotter may ask the projector for the default label. Reimplemented in FunctionProjector, Hist2DProjImp, Map3Projector, MapMatrixProjector, and Profile2DProjector. Definition at line 292 of file ProjectorBase.cxx. References ProjectorBase::m_z_label. Referenced by NTupleProjector::getAverage(), and CompositePlotter::getLabel(). |
|
Get the z value at the specified point (x,y).
Reimplemented from ProjectorBase. Definition at line 263 of file BinningProjector.cxx. References BinsBase::getZValue(), and BinningProjector::m_binner. |
|
Returns
Reimplemented from ProjectorBase. Definition at line 65 of file StHist1DProjector.cxx. |
|
Returns A dirty projector is one whose projected values are invalid because of some change (e.g., an axis range has changed.) Definition at line 70 of file ProjectorBase.cxx. References ProjectorBase::m_isDirty. Referenced by BinningProjector::createOldStyleNTuple(), Profile2DProjector::dataRangeOn(), DataRep::isDirty(), MapMatrixProjector::prepareValues(), Map2Projector::prepareValues(), FunctionProjector::prepareValues(), BinningProjector::prepareValues(), and Profile2DProjector::valueRange(). |
|
Returns false as this class' data source is never empty even if no filling has occurred yet.
Implements ProjectorBase. Definition at line 162 of file StHist1DProjector.cxx. Referenced by setBinnerRange(). |
|
Returns
Reimplemented from ProjectorBase. Definition at line 99 of file Hist1DProjImp.cxx. |
|
Transposes the X and Y axis. The implementation in this base class does nothing. Reimplemented in MapMatrixProjector. Definition at line 109 of file ProjectorBase.cxx. |
|
Normalizes the projector to its target.
Definition at line 332 of file BinningProjector.cxx. References ProjectorBase::getNumberOfEntries(), ProjectorBase::m_target, norm, BinningProjector::normalizeTo(), and ProjectorBase::setDirty(). Referenced by BinningProjector::normalizeTo(), and BinningProjector::update(). |
|
Normalize the output of the receiving object's projected values to that of target.
Reimplemented from ProjectorBase. Definition at line 309 of file BinningProjector.cxx. References Observable::addObserver(), ProjectorBase::isValueBinned(), ProjectorBase::m_target, BinningProjector::normalize(), Observable::removeObserver(), and BinningProjector::setNormalizing(). |
|
Sets a scale factor on the output so that the number of entries appears to be number. This feature might be used, for example, to compare two histograms that have different number of entires by normalizing one to the other. Reimplemented from ProjectorBase. Definition at line 293 of file BinningProjector.cxx. References BinningProjector::m_binner. Referenced by BinningProjector::normalize(). |
|
An internal method to iterate over all observers and to send the message action.
Definition at line 69 of file Observable.cxx. References std::bind2nd(), std::for_each(), Observable::m_list, and std::mem_fun(). |
|
|
Returns the preferred Range. Returns the Range preferred by the projector. The default implementation in this base class is to return full range of the data on the axis. Derived classes, may need to override this implementation. Reimplemented from ProjectorBase. Definition at line 115 of file Hist1DProjImp.cxx. References ProjectorBase::dataRangeOn(), Range::setLow(), and hippodraw::Axes::Y. |
|
Prepares the projector for plotting by executing, if needed, the binning procedure.
Reimplemented from ProjectorBase. Definition at line 72 of file BinningProjector.cxx. References BinningProjector::execute(), BinningProjector::fillDataSource(), ProjectorBase::isDirty(), ProjectorBase::m_proj_values, and ProjectorBase::setDirty(). Referenced by BinningProjectorXML::createChildren(), ProfileProjector::dataRangeOn(), Profile2DProjector::dataRangeOn(), Hist2DProjImp::dataRangeOnValue(), Hist1DProjImp::dataRangeOnValue(), StHist2DProjector::getAverage(), getAverage(), and Profile2DProjector::valueRange(). |
|
Removes an Observer from the Observer list.
Definition at line 63 of file Observable.cxx. References Observable::m_list. Referenced by BinningProjector::normalizeTo(), CutPlotter::removeFromTarget(), DisplayController::removeTextObservers(), NTupleProjector::setNTuple(), FunctionRep::willDelete(), FunctionRep::~FunctionRep(), and NTupleProjector::~NTupleProjector(). |
|
Resets the bins. This interface is for the StHist1DProjector Reimplemented from Hist1DProjImp. Definition at line 182 of file StHist1DProjector.cxx. References BinningProjector::m_binner, and ProjectorBase::setDirty(). |
|
Sets the axis binding. Sets binding of the axis with name axis to entity with name label. It is expected that this member function will only be called on a derived class which can process it in a meaningful way. Thus if this method is called on this base class, an assertion is thrown. Reimplemented in NTupleProjector. Definition at line 84 of file ProjectorBase.cxx. |
|
Sets the axis binding. Sets binding of all axis entities with name in the vector. This member function should only be called with a derived class which can process it in a meaningful way. Thus if this method is called on this base class, an assertion is thrown. Reimplemented in NTupleProjector. Definition at line 92 of file ProjectorBase.cxx. |
|
Sets the AxisModel for axis axis.
Reimplemented from ProjectorBase. Definition at line 66 of file BinningProjector.cxx. References BinningProjector::checkScaling(), and ProjectorBase::setAxisModel(). |
|
Sets the contents of the bins from the data source.
Definition at line 365 of file BinningProjector.cxx. References BinningProjector::m_binner. |
|
Sets the BinsBase object to be used by this projector.
Definition at line 106 of file BinningProjector.cxx. References BinningProjector::createNTuple(), BinningProjector::m_binner, and ProjectorBase::m_proj_values. Referenced by BinningProjectorXML::getObject(). |
|
Sets the bin edge calculator to binner on axis axis.
Definition at line 118 of file BinningProjector.cxx. References BinningProjector::checkScaling(), ProjectorBase::isAxisBinned(), BinningProjector::m_binner, BinsBase::setBinnerOn(), ProjectorBase::setDirty(), hippodraw::Axes::X, and hippodraw::Axes::Y. Referenced by DisplayController::setBinner(). |
|
Sets the Range of the binner.
If the BinsBase object is empty, the sets the Range of the BinsBase object for axes axis to range. If const_width is Implements BinningProjector. Definition at line 169 of file StHist1DProjector.cxx. References Hist1DProjImp::checkScaling(), isEmpty(), BinningProjector::m_binner, ProjectorBase::setDirty(), and Hist1DProjImp::setRange(). |
|
Sets the bin width.
This method is intended to be used in conjunction with a slider widget in a graphical user interface. The slider range is assumed to be 0 to 100 with the current value at parm. If the slider is still being dragged, then dragging is Reimplemented from ProjectorBase. Reimplemented in DyHist2DProjector, and Profile2DProjector. Definition at line 179 of file BinningProjector.cxx. References BinsBase::calcBinWidth(), BinningProjector::m_binner, BinningProjector::setBinWidth(), and hippodraw::Axes::X. |
|
Reimplemented from ProjectorBase. Reimplemented in Hist2DProjImp, and Profile2DProjector. Definition at line 164 of file BinningProjector.cxx. References BinningProjector::checkScaling(), BinningProjector::m_binner, BinsBase::setBinWidth(), ProjectorBase::setDirty(), hippodraw::Axes::X, and hippodraw::Axes::Y. Referenced by BinningProjector::setBinWidth(). |
|
|
Sets the scaling number of entries on if on is
Reimplemented from ProjectorBase. Definition at line 300 of file BinningProjector.cxx. References BinningProjector::m_binner. Referenced by BinningProjector::normalizeTo(), and BinningProjector::willDelete(). |
|
Sets the number of bins. Sets the number of bins along the axis axis to number. Not all projectors has a notation of a bin width. This interface is declared for those that do. The implementation in this base class is to does nothing. Reimplemented in MapMatrixProjector. Definition at line 221 of file ProjectorBase.cxx. Referenced by CompositePlotter::setNumberOfBins(). |
|
Sets the bin offset. Sets the offset of bins by fraction offset of the bin width. Not all projectors has a notation of a bin width. This interface is declared for those that do. The implementation in this base class is to does nothing. Reimplemented from ProjectorBase. Reimplemented in Hist2DProjImp, and Profile2DProjector. Definition at line 206 of file BinningProjector.cxx. References BinsBase::getRange(), BinningProjector::m_binner, ProjectorBase::m_x_axis, ProjectorBase::setDirty(), BinsBase::setOffset(), AxisModelBase::setRange(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Sets the bin offset.
Reimplemented from ProjectorBase. Reimplemented in DyHist2DProjector, and Profile2DProjector. Definition at line 190 of file BinningProjector.cxx. References BinsBase::calcOffset(), BinningProjector::m_binner, ProjectorBase::setDirty(), and hippodraw::Axes::X. |
|
Sets the range of the binner.
Definition at line 151 of file BinningProjector.cxx. References BinningProjector::m_binner, BinsBase::setRange(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Reimplemented from ProjectorBase. Definition at line 145 of file Hist1DProjImp.cxx. References ProjectorBase::getPosOn(), AxisModelBase::getRange(), Range::high(), AxisModelBase::isLog(), Range::low(), BinningProjector::m_binner, ProjectorBase::m_x_axis, BinningProjector::setBinnerRange(), AxisModelBase::setRange(), hippodraw::Axes::X, and hippodraw::Axes::Y. Referenced by setBinnerRange(), and DyHist1DProjector::setBinnerRange(). |
|
Sets the Y axis label.
Definition at line 101 of file StHist1DProjector.cxx. References m_y_label, and Hist1DProjImp::m_y_label_entries. |
|
Updates the receiving projector. If the projector is normalizing to a target projector and object is the target, then re-normalizes itself. If not, then notifies its observers. Reimplemented from ProjectorBase. Reimplemented in DyHist1DProjector, DyHist2DProjector, Profile2DProjector, and ProfileProjector. Definition at line 343 of file BinningProjector.cxx. References ProjectorBase::m_target, BinningProjector::normalize(), and Observable::notifyObservers(). Referenced by ProfileProjector::update(), Profile2DProjector::update(), DyHist2DProjector::update(), and DyHist1DProjector::update(). |
|
Finds the range of the projected values. It is up to derived classes to determine what this means.
Implements ProjectorBase. Definition at line 172 of file Hist1DProjImp.cxx. References ProjectorBase::dataRangeOn(), and hippodraw::Axes::Y. |
|
Returns
Reimplemented from ProjectorBase. Definition at line 179 of file Hist1DProjImp.cxx. |
|
If object is the target of normalization, removes the target and sets normalization off.
Reimplemented from hippodraw::Observer. Reimplemented in DyHist1DProjector, DyHist2DProjector, Profile2DProjector, and ProfileProjector. Definition at line 354 of file BinningProjector.cxx. References ProjectorBase::m_target, ProjectorBase::setDirty(), and BinningProjector::setNormalizing(). Referenced by ProfileProjector::willDelete(), Profile2DProjector::willDelete(), DyHist2DProjector::willDelete(), and DyHist1DProjector::willDelete(). |
|
|
Vector of acceptable PointReps.
Definition at line 98 of file ProjectorBase.h. Referenced by StripChartProjector::addPointReps(), ProfileProjector::addPointReps(), Profile2DProjector::addPointReps(), MapMatrixProjector::addPointReps(), Map3Projector::addPointReps(), Map2Projector::addPointReps(), Map1Projector::addPointReps(), Hist2DProjImp::addPointReps(), Hist1DProjImp::addPointReps(), and ProjectorBase::getPointReps(). |
|
The NTuple representing the result of the projection.
Definition at line 73 of file ProjectorBase.h. Referenced by BinningProjector::BinningProjector(), ProfileProjector::dataRangeOn(), Profile2DProjector::dataRangeOn(), Hist2DProjImp::dataRangeOnValue(), Hist1DProjImp::dataRangeOnValue(), DyHist1DProjector::getAverage(), ProfileProjector::getPosOn(), ProjectorBase::getProjectedValues(), Map3Projector::getZValue(), MapMatrixProjector::prepareValues(), Map3Projector::prepareValues(), Map2Projector::prepareValues(), Map1Projector::prepareValues(), LineProjector::prepareValues(), FunctionProjector::prepareValues(), BinningProjector::prepareValues(), BinningProjector::setBinner(), and ProjectorBase::~ProjectorBase(). |
|
The target projector. Use of the target depends on derived classes. Target projector are observed, thus some of the implement is define in this base class. Reimplemented in FunctionProjector. Definition at line 104 of file ProjectorBase.h. Referenced by BinningProjector::normalize(), BinningProjector::normalizeTo(), BinningProjector::update(), and BinningProjector::willDelete(). |
|
The title of the histogram.
Definition at line 33 of file StHist1DProjector.h. Referenced by getTitle(). |
|
The
All
Definition at line 82 of file ProjectorBase.h. Referenced by LineProjector::dataRangeOn(), FunctionProjector::dataRangeOn(), LineProjector::fillDataSource(), LineProjector::fillProjectedValues(), ProjectorBase::getAxisModel(), LineProjector::getPosOn(), ProjectorBase::getRange(), Map3Projector::getZValue(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), Map1Projector::inRange(), FunctionProjector::prepareAxis(), ProjectorBase::setAxisModel(), FunctionProjector::setAxisModel(), Profile2DProjector::setOffset(), Hist2DProjImp::setOffset(), BinningProjector::setOffset(), ProfileProjector::setRange(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), Hist1DProjImp::setRange(), FunctionProjector::setRange(), and LineProjector::valueRange(). |
|
The label of the x axis.
Definition at line 36 of file StHist1DProjector.h. Referenced by getXLabel(). |
|
The
All Definition at line 86 of file ProjectorBase.h. Referenced by Hist1DProjImp::checkScaling(), LineProjector::dataRangeOn(), FunctionProjector::dataRangeOn(), LineProjector::fillDataSource(), LineProjector::fillProjectedValues(), getAverage(), DyHist1DProjector::getAverage(), ProjectorBase::getAxisModel(), LineProjector::getPosOn(), ProjectorBase::getRange(), DyHist1DProjector::getYLabel(), Map3Projector::getZValue(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), Map1Projector::inRange(), FunctionProjector::prepareAxis(), ProjectorBase::setAxisModel(), FunctionProjector::setAxisModel(), Profile2DProjector::setOffset(), Hist2DProjImp::setOffset(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), FunctionProjector::setRange(), and LineProjector::valueRange(). |
|
The label of the y axis. It depends on the bin Width. Definition at line 39 of file StHist1DProjector.h. Referenced by getYLabel(), setYLabel(), and StHist1DProjector(). |
|
The label of the y axis when axis is not scaled. When the axis is not scaled, the values of the ticks are the density. Definition at line 38 of file Hist1DProjImp.h. Referenced by DyHist1DProjector::getYLabel(), and Hist1DProjImp::Hist1DProjImp(). |
|
The label of the y axis when axis is scaled. When the axis is scaled, the values of the ticks appear to be number of entries per bin instead of the true density. Definition at line 34 of file Hist1DProjImp.h. Referenced by DyHist1DProjector::getYLabel(), Hist1DProjImp::Hist1DProjImp(), and setYLabel(). |
|
The May not be used by all Projectors. Definition at line 90 of file ProjectorBase.h. Referenced by Hist2DProjImp::checkScaling(), StHist2DProjector::getAverage(), ProjectorBase::getAxisModel(), ProjectorBase::getRange(), Hist2DProjImp::getZLabel(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), ProjectorBase::setAxisModel(), and ProjectorBase::setRange(). |
|
Dummy member so that getZLabel can return a reference.
Reimplemented in FunctionProjector, and StHist2DProjector. Definition at line 95 of file ProjectorBase.h. Referenced by ProjectorBase::getZLabel(). |