A derived class of Hist2DProjImp and NTupleProjector that reads two columns of data and projects them to a two dimensional histogram. More...
#include <DyHist2DProjector.h>
Public Types | |
typedef void(Observer::* | Action )(const Observable *) |
The member function of the Observer that is called. | |
typedef std::list< Observer * > | ObserverList_t |
The type of STL container to maintain list of Observer objects. |
Public Member Functions | |
bool | acceptRow (unsigned int i, const CutList_t &cut_list) const |
For row i of the column in the DataSource, returns true if all the cuts accept the row. | |
virtual void | addCut (const TupleCut *cut) |
Adds the cut to the list of cuts. | |
void | addObserver (Observer *) |
Adds an Observer to the Observer list. | |
virtual void | addValues (const std::vector< double > &v) |
Add values to the projection. | |
virtual const std::vector < std::string > & | bindingOptions () const |
Returns a vector of strings describing the binding options. | |
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 data source representing the binned values. | |
virtual NTuple * | createNTupleWith (const std::vector< TupleCut > &cut_list) const |
Creates a NTuple from the projector's DataSource object using cut_list for not including rows that do not pass the cuts. | |
virtual NTuple * | createNTupleWith (const std::vector< TupleCut > &cut_list) const |
Creates a NTuple from the projector's DataSource object using cut_list for not including rows that do not pass the cuts. | |
virtual const DataSource * | createOldStyleNTuple () const |
virtual Range | dataRangeOn (hippodraw::Axes::Type) const |
Returns the range of data on the specified axis. | |
DyHist2DProjector () | |
The default constructor. | |
void | execute () |
Projects the data source into bins. | |
virtual void | fillColumnAfterCuts (const std::string &column, std::vector< double > &columnData) const |
Fill a vector with the data from the named column with the current set of cuts applied. | |
virtual void | fillColumnAfterCuts (const std::string &column, std::vector< double > &columnData) const |
Fill the vector with values from named column with the present set of cuts applied. | |
virtual double | getAverage (Axes::Type axis) const |
Get the Average of all projected values on the specified axis. | |
virtual double | getAverage (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 current axis bindings. | |
virtual const std::vector < std::string > & | getAxisBindings () const |
Returns the axis bindings. | |
virtual AxisModelBase * | getAxisModel (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. | |
const std::vector< const TupleCut * > & | getCutList () const |
Returns the list of TupleCut objects used by this projector. | |
virtual int | getMinEntries () |
Get the minimum entries/bin. | |
virtual const DataSource * | getNTuple () const |
Returns the DataSource used by the projector. | |
virtual DataSource * | getNTuple () |
Returns the DataSource used by the projector. | |
virtual NTuple * | getNTupleAfterCuts () const |
Template for projectors that can return subsets of the NTuple used by the DataRep. | |
virtual NTuple * | getNTupleAfterCuts () const |
Template for projectors that can return subsets of the NTuple used by the DataRep. | |
virtual const std::string & | getNTupleName () const |
Returns the name of the DataSource used by this projector. | |
virtual int | getNumberOfBins (hippodraw::Axes::Type axis) const |
Returns the number of bins. | |
int | getNumberOfEntries () const |
Returns the number of entries in to the projected values list. | |
virtual int | getNumberOfEntries () const =0 |
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. | |
virtual int | getOverflow () const |
Returns the number of overflow. | |
virtual int | getOverflow () const =0 |
Returns the number of overflow. | |
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 DataSource representation of projected values. | |
virtual const Range & | getRange (Axes::Type) const |
Returns the Range along the specified axis. | |
virtual double | getRMS (Axes::Type axis) |
Returns the RMS. | |
const std::vector< unsigned int > & | getShape () |
Get the shape of the projected values. | |
virtual const std::string & | getTitle () const =0 |
Finds the title of the plot. | |
virtual const std::string & | getTitle () const |
Finds the title of the plot. | |
virtual int | getUnderflow () const |
Returns the number of underflow. | |
virtual int | getUnderflow () const =0 |
Returns the number of underflow. | |
virtual const std::string & | getXLabel () const |
Finds the X axis label of the plot. | |
virtual const std::string & | getXLabel () const =0 |
Finds the X axis label of the plot. | |
virtual const std::string & | getYLabel (bool flag=false) const |
Finds the Y axis label of the plot. | |
virtual const std::string & | getYLabel (bool flag=false) const =0 |
Finds the Y axis label of the plot. | |
const std::vector< double > & | getZAfterTransform (TransformBase *transform) |
Return Z values after binary transform. | |
const std::string & | getZLabel () const |
Returns the label (title) of the z axis. | |
virtual double | getZValue (double x, double y) const |
Get the z value at the specified point (x,y). | |
const std::vector< double > & | getZValues () |
Return all Z values. | |
virtual bool | hasDataSourceBindings () const |
Returns true . | |
virtual bool | hasDataSourceBindings () const |
Returns true if projector has binding to a DataSource. | |
virtual bool | hasZAxis () const |
A test function. | |
virtual int | indexOf (const std::string &label) const |
Returns the index of the label. | |
virtual int | indexOf (const std::string &label) const |
Returns the index of the label. | |
unsigned int | indexOfBindingOption (const std::string &axis) const |
Returns an index to the binding option. | |
virtual bool | inRange (int row) const |
Checks if the entries in a given row are within the range of the axis model. | |
virtual bool | isAxisBinned (const std::string &axis) const |
Returns true if the destined axis is "X" or "Y", otherwise returns false . | |
bool | isDataValid () const |
Returns true if all the data in the bound DataSource is valid. | |
bool | isDirty () const |
Returns true if the projector has been marked dirty. | |
virtual bool | isEmpty () const =0 |
Returns true if the data source used by this projector is empty. | |
virtual bool | isEmpty () const |
Returns true if the data source used by this projector is empty. | |
virtual bool | isImageConvertable () const |
Returns true if projected values are convertable to image. | |
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 (double number) |
Sets a scale factor on the output so that the number of entries appears to be number. | |
virtual void | normalizeTo (const ProjectorBase *target) |
Normalize the output of the receiving object's projected values to that of target. | |
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. | |
virtual void | removeCut (const TupleCut *cut) |
Removes the cut from the cut list. | |
void | removeObserver (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 | 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 | setAxisBindings (const std::vector< std::string > &labels) |
Sets the axis bindings, Sets, in the order of the binding options, the binding to the DataSource by labels contained in labels. | |
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 const Range & | setBinWidth (hippodraw::Axes::Type axis, int parm, bool dragging) |
Sets the bin width. | |
virtual const Range & | setBinWidth (hippodraw::Axes::Type axis, double v) |
This function sets the binWidth. | |
virtual void | setDirty (bool value=true) |
Sets the dirty flag to value. | |
virtual void | setMinEntries (int entries) |
Set the minimum entries/bin. | |
virtual void | setNormalizing (bool on) |
Sets the scaling number of entries on if on is true , otherwise turns if off. | |
virtual void | setNTuple (const DataSource *source) |
Changes the DataSource used for the projections to source. | |
virtual void | setNumberOfBins (Axes::Type axis, unsigned int number) |
Sets the number of bins. | |
virtual void | setOffset (const std::string &axis, int parm, bool dragging) |
Sets the bin offset. | |
virtual void | setOffset (hippodraw::Axes::Type axis, double v) |
Sets the bin offset. | |
virtual void | setRange (hippodraw::Axes::Type axis, bool) |
Sets the range of the selected axis. | |
virtual void | setXErrorOption (bool enable) |
Sets whether the X error options are to be enabled or not. | |
virtual void | setYErrorOption (bool enable) |
Sets whether the Y error options are to be enabled or not. | |
virtual void | update (const Observable *object) |
Implements Observer pattern. | |
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 Z axis. | |
virtual void | willDelete (const Observable *object) |
Implements Observer pattern. |
Protected Member Functions | |
virtual void | addPointReps () |
Function to add the acceptable point reps. | |
virtual void | changedNTuple () |
This function is called when the ntuple has been changed to a new one. | |
virtual void | checkScaling () |
Checks the axis scaling. | |
Range | dataRange (int column) const |
Returns the range of data on the specified column. | |
Range | dataRangeOnValue () const |
Returns the data range on the Z axis. | |
Range | dataRangeWithError (int data, int error) const |
Returns a range considering both data and error. | |
DyHist2DProjector (const DyHist2DProjector &projector) | |
The copy constructor. | |
virtual void | fillDataSource (DataSource *ntuple, bool in_range=false) const |
double | getPos (int column) const |
Returns the minimum positive value on the specified column. | |
double | getPosOnValue () const |
Returns the smallest positive value on the Y axis. | |
double | getPosWithError (int data, int error) const |
Returns the minimum positive values considering both data and error. | |
void | notifyObservers (Action action) const |
An internal method to iterate over all observers and to send the message action. | |
void | setAxisBinding (int axis, const std::string &label) |
Sets the axis binding for axis binding option to the column with label label. | |
void | setZLabel () |
Sets the variable so that it can be modified. |
Protected Attributes | |
std::vector< std::string > | m_binding_options |
The list of binding options for the Projector. | |
std::vector< std::string > | m_bindings |
The list of current bindings. | |
BinsBase * | m_binner |
The binner object. | |
std::vector< unsigned int > | m_columns |
A vector containing indexes to the columns of the DataSource. | |
CutList_t | m_cut_list |
A list of cuts that filter the projection. | |
unsigned int | m_min_bindings |
The minimum number of columns that must be bound. | |
const DataSource * | m_ntuple |
The pointer to the data source being projected. | |
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. | |
AxisModelBase * | m_z_axis |
The AxisModel along the Z axis. | |
std::string | m_z_label |
Dummy member so that getZLabel can return a reference. | |
std::vector< double > | m_zval |
Sorted Z values in this projector. |
Private Attributes | |
Range | m_value_range |
The range of the accumulated values. | |
std::string | m_z_label_density |
The label of the z axis when displaying density. | |
std::string | m_z_label_entries |
The label of the z axis when displaying number of entries per bin. |
A derived class of Hist2DProjImp and NTupleProjector that reads two columns of data and projects them to a two dimensional histogram.
A NTuple is created with projected values for presentation to clients.
Definition at line 33 of file DyHist2DProjector.h.
|
inherited |
The member function of the Observer that is called.
Definition at line 86 of file Observable.h.
|
inherited |
The type of STL container to maintain list of Observer objects.
Definition at line 45 of file Observable.h.
|
protected |
The copy constructor.
Definition at line 53 of file DyHist2DProjector.cxx.
The default constructor.
Definition at line 38 of file DyHist2DProjector.cxx.
References NTupleProjector::m_binding_options, and NTupleProjector::m_min_bindings.
Referenced by DyHist2DProjector::clone().
|
inherited |
For row i of the column in the DataSource, returns true
if all the cuts accept the row.
Definition at line 159 of file NTupleProjector.cxx.
References NTupleProjector::m_ntuple, and num_util::size().
Referenced by ProfileProjector::execute(), DyHist1DProjector::execute(), Profile2DProjector::execute(), DyHist2DProjector::execute(), NTupleProjector::fillColumnAfterCuts(), NTupleProjector::fillNTuple(), StripChartProjector::fillProjectedValues(), Map2Projector::fillProjectedValues(), Map3Projector::fillProjectedValues(), MeshProjector::fillProjectedValues(), Map1Projector::fillProjectedValues(), MapMatrixProjector::fillProjectedValues(), DyHist1DProjector::getAverage(), NTupleProjector::getAverage(), and NTupleProjector::getNumberOfEntries().
|
virtualinherited |
Adds the cut to the list of cuts.
Definition at line 351 of file NTupleProjector.cxx.
References NTupleProjector::m_cut_list.
Referenced by CutController::linkCutAndRep().
|
inherited |
Adds an Observer to the Observer list.
Definition at line 52 of file Observable.cxx.
Referenced by CutPlotter::addCutTarget(), XyPlotter::addDataRep(), FunctionRep::FunctionRep(), BinningProjector::normalizeTo(), DataRepController::setAxisBindings(), CutPlotter::setNTuple(), DisplayController::setNTuple(), and TextPlotter::setParentDataRep().
|
protectedvirtualinherited |
Function to add the acceptable point reps.
Implements ProjectorBase.
Definition at line 218 of file Hist2DProjImp.cxx.
References ProjectorBase::m_pointreps.
Referenced by Hist2DProjImp::Hist2DProjImp().
|
virtualinherited |
Add values to the projection.
This method is provided as convenience for derived classes that respond to it. The implementation in this class does nothing.
Reimplemented in StHist2DProjector, and StHist1DProjector.
Definition at line 330 of file ProjectorBase.cxx.
|
virtualinherited |
Returns a vector of strings describing the binding options.
Definition at line 97 of file NTupleProjector.cxx.
References NTupleProjector::m_binding_options.
Referenced by DataRepController::bindingOptions().
|
protectedvirtual |
This function is called when the ntuple has been changed to a new one.
The column indexes are checked for validity and set to the last column if they are invalid. If the weight index is invalid, it is set to negative.
Implements NTupleProjector.
Definition at line 68 of file DyHist2DProjector.cxx.
References DataSource::columns(), BinningProjector::m_binner, NTupleProjector::m_columns, NTupleProjector::m_ntuple, and BinsBase::setDirty().
|
protectedvirtualinherited |
Checks the axis scaling.
If bins are all same width, then sets the Z axis scale factor. Otherwise, turns off the scale factor on the Z axis.
Reimplemented from BinningProjector.
Definition at line 202 of file Hist2DProjImp.cxx.
References BinsBase::hasEqualWidths(), BinningProjector::m_binner, ProjectorBase::m_z_axis, BinsBase::scaleFactor(), AxisModelBase::setScaleFactor(), and AxisModelBase::setScaling().
Referenced by DyHist2DProjector::setBinnerRange(), StHist2DProjector::setBinnerRange(), and Hist2DProjImp::setBinWidth().
|
virtual |
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 63 of file DyHist2DProjector.cxx.
References DyHist2DProjector::DyHist2DProjector().
|
virtualinherited |
Returns an data source representing the binned values.
Implements ProjectorBase.
Definition at line 233 of file BinningProjector.cxx.
References BinsBase::createNTuple(), and BinningProjector::m_binner.
Referenced by BinningProjector::BinningProjector(), and BinningProjector::setBinner().
Creates a NTuple from the projector's DataSource object using cut_list for not including rows that do not pass the cuts.
Reimplemented from ProjectorBase.
Definition at line 565 of file NTupleProjector.cxx.
References NTupleProjector::createEmptyNTuple(), and NTupleProjector::fillNTuple().
Creates a NTuple from the projector's DataSource object using cut_list for not including rows that do not pass the cuts.
Reimplemented in NTupleProjector.
Definition at line 356 of file ProjectorBase.cxx.
|
virtualinherited |
Definition at line 378 of file ProjectorBase.cxx.
References ProjectorBase::getProjectedValues(), and ProjectorBase::prepareValues().
|
protectedinherited |
Returns the range of data on the specified column.
The range may need to be calculated.
Definition at line 291 of file NTupleProjector.cxx.
References DataSource::columns(), NTupleProjector::m_is_valid, and NTupleProjector::m_ntuple.
Referenced by ProfileProjector::dataRangeOn(), Map3Projector::dataRangeOn(), DyHist2DProjector::dataRangeOn(), Map2Projector::dataRangeOn(), DyHist1DProjector::dataRangeOn(), Profile2DProjector::dataRangeOn(), Map1Projector::dataRangeOn(), EqualEntriesHist1DProjector::dataRangeOn(), MeshProjector::dataRangeOn(), EqualEntriesHist1DProjector::prepareValues(), and Map3Projector::valueRange().
|
virtual |
Returns the range of data on the specified axis.
The range may need to be calculated.
Implements NTupleProjector.
Definition at line 114 of file DyHist2DProjector.cxx.
References NTupleProjector::dataRange(), Hist2DProjImp::dataRangeOnValue(), NTupleProjector::m_columns, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
|
protectedinherited |
Returns the data range on the Z axis.
Definition at line 110 of file Hist2DProjImp.cxx.
References ProjectorBase::m_proj_values, BinningProjector::prepareValues(), and hippodraw::Axes::Z.
Referenced by StHist2DProjector::dataRangeOn(), DyHist2DProjector::dataRangeOn(), and Hist2DProjImp::getPosOnValue().
|
protectedinherited |
Returns a range considering both data and error.
Definition at line 266 of file NTupleProjector.cxx.
References DataSource::columns(), NTupleProjector::getPosWithError(), NTupleProjector::m_ntuple, and num_util::size().
Referenced by Map2Projector::dataRangeOn(), Map1Projector::dataRangeOn(), and MeshProjector::dataRangeOn().
|
virtual |
Projects the data source into bins.
Reimplemented from BinningProjector.
Definition at line 77 of file DyHist2DProjector.cxx.
References NTupleProjector::acceptRow(), BinsBase::accumulate(), BinningProjector::m_binner, NTupleProjector::m_columns, NTupleProjector::m_cut_list, NTupleProjector::m_ntuple, BinsBase::reset(), and num_util::size().
|
virtualinherited |
Fill a vector with the data from the named column with the current set of cuts applied.
Reimplemented from ProjectorBase.
Definition at line 550 of file NTupleProjector.cxx.
References NTupleProjector::acceptRow(), DataSource::getColumn(), NTupleProjector::m_cut_list, NTupleProjector::m_ntuple, and DataSource::rows().
|
virtualinherited |
Fill the vector with values from named column with the present set of cuts applied.
This default implementation does nothing.
Reimplemented in NTupleProjector.
Definition at line 349 of file ProjectorBase.cxx.
Referenced by DataRep::fillColumnAfterCuts().
|
protectedvirtualinherited |
Definition at line 240 of file BinningProjector.cxx.
References BinningProjector::m_binner.
Referenced by BinningProjector::BinningProjector(), and BinningProjector::prepareValues().
|
virtualinherited |
Get the Average of all projected values on the specified axis.
Reimplemented from ProjectorBase.
Reimplemented in MapMatrixProjector, Map1Projector, EqualEntriesHist1DProjector, and DyHist1DProjector.
Definition at line 450 of file NTupleProjector.cxx.
References NTupleProjector::acceptRow(), NTupleProjector::getNTuple(), ProjectorBase::getRange(), NTupleProjector::getXLabel(), NTupleProjector::getYLabel(), ProjectorBase::getZLabel(), Range::includes(), NTupleProjector::indexOf(), NTupleProjector::m_cut_list, NTupleProjector::m_ntuple, num_util::size(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
|
virtualinherited |
Get the Average of all projected values on the specified axis.
Reimplemented in NTupleProjector, MapMatrixProjector, StHist2DProjector, Map1Projector, EqualEntriesHist1DProjector, DyHist1DProjector, and StHist1DProjector.
Definition at line 278 of file ProjectorBase.cxx.
Referenced by AverageTextRep::drawProjectedValues().
|
virtualinherited |
Returns the current axis bindings.
Returns the label for each column to which the projector is bound. If column is not bound, returns the string "nil" for that column.
Reimplemented from ProjectorBase.
Definition at line 124 of file NTupleProjector.cxx.
References DataSource::getLabelAt(), NTupleProjector::m_bindings, NTupleProjector::m_columns, NTupleProjector::m_ntuple, and num_util::size().
Referenced by DisplayController::axisBindings(), and NTupleProjectorXML::createElement().
|
virtualinherited |
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 VariableMesh::setAxisBindings(), and XYPlot::setAxisBindings().
|
virtualinherited |
Get the AxisModel for axis axis.
Definition at line 211 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().
|
inherited |
Returns reference to BinsBase object used by this projector.
Definition at line 80 of file BinningProjector.cxx.
References BinningProjector::m_binner.
Referenced by BinningProjectorXML::createChildren().
|
virtualinherited |
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 203 of file BinningProjector.cxx.
References BinsBase::binWidth(), BinningProjector::m_binner, BinningProjector::m_binner_dim, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
|
inherited |
Returns the list of TupleCut objects used by this projector.
Definition at line 365 of file NTupleProjector.cxx.
References NTupleProjector::m_cut_list.
Referenced by CutController::connectDataRep(), and NTupleProjectorXML::createChildren().
|
virtualinherited |
Get the minimum entries/bin.
Reimplemented from ProjectorBase.
Definition at line 334 of file BinningProjector.cxx.
References BinningProjector::m_binner.
|
virtualinherited |
Returns the DataSource used by the projector.
Definition at line 430 of file NTupleProjector.cxx.
References NTupleProjector::m_ntuple.
Referenced by NTupleProjectorXML::createElement(), DyHist1DProjector::getAverage(), NTupleProjector::getAverage(), and DisplayController::getDataSourceLabels().
|
virtualinherited |
Returns the DataSource used by the projector.
Definition at line 438 of file NTupleProjector.cxx.
References NTupleProjector::m_ntuple.
|
virtualinherited |
Template for projectors that can return subsets of the NTuple used by the DataRep.
Reimplemented from ProjectorBase.
Definition at line 540 of file NTupleProjector.cxx.
References NTupleProjector::createEmptyNTuple(), NTupleProjector::fillNTuple(), and NTupleProjector::m_cut_list.
|
virtualinherited |
Template for projectors that can return subsets of the NTuple used by the DataRep.
Reimplemented in NTupleProjector.
Definition at line 342 of file ProjectorBase.cxx.
Referenced by DataRep::getNTupleAfterCuts().
|
virtualinherited |
Returns the name of the DataSource used by this projector.
Definition at line 443 of file NTupleProjector.cxx.
References DataSource::getName(), and NTupleProjector::m_ntuple.
|
virtualinherited |
Returns the number of bins.
Returns number of bins if axis is binned, otherwise returns 0.
Reimplemented from ProjectorBase.
Definition at line 116 of file BinningProjector.cxx.
References BinningProjector::m_binner, BinningProjector::m_binner_dim, BinsBase::numberOfBins(), hippodraw::Axes::X, and hippodraw::Axes::Y.
|
virtualinherited |
Returns the number of entries in to the projected values list.
Implements ProjectorBase.
Definition at line 372 of file NTupleProjector.cxx.
References NTupleProjector::acceptRow(), NTupleProjector::inRange(), NTupleProjector::m_cut_list, NTupleProjector::m_ntuple, DataSource::rows(), and num_util::size().
|
pure virtualinherited |
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.
Implemented in NTupleProjector, FunctionProjector, StHist2DProjector, StHist1DProjector, and LineProjector.
Referenced by TotalTextRep::drawProjectedValues(), BinningProjector::normalize(), and QtDisplay::numberOfEntries().
|
inherited |
Returns the list of observers.
Definition at line 60 of file Observable.cxx.
|
virtualinherited |
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 188 of file BinningProjector.cxx.
References BinsBase::getOffset(), BinningProjector::m_binner, BinningProjector::m_binner_dim, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
|
virtualinherited |
Returns the number of overflow.
It is meaningless.
Implements ProjectorBase.
Reimplemented in DyHist1DProjector, and EqualEntriesHist1DProjector.
Definition at line 396 of file NTupleProjector.cxx.
|
pure virtualinherited |
Returns the number of overflow.
Implemented in NTupleProjector, FunctionProjector, DyHist1DProjector, StHist2DProjector, EqualEntriesHist1DProjector, StHist1DProjector, and LineProjector.
Referenced by OverflowTextRep::drawProjectedValues().
|
inherited |
Return the vector of Point Reps.
Definition at line 335 of file ProjectorBase.cxx.
References ProjectorBase::m_pointreps.
|
protectedinherited |
Returns the minimum positive value on the specified column.
Definition at line 333 of file NTupleProjector.cxx.
References DataSource::columns(), NTupleProjector::m_ntuple, and num_util::size().
Referenced by ProfileProjector::getPosOn(), Map3Projector::getPosOn(), DyHist2DProjector::getPosOn(), Map2Projector::getPosOn(), Profile2DProjector::getPosOn(), DyHist1DProjector::getPosOn(), Map1Projector::getPosOn(), EqualEntriesHist1DProjector::getPosOn(), MeshProjector::getPosOn(), and MapMatrixProjector::getPosOn().
|
virtual |
Returns the minimum positive value of the data on a specified axis.
Implements ProjectorBase.
Definition at line 128 of file DyHist2DProjector.cxx.
References NTupleProjector::getPos(), NTupleProjector::m_columns, Range::pos(), Hist2DProjImp::valueRange(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
|
protectedinherited |
Returns the smallest positive value on the Y axis.
Definition at line 86 of file Hist2DProjImp.cxx.
References Hist2DProjImp::dataRangeOnValue(), and Range::pos().
Referenced by StHist2DProjector::getPosOn().
|
protectedinherited |
Returns the minimum positive values considering both data and error.
Definition at line 304 of file NTupleProjector.cxx.
References DataSource::columns(), NTupleProjector::m_ntuple, and num_util::size().
Referenced by NTupleProjector::dataRangeWithError(), Map2Projector::getPosOn(), Map1Projector::getPosOn(), MeshProjector::getPosOn(), and MapMatrixProjector::getPosOn().
|
inherited |
Returns DataSource representation of projected values.
Definition at line 371 of file ProjectorBase.cxx.
References ProjectorBase::m_proj_values.
Referenced by BinningProjectorXML::createChildren(), ProjectorBase::createOldStyleNTuple(), StHist1DProjector::getAverage(), Map1Projector::getAverage(), StHist2DProjector::getAverage(), MapMatrixProjector::getAverage(), ProjectorBase::getRMS(), ProjectorBase::getShape(), ProjectorBase::getZValues(), and FunctionProjector::initializeFunction().
|
virtualinherited |
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(), FunctionProjector::dataRangeOn(), LineProjector::fillProjectedValues(), DyHist1DProjector::getAverage(), NTupleProjector::getAverage(), LineProjector::getPosOn(), MeshProjector::inRangeWithZ(), MapMatrixProjector::inRangeWithZ(), MapMatrixProjector::setBinWidth(), ProjectorBase::setBinWidth(), and LineProjector::valueRange().
|
virtualinherited |
Returns the RMS.
Returns the root mean square of the data points along the axis axis.
Definition at line 289 of file ProjectorBase.cxx.
References ProjectorBase::getProjectedValues(), ProjectorHelper::stdCoord(), and hippodraw::Axes::X.
|
inherited |
Get the shape of the projected values.
Used to export FITS file.
Definition at line 444 of file ProjectorBase.cxx.
References ProjectorBase::getProjectedValues(), and DataSource::getShape().
Referenced by ProjectorBase::getZValues().
|
pure virtualinherited |
Finds the title of the plot.
Implemented in NTupleProjector, FunctionProjector, StHist2DProjector, StHist1DProjector, and LineProjector.
|
virtualinherited |
Finds the title of the plot.
This implementation gets the title from the DataSource.
Implements ProjectorBase.
Definition at line 251 of file NTupleProjector.cxx.
References NTupleProjector::m_ntuple, and DataSource::title().
|
virtualinherited |
Returns the number of underflow.
It is meaningless.
Implements ProjectorBase.
Reimplemented in DyHist1DProjector, and EqualEntriesHist1DProjector.
Definition at line 389 of file NTupleProjector.cxx.
|
pure virtualinherited |
Returns the number of underflow.
Implemented in NTupleProjector, FunctionProjector, DyHist1DProjector, StHist2DProjector, EqualEntriesHist1DProjector, StHist1DProjector, and LineProjector.
Referenced by UnderflowTextRep::drawProjectedValues().
|
virtualinherited |
Finds the X axis label of the plot.
A plotter may ask the projector for the default label.
Implements ProjectorBase.
Reimplemented in MapMatrixProjector, and Map1Projector.
Definition at line 256 of file NTupleProjector.cxx.
References DataSource::getLabelAt(), NTupleProjector::m_columns, and NTupleProjector::m_ntuple.
Referenced by DyHist1DProjector::getAverage(), and NTupleProjector::getAverage().
|
pure virtualinherited |
Finds the X axis label of the plot.
A plotter may ask the projector for the default label.
Implemented in NTupleProjector, MapMatrixProjector, FunctionProjector, Map1Projector, StHist2DProjector, StHist1DProjector, and LineProjector.
Referenced by CompositePlotter::getLabel().
|
virtualinherited |
Finds the Y axis label of the plot.
Derived classes should return a label for the Y axis that is meaningful for the kind of projection. The argument flag can be used to distinguish between two possible labels, depending on some state of the projector.
Implements ProjectorBase.
Reimplemented in MapMatrixProjector, Map1Projector, EqualEntriesHist1DProjector, and DyHist1DProjector.
Definition at line 261 of file NTupleProjector.cxx.
References DataSource::getLabelAt(), NTupleProjector::m_columns, and NTupleProjector::m_ntuple.
Referenced by NTupleProjector::getAverage().
|
pure virtualinherited |
Finds the Y axis label of the plot.
Derived classes should return a label for the Y axis that is meaningful for the kind of projection. The argument flag can be used to distinguish between two possible labels, depending on some state of the projector.
Implemented in NTupleProjector, MapMatrixProjector, FunctionProjector, Map1Projector, EqualEntriesHist1DProjector, StHist2DProjector, DyHist1DProjector, StHist1DProjector, and LineProjector.
Referenced by CompositePlotter::getLabel().
|
inherited |
Return Z values after binary transform.
Definition at line 456 of file ProjectorBase.cxx.
References ProjectorBase::getZValue(), BinaryTransform::inverseTransform(), and ProjectorBase::m_zval.
|
virtualinherited |
Returns the label (title) of the z axis.
Reimplemented from ProjectorBase.
Definition at line 189 of file Hist2DProjImp.cxx.
References AxisModelBase::isScaling(), ProjectorBase::m_z_axis, Hist2DProjImp::m_z_label_density, and Hist2DProjImp::m_z_label_entries.
|
virtualinherited |
Get the z value at the specified point (x,y).
Reimplemented from ProjectorBase.
Definition at line 226 of file BinningProjector.cxx.
References BinsBase::getZValue(), and BinningProjector::m_binner.
|
inherited |
Return all Z values.
Definition at line 423 of file ProjectorBase.cxx.
References DataSource::getColumn(), ProjectorBase::getProjectedValues(), ProjectorBase::getShape(), ProjectorBase::m_zval, and num_util::shape().
|
virtualinherited |
Returns true
.
Returns true
as this projector or derived classes form it have DataSource binding.
Reimplemented from ProjectorBase.
Definition at line 587 of file NTupleProjector.cxx.
|
virtualinherited |
Returns true
if projector has binding to a DataSource.
This base class implementation returns false
. Derived classes that have DataSource binding should override this member function and return true
.
Reimplemented in NTupleProjector.
Definition at line 518 of file ProjectorBase.cxx.
Referenced by BinningProjectorXML::createChildren().
|
virtualinherited |
A test function.
Definition at line 197 of file Hist2DProjImp.cxx.
|
virtualinherited |
Returns the index of the label.
For example, the column index.
Reimplemented from ProjectorBase.
Definition at line 144 of file NTupleProjector.cxx.
References DataSource::indexOf(), and NTupleProjector::m_ntuple.
Referenced by DyHist1DProjector::getAverage(), and NTupleProjector::getAverage().
|
virtualinherited |
Returns the index of the label.
For example, the column index.
Reimplemented in NTupleProjector.
Definition at line 309 of file ProjectorBase.cxx.
|
inherited |
Returns an index to the binding option.
The parameter axis should match one of the strings returned by binding Options(). If not, an assertion is made.
Definition at line 103 of file NTupleProjector.cxx.
References NTupleProjector::m_binding_options.
Referenced by NTupleProjector::setAxisBinding().
|
virtualinherited |
Checks if the entries in a given row are within the range of the axis model.
Reimplemented in MapMatrixProjector, Map1Projector, and MeshProjector.
Definition at line 404 of file NTupleProjector.cxx.
References Range::excludes(), AxisModelBase::getRange(), NTupleProjector::m_columns, NTupleProjector::m_ntuple, ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, ProjectorBase::m_z_axis, and num_util::size().
Referenced by StripChartProjector::fillProjectedValues(), Map2Projector::fillProjectedValues(), Map3Projector::fillProjectedValues(), and NTupleProjector::getNumberOfEntries().
|
virtual |
Returns true
if the destined axis is "X" or "Y", otherwise returns false
.
Reimplemented from ProjectorBase.
Definition at line 105 of file DyHist2DProjector.cxx.
References NTupleProjector::m_binding_options.
|
inherited |
Returns true
if all the data in the bound DataSource is valid.
Definition at line 580 of file NTupleProjector.cxx.
References NTupleProjector::m_is_valid.
|
inherited |
Returns true
if the projector has been marked dirty.
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 Profile2DProjector::dataRangeOn(), DataRep::isDirty(), Map2Projector::prepareValues(), MeshProjector::prepareValues(), BinningProjector::prepareValues(), MapMatrixProjector::prepareValues(), and Profile2DProjector::valueRange().
|
pure virtualinherited |
Returns true
if the data source used by this projector is empty.
Returns true
if the data source used by this projector is empty, otherwise returns true
. The data source is empty, i.e. has no data, then many member functions of this class can not respond with meaning full results.
Implemented in NTupleProjector, FunctionProjector, StHist2DProjector, LineProjector, and StHist1DProjector.
Referenced by DataRep::hasZeroRows().
|
virtualinherited |
Returns true
if the data source used by this projector is empty.
Returns true
if the data source used by this projector is empty, otherwise returns true
. The data source is empty, i.e. has no data, then many member functions of this class can not respond with meaning full results.
Implements ProjectorBase.
Definition at line 503 of file NTupleProjector.cxx.
References NTupleProjector::m_ntuple.
|
virtualinherited |
Returns true
if projected values are convertable to image.
Returns true
if number of binned axis is equal to two and if bins have equal widths on both axes, otherwise returns false.
Reimplemented from ProjectorBase.
Definition at line 341 of file BinningProjector.cxx.
References BinningProjector::m_binner, and BinningProjector::m_binner_dim.
|
virtualinherited |
Returns true
as the projected value is the result of accumulation into bins.
Reimplemented from ProjectorBase.
Definition at line 79 of file Hist2DProjImp.cxx.
|
virtualinherited |
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.
|
virtualinherited |
Normalizes the projector to its target.
Definition at line 286 of file BinningProjector.cxx.
References ProjectorBase::getNumberOfEntries(), ProjectorBase::m_target, hippodraw::Numeric::norm(), BinningProjector::normalizeTo(), and ProjectorBase::setDirty().
Referenced by BinningProjector::normalizeTo(), and BinningProjector::update().
|
virtualinherited |
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 entries by normalizing one to the other.
Reimplemented from ProjectorBase.
Definition at line 247 of file BinningProjector.cxx.
References BinningProjector::m_binner.
Referenced by BinningProjector::normalize().
|
virtualinherited |
Normalize the output of the receiving object's projected values to that of target.
Reimplemented from ProjectorBase.
Definition at line 263 of file BinningProjector.cxx.
References Observable::addObserver(), ProjectorBase::isValueBinned(), ProjectorBase::m_target, BinningProjector::normalize(), Observable::removeObserver(), and BinningProjector::setNormalizing().
|
virtualinherited |
Notifies Observer objects of a change.
If interval counting is disabled, then Observer::Update is sent immediately. If interval counting is enabled, then the current count is incremented. If the current count is equal to the interval count, then the Observer::update message is sent and the current count reset to 0.
Reimplemented in NTuple, RootNTuple, NumArrayTuple, ListTuple, and FitsNTuple.
Definition at line 93 of file Observable.cxx.
References Observer::update().
Referenced by XyPlotter::addDataRep(), XyPlotter::addDataRepStacked(), FunctionController::addFunctionRep(), StHist1DProjector::addValues(), StHist2DProjector::addValues(), XyPlotter::autoScale(), Inspector::contourLevelsTextBox_returnPressed(), Inspector::contourSlider_valueChanged(), Inspector::contourTextBox_returnPressed(), FunctionRep::fitFunction(), XyPlotter::removeDataRep(), FunctionRep::restoreParameters(), DataRep::set(), CutPlotter::setActive(), PlotterBase::setAspectRatio(), XyPlotter::setAutoRanging(), XyPlotter::setBoxEdge(), QtDisplay::setContourLevels(), CutPlotter::setCutColor(), XyPlotter::setCutEnabled(), XyPlotter::setCutInverted(), XyPlotter::setCutRangeAt(), ProjectorBase::setDirty(), DataRep::setErrorDisplay(), XyPlotter::setHighRange(), PlotterBase::setLabel(), XyPlotter::setLabel(), DataSource::setLabelAt(), DataSource::setLabels(), XyPlotter::setLowRange(), DataSource::setName(), DisplayController::setNTuple(), FunctionRep::setParameters(), DyHistogram::setPointRep(), DyHistogramEqualEntries::setPointRep(), DataRep::setPointRep(), TextPlotter::setRepColor(), DataRep::setRepColor(), DataRep::setRepSize(), DataRep::setRepStyle(), XyPlotter::setReverse(), XyPlotter::setScaling(), XyPlotter::setShowGrid(), DataSource::setTitle(), PlotterBase::setTitle(), XyPlotter::setTransform(), XyPlotter::setValueRep(), NTupleProjector::update(), BinningProjector::update(), DataRep::update(), PlotterBase::update(), CutPlotter::update(), CutPlotter::updateTargets(), DataRep::~DataRep(), DataSource::~DataSource(), PlotterBase::~PlotterBase(), and RTuple::~RTuple().
|
protectedinherited |
An internal method to iterate over all observers and to send the message action.
Definition at line 72 of file Observable.cxx.
|
virtualinherited |
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 96 of file Hist2DProjImp.cxx.
References ProjectorBase::dataRangeOn(), Range::setLow(), and hippodraw::Axes::Z.
|
virtualinherited |
Prepares the projector for plotting by executing, if needed, the binning procedure.
Reimplemented from ProjectorBase.
Definition at line 68 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(), Hist1DProjImp::dataRangeOnValue(), Hist2DProjImp::dataRangeOnValue(), StHist1DProjector::getAverage(), StHist2DProjector::getAverage(), and Profile2DProjector::valueRange().
|
virtualinherited |
Removes the cut from the cut list.
Definition at line 356 of file NTupleProjector.cxx.
References NTupleProjector::m_cut_list.
|
inherited |
Removes an Observer from the Observer list.
Definition at line 66 of file Observable.cxx.
Referenced by BinningProjector::normalizeTo(), CutPlotter::removeFromTarget(), DisplayController::removeTextObservers(), NTupleProjector::setNTuple(), FunctionRep::willDelete(), FunctionRep::~FunctionRep(), and NTupleProjector::~NTupleProjector().
|
virtualinherited |
Resets the bins.
This interface is for the StHist1DProjector
Reimplemented from ProjectorBase.
Reimplemented in StHist1DProjector, and Hist1DProjImp.
Definition at line 182 of file BinningProjector.cxx.
|
protectedinherited |
Sets the axis binding for axis binding option to the column with label label.
If the label doesn't exist in the data source, then the axis becomes unbound.
Definition at line 183 of file NTupleProjector.cxx.
References DataSource::indexOf(), NTupleProjector::m_columns, NTupleProjector::m_is_valid, NTupleProjector::m_ntuple, and ProjectorBase::setDirty().
Referenced by NTupleProjector::setAxisBinding(), and NTupleProjector::setAxisBindings().
|
virtualinherited |
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.
|
virtualinherited |
Sets the axis binding.
The parameter axis should match one of the strings returned by bindingOptions(). The parameter label should match one of the column labels of the DataSource. If not, the corresponding axis becomes unbound.
Reimplemented from ProjectorBase.
Definition at line 197 of file NTupleProjector.cxx.
References NTupleProjector::indexOfBindingOption(), and NTupleProjector::setAxisBinding().
|
virtualinherited |
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.
|
virtualinherited |
Sets the axis bindings, Sets, in the order of the binding options, the binding to the DataSource by labels contained in labels.
If labels does not contain sufficient number of entries, the remaining bindings are unset.
Reimplemented from ProjectorBase.
Definition at line 207 of file NTupleProjector.cxx.
References NTupleProjector::m_columns, NTupleProjector::m_is_valid, NTupleProjector::m_min_bindings, NTupleProjector::setAxisBinding(), and num_util::size().
Referenced by CutPlotter::setAxisBinding(), and DisplayController::setAxisBindings().
|
virtualinherited |
Sets the AxisModel for axis axis.
Reimplemented from ProjectorBase.
Definition at line 62 of file BinningProjector.cxx.
References BinningProjector::checkScaling().
|
inherited |
Sets the contents of the bins from the data source.
Definition at line 319 of file BinningProjector.cxx.
References BinningProjector::m_binner.
|
inherited |
Sets the BinsBase object to be used by this projector.
Definition at line 87 of file BinningProjector.cxx.
References BinningProjector::createNTuple(), BinningProjector::m_binner, and ProjectorBase::m_proj_values.
Referenced by BinningProjectorXML::getObject().
|
virtualinherited |
Sets the bin edge calculator to binner on axis axis.
Definition at line 97 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().
|
virtual |
Sets the Range of the binner.
Sets the Range of the BinsBase object for axes axis to range. If const_width is true
, the bin width is not changed, otherwise it changes to keep the same number of bins.
Implements BinningProjector.
Definition at line 171 of file DyHist2DProjector.cxx.
References Hist2DProjImp::checkScaling(), BinningProjector::m_binner, ProjectorBase::setDirty(), and Hist2DProjImp::setRange().
|
virtual |
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 true
, otherwise it is false. A derived class determines withs own bin width based on the width it had when slider dragging first started. and the current position of the slider. The implementation in this base class does nothing.
Reimplemented from BinningProjector.
Definition at line 142 of file DyHist2DProjector.cxx.
References BinsBase::calcBinWidth(), and BinningProjector::m_binner.
|
virtualinherited |
This function sets the binWidth.
It is needed when the HippoDraw user wants to manually change the bin size.
Reimplemented from BinningProjector.
Definition at line 155 of file Hist2DProjImp.cxx.
References Hist2DProjImp::checkScaling(), BinningProjector::m_binner, BinsBase::setBinWidth(), ProjectorBase::setDirty(), hippodraw::Axes::X, and hippodraw::Axes::Y.
|
virtualinherited |
Sets the dirty flag to value.
Definition at line 75 of file ProjectorBase.cxx.
References ProjectorBase::m_isDirty, and Observable::notifyObservers().
Referenced by StHist1DProjector::addValues(), StHist2DProjector::addValues(), Profile2DProjector::dataRangeOn(), FunctionProjector::fitFunction(), StHist1DProjector::getAverage(), StHist2DProjector::getAverage(), BinningProjector::normalize(), LineProjector::prepareValues(), Map3Projector::prepareValues(), Map2Projector::prepareValues(), MeshProjector::prepareValues(), Map1Projector::prepareValues(), EqualEntriesHist1DProjector::prepareValues(), BinningProjector::prepareValues(), ProjectorBase::prepareValues(), MapMatrixProjector::prepareValues(), StHist1DProjector::reset(), FunctionProjector::restoreParameters(), NTupleProjector::setAxisBinding(), BinningProjector::setBinnerOn(), ProfileProjector::setBinnerRange(), DyHist2DProjector::setBinnerRange(), DyHist1DProjector::setBinnerRange(), StHist1DProjector::setBinnerRange(), StHist2DProjector::setBinnerRange(), Profile2DProjector::setBinnerRange(), BinningProjector::setBinWidth(), Hist2DProjImp::setBinWidth(), Profile2DProjector::setBinWidth(), EqualEntriesHist1DProjector::setBinWidth(), DataRep::setDirty(), BinningProjector::setMinEntries(), MapMatrixProjector::setNTuple(), NTupleProjector::setNTuple(), DyHist2DProjector::setOffset(), BinningProjector::setOffset(), Hist2DProjImp::setOffset(), Profile2DProjector::setOffset(), FunctionProjector::setParameters(), Profile2DProjector::setRange(), FunctionProjector::setRange(), ProjectorBase::setRange(), NTupleProjector::update(), and BinningProjector::willDelete().
|
virtualinherited |
Set the minimum entries/bin.
Reimplemented from ProjectorBase.
Definition at line 326 of file BinningProjector.cxx.
References BinningProjector::m_binner, and ProjectorBase::setDirty().
|
virtualinherited |
Sets the scaling number of entries on if on is true
, otherwise turns if off.
Reimplemented from ProjectorBase.
Definition at line 254 of file BinningProjector.cxx.
References BinningProjector::m_binner.
Referenced by BinningProjector::normalizeTo(), and BinningProjector::willDelete().
|
virtualinherited |
Changes the DataSource used for the projections to source.
The column indexes remain the same if the new DataSource has at least as many columns as the old. Any indexes exceeding the number of columns of the new DataSource are reset to 0.
Reimplemented in MapMatrixProjector.
Definition at line 231 of file NTupleProjector.cxx.
References NTupleProjector::changedNTuple(), DataSource::isNull(), NTupleProjector::m_is_valid, NTupleProjector::m_ntuple, Observable::removeObserver(), and ProjectorBase::setDirty().
Referenced by DataRepController::setAxisBindings(), CutPlotter::setNTuple(), and DisplayController::setNTuple().
|
virtualinherited |
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 228 of file ProjectorBase.cxx.
Referenced by CompositePlotter::setNumberOfBins().
|
virtual |
Sets the bin offset.
Reimplemented from BinningProjector.
Definition at line 151 of file DyHist2DProjector.cxx.
References BinsBase::calcOffset(), hippodraw::Axes::convert(), BinningProjector::m_binner, ProjectorBase::setDirty(), hippodraw::Axes::X, and hippodraw::Axes::Y.
|
virtualinherited |
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 BinningProjector.
Definition at line 169 of file Hist2DProjImp.cxx.
References BinsBase::getRange(), BinningProjector::m_binner, ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, ProjectorBase::setDirty(), BinsBase::setOffset(), AxisModelBase::setRange(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
|
virtualinherited |
Sets the range of the selected axis.
Reimplemented from ProjectorBase.
Definition at line 130 of file Hist2DProjImp.cxx.
References ProjectorBase::getPosOn(), AxisModelBase::getRange(), Range::high(), AxisModelBase::isLog(), Range::low(), ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, BinningProjector::setBinnerRange(), AxisModelBase::setRange(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
Referenced by DyHist2DProjector::setBinnerRange(), and StHist2DProjector::setBinnerRange().
|
virtualinherited |
Sets whether the X error options are to be enabled or not.
This base class implementation does nothing.
Reimplemented in MeshProjector, and Map2Projector.
Definition at line 149 of file NTupleProjector.cxx.
|
virtualinherited |
Sets whether the Y error options are to be enabled or not.
This base class implementation does nothing.
Reimplemented in MeshProjector, Map1Projector, and Map2Projector.
Definition at line 153 of file NTupleProjector.cxx.
|
protectedinherited |
Sets the variable so that it can be modified.
Definition at line 184 of file Hist2DProjImp.cxx.
References Hist2DProjImp::m_z_label_entries.
|
virtual |
Implements Observer pattern.
Receives the update from the Observable object and directs it to either BinningProject::update or NTupleProjector::update depending on class of object.
Reimplemented from NTupleProjector.
Definition at line 183 of file DyHist2DProjector.cxx.
|
virtualinherited |
Finds the range of the projected values.
The range of the accumulated bins is returned.
Implements ProjectorBase.
Definition at line 122 of file Hist2DProjImp.cxx.
References ProjectorBase::dataRangeOn(), and hippodraw::Axes::Z.
Referenced by DyHist2DProjector::getPosOn().
|
virtualinherited |
Returns true
if axis is the Z axis.
Reimplemented from ProjectorBase.
Definition at line 227 of file Hist2DProjImp.cxx.
|
virtual |
Implements Observer pattern.
Receives the willDelete from the Observable object and directs it to either BinningProjector::update or NTupleProjector::update depending on the class of object.
Reimplemented from NTupleProjector.
Definition at line 198 of file DyHist2DProjector.cxx.
|
protectedinherited |
The list of binding options for the Projector.
The binding refers to a connection to the data. For example, a 1D histogram binds to one axis and the option might be "X", while a scatter plot binds to two axes with the options "X" and "Y". The binding option is maintained as a string
which can be interpreted by derived classes in various ways. For example, a DataSource projector could take the string as a label for a column. Derived classes should initialize this data member in their constructor.
Definition at line 77 of file NTupleProjector.h.
Referenced by NTupleProjector::bindingOptions(), DyHist1DProjector::DyHist1DProjector(), DyHist2DProjector::DyHist2DProjector(), EqualEntriesHist1DProjector::EqualEntriesHist1DProjector(), NTupleProjector::indexOfBindingOption(), ProfileProjector::isAxisBinned(), DyHist2DProjector::isAxisBinned(), DyHist1DProjector::isAxisBinned(), EqualEntriesHist1DProjector::isAxisBinned(), Profile2DProjector::isAxisBinned(), Map1Projector::Map1Projector(), Map2Projector::Map2Projector(), Map3Projector::Map3Projector(), MapMatrixProjector::MapMatrixProjector(), MeshProjector::MeshProjector(), NTupleProjector::NTupleProjector(), Profile2DProjector::Profile2DProjector(), ProfileProjector::ProfileProjector(), Map2Projector::setXErrorOption(), MeshProjector::setXErrorOption(), Map2Projector::setYErrorOption(), Map1Projector::setYErrorOption(), and MeshProjector::setYErrorOption().
|
mutableprotectedinherited |
The list of current bindings.
Definition at line 80 of file NTupleProjector.h.
Referenced by NTupleProjector::getAxisBindings().
|
protectedinherited |
The binner object.
Some derived classes need a BinsBase object to accumulate data before the projection can be accomplished. Such classes should create the appropriate type of binner and store a pointer to it here. A null pointer value signals that the derived class projector does not need a binner.
Definition at line 51 of file BinningProjector.h.
Referenced by StHist1DProjector::addValues(), StHist2DProjector::addValues(), BinningProjector::BinningProjector(), ProfileProjector::changedNTuple(), Profile2DProjector::changedNTuple(), DyHist2DProjector::changedNTuple(), DyHist1DProjector::changedNTuple(), Hist2DProjImp::checkScaling(), Hist1DProjImp::checkScaling(), BinningProjector::createNTuple(), StHist1DProjector::dataRangeOn(), StHist2DProjector::dataRangeOn(), ProfileProjector::execute(), DyHist1DProjector::execute(), Profile2DProjector::execute(), DyHist2DProjector::execute(), BinningProjector::fillDataSource(), BinningProjector::getBinner(), BinningProjector::getBinWidth(), BinningProjector::getMinEntries(), BinningProjector::getNumberOfBins(), StHist1DProjector::getNumberOfEntries(), StHist2DProjector::getNumberOfEntries(), BinningProjector::getOffset(), StHist1DProjector::getOverflow(), StHist2DProjector::getOverflow(), DyHist1DProjector::getOverflow(), StHist1DProjector::getUnderflow(), StHist2DProjector::getUnderflow(), DyHist1DProjector::getUnderflow(), BinningProjector::getZValue(), Hist1DProjImp::Hist1DProjImp(), Hist2DProjImp::Hist2DProjImp(), BinningProjector::isImageConvertable(), BinningProjector::normalizeTo(), Profile2DProjector::Profile2DProjector(), ProfileProjector::ProfileProjector(), StHist1DProjector::reset(), BinningProjector::setBinContents(), BinningProjector::setBinner(), BinningProjector::setBinnerOn(), ProfileProjector::setBinnerRange(), DyHist2DProjector::setBinnerRange(), DyHist1DProjector::setBinnerRange(), StHist1DProjector::setBinnerRange(), StHist2DProjector::setBinnerRange(), Profile2DProjector::setBinnerRange(), BinningProjector::setBinWidth(), DyHist2DProjector::setBinWidth(), Hist2DProjImp::setBinWidth(), Profile2DProjector::setBinWidth(), BinningProjector::setMinEntries(), BinningProjector::setNormalizing(), DyHist2DProjector::setOffset(), BinningProjector::setOffset(), Hist2DProjImp::setOffset(), Profile2DProjector::setOffset(), ProfileProjector::setRange(), Hist1DProjImp::setRange(), and BinningProjector::~BinningProjector().
|
protectedinherited |
A vector containing indexes to the columns of the DataSource.
The value UINT_MAX indicates that the column is not bound. Derived classes use these indexes in conjunction with m_binding_options.
Definition at line 86 of file NTupleProjector.h.
Referenced by Map3Projector::changedNTuple(), MeshProjector::changedNTuple(), Map2Projector::changedNTuple(), ProfileProjector::changedNTuple(), Profile2DProjector::changedNTuple(), DyHist2DProjector::changedNTuple(), Map1Projector::changedNTuple(), DyHist1DProjector::changedNTuple(), EqualEntriesHist1DProjector::changedNTuple(), MapMatrixProjector::changedNTuple(), Map3Projector::createNTuple(), Map2Projector::createNTuple(), MeshProjector::createNTuple(), MapMatrixProjector::createNTuple(), ProfileProjector::dataRangeOn(), Map3Projector::dataRangeOn(), DyHist2DProjector::dataRangeOn(), Map2Projector::dataRangeOn(), DyHist1DProjector::dataRangeOn(), Profile2DProjector::dataRangeOn(), Map1Projector::dataRangeOn(), EqualEntriesHist1DProjector::dataRangeOn(), MeshProjector::dataRangeOn(), ProfileProjector::execute(), DyHist1DProjector::execute(), Profile2DProjector::execute(), DyHist2DProjector::execute(), StripChartProjector::fillProjectedValues(), Map2Projector::fillProjectedValues(), Map3Projector::fillProjectedValues(), MeshProjector::fillProjectedValues(), Map1Projector::fillProjectedValues(), EqualEntriesHist1DProjector::fillProjectedValues(), MapMatrixProjector::fillProjectedValues(), NTupleProjector::getAxisBindings(), ProfileProjector::getPosOn(), Map3Projector::getPosOn(), DyHist2DProjector::getPosOn(), Map2Projector::getPosOn(), Profile2DProjector::getPosOn(), DyHist1DProjector::getPosOn(), Map1Projector::getPosOn(), EqualEntriesHist1DProjector::getPosOn(), MeshProjector::getPosOn(), MapMatrixProjector::getPosOn(), NTupleProjector::getXLabel(), Map1Projector::getYLabel(), NTupleProjector::getYLabel(), Map3Projector::getZLabel(), Profile2DProjector::getZLabel(), MapMatrixProjector::getZLabel(), MapMatrixProjector::getZValue(), Map1Projector::inRange(), NTupleProjector::inRange(), MeshProjector::inRangeWithZ(), MapMatrixProjector::inRangeWithZ(), MeshProjector::preferredRange(), MapMatrixProjector::preferredRange(), EqualEntriesHist1DProjector::prepareValues(), NTupleProjector::setAxisBinding(), NTupleProjector::setAxisBindings(), Map2Projector::setXErrorOption(), MeshProjector::setXErrorOption(), Map2Projector::setYErrorOption(), Map1Projector::setYErrorOption(), MeshProjector::setYErrorOption(), and Map3Projector::valueRange().
|
protectedinherited |
A list of cuts that filter the projection.
Definition at line 89 of file NTupleProjector.h.
Referenced by NTupleProjector::addCut(), ProfileProjector::execute(), DyHist1DProjector::execute(), Profile2DProjector::execute(), DyHist2DProjector::execute(), NTupleProjector::fillColumnAfterCuts(), StripChartProjector::fillProjectedValues(), Map2Projector::fillProjectedValues(), Map3Projector::fillProjectedValues(), MeshProjector::fillProjectedValues(), Map1Projector::fillProjectedValues(), MapMatrixProjector::fillProjectedValues(), DyHist1DProjector::getAverage(), NTupleProjector::getAverage(), NTupleProjector::getCutList(), NTupleProjector::getNTupleAfterCuts(), NTupleProjector::getNumberOfEntries(), and NTupleProjector::removeCut().
|
protectedinherited |
The minimum number of columns that must be bound.
The minimum number of columns that must be bound. This member must be set by derived class according to its needs. The default setting is zero.
Definition at line 100 of file NTupleProjector.h.
Referenced by DyHist1DProjector::DyHist1DProjector(), DyHist2DProjector::DyHist2DProjector(), EqualEntriesHist1DProjector::EqualEntriesHist1DProjector(), Map1Projector::Map1Projector(), Map2Projector::Map2Projector(), Map3Projector::Map3Projector(), MapMatrixProjector::MapMatrixProjector(), MeshProjector::MeshProjector(), Profile2DProjector::Profile2DProjector(), ProfileProjector::ProfileProjector(), and NTupleProjector::setAxisBindings().
|
protectedinherited |
The pointer to the data source being projected.
It is a pointer because the same data can be shared by multiple projectors.
Definition at line 93 of file NTupleProjector.h.
Referenced by NTupleProjector::acceptRow(), EqualEntriesHist1DProjector::adjustNumberOfBins(), Map3Projector::changedNTuple(), MeshProjector::changedNTuple(), Map2Projector::changedNTuple(), ProfileProjector::changedNTuple(), Profile2DProjector::changedNTuple(), Map1Projector::changedNTuple(), DyHist2DProjector::changedNTuple(), DyHist1DProjector::changedNTuple(), EqualEntriesHist1DProjector::changedNTuple(), MapMatrixProjector::changedNTuple(), NTupleProjector::createEmptyNTuple(), Map3Projector::createNTuple(), Map2Projector::createNTuple(), MeshProjector::createNTuple(), MapMatrixProjector::createNTuple(), NTupleProjector::dataRange(), Map1Projector::dataRangeOn(), NTupleProjector::dataRangeWithError(), ProfileProjector::execute(), DyHist1DProjector::execute(), Profile2DProjector::execute(), DyHist2DProjector::execute(), NTupleProjector::fillColumnAfterCuts(), NTupleProjector::fillNTuple(), StripChartProjector::fillProjectedValues(), Map2Projector::fillProjectedValues(), Map3Projector::fillProjectedValues(), MeshProjector::fillProjectedValues(), Map1Projector::fillProjectedValues(), EqualEntriesHist1DProjector::fillProjectedValues(), MapMatrixProjector::fillProjectedValues(), NTupleProjector::getAverage(), NTupleProjector::getAxisBindings(), NTupleProjector::getNTuple(), NTupleProjector::getNTupleName(), NTupleProjector::getNumberOfEntries(), NTupleProjector::getPos(), Map1Projector::getPosOn(), NTupleProjector::getPosWithError(), NTupleProjector::getTitle(), NTupleProjector::getXLabel(), Map1Projector::getYLabel(), NTupleProjector::getYLabel(), Map3Projector::getZLabel(), Profile2DProjector::getZLabel(), MapMatrixProjector::getZLabel(), MapMatrixProjector::getZValue(), NTupleProjector::indexOf(), Map1Projector::inRange(), NTupleProjector::inRange(), MeshProjector::inRangeWithZ(), MapMatrixProjector::inRangeWithZ(), NTupleProjector::isEmpty(), NTupleProjector::NTupleProjector(), MeshProjector::preferredRange(), MapMatrixProjector::preferredRange(), NTupleProjector::setAxisBinding(), NTupleProjector::setNTuple(), NTupleProjector::willDelete(), and NTupleProjector::~NTupleProjector().
|
protectedinherited |
Vector of acceptable PointReps.
Definition at line 104 of file ProjectorBase.h.
Referenced by StripChartProjector::addPointReps(), MeshProjector::addPointReps(), Map2Projector::addPointReps(), ProfileProjector::addPointReps(), Map3Projector::addPointReps(), Hist1DProjImp::addPointReps(), Map1Projector::addPointReps(), Hist2DProjImp::addPointReps(), EqualEntriesHist1DProjector::addPointReps(), Profile2DProjector::addPointReps(), MapMatrixProjector::addPointReps(), and ProjectorBase::getPointReps().
|
protectedinherited |
The NTuple representing the result of the projection.
Definition at line 80 of file ProjectorBase.h.
Referenced by BinningProjector::BinningProjector(), ProfileProjector::dataRangeOn(), Profile2DProjector::dataRangeOn(), MeshProjector::dataRangeOnValue(), Hist1DProjImp::dataRangeOnValue(), Hist2DProjImp::dataRangeOnValue(), EqualEntriesHist1DProjector::dataRangeOnValue(), MapMatrixProjector::dataRangeOnValue(), DyHist1DProjector::getAverage(), ProfileProjector::getPosOn(), ProjectorBase::getProjectedValues(), MeshProjector::getZLabel(), Map3Projector::getZValue(), MeshProjector::getZValue(), LineProjector::prepareValues(), Map3Projector::prepareValues(), Map2Projector::prepareValues(), MeshProjector::prepareValues(), Map1Projector::prepareValues(), EqualEntriesHist1DProjector::prepareValues(), BinningProjector::prepareValues(), MapMatrixProjector::prepareValues(), BinningProjector::setBinner(), and ProjectorBase::~ProjectorBase().
|
protectedinherited |
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.
Definition at line 110 of file ProjectorBase.h.
Referenced by BinningProjector::normalize(), BinningProjector::normalizeTo(), BinningProjector::update(), and BinningProjector::willDelete().
|
mutableprivate |
The range of the accumulated values.
Definition at line 46 of file DyHist2DProjector.h.
|
protectedinherited |
The AxisModel
along the X axis.
All Projectors
have at least an X axis and maybe additional ones.
Definition at line 88 of file ProjectorBase.h.
Referenced by LineProjector::dataRangeOn(), FunctionProjector::dataRangeOn(), LineProjector::fillProjectedValues(), ProjectorBase::getAxisModel(), LineProjector::getPosOn(), ProjectorBase::getRange(), Map3Projector::getZValue(), Map1Projector::inRange(), NTupleProjector::inRange(), MeshProjector::inRangeWithZ(), MapMatrixProjector::inRangeWithZ(), ProjectorBase::setAxisModel(), ProjectorBase::setBinWidth(), BinningProjector::setOffset(), Hist2DProjImp::setOffset(), Profile2DProjector::setOffset(), ProfileProjector::setRange(), Hist1DProjImp::setRange(), Hist2DProjImp::setRange(), Profile2DProjector::setRange(), and LineProjector::valueRange().
|
protectedinherited |
The AxisModel
along the Y axis.
All Projectors
have at least a Y axis and maybe additional ones.
Definition at line 92 of file ProjectorBase.h.
Referenced by Hist1DProjImp::checkScaling(), LineProjector::dataRangeOn(), FunctionProjector::dataRangeOn(), LineProjector::fillProjectedValues(), StHist1DProjector::getAverage(), DyHist1DProjector::getAverage(), ProjectorBase::getAxisModel(), LineProjector::getPosOn(), ProjectorBase::getRange(), DyHist1DProjector::getYLabel(), Map3Projector::getZValue(), Map1Projector::inRange(), NTupleProjector::inRange(), MeshProjector::inRangeWithZ(), MapMatrixProjector::inRangeWithZ(), ProjectorBase::setAxisModel(), Hist2DProjImp::setOffset(), Profile2DProjector::setOffset(), Hist2DProjImp::setRange(), Profile2DProjector::setRange(), and LineProjector::valueRange().
|
protectedinherited |
The AxisModel
along the Z axis.
May not be used by all Projectors.
Definition at line 96 of file ProjectorBase.h.
Referenced by Hist2DProjImp::checkScaling(), FunctionProjector::dataRangeOn(), StHist2DProjector::getAverage(), ProjectorBase::getAxisModel(), ProjectorBase::getRange(), Hist2DProjImp::getZLabel(), NTupleProjector::inRange(), MeshProjector::inRangeWithZ(), MapMatrixProjector::inRangeWithZ(), ProjectorBase::setAxisModel(), and ProjectorBase::setRange().
|
protectedinherited |
Dummy member so that getZLabel can return a reference.
Definition at line 101 of file ProjectorBase.h.
Referenced by ProjectorBase::getZLabel().
|
private |
The label of the z axis when displaying density.
Definition at line 43 of file DyHist2DProjector.h.
|
private |
The label of the z axis when displaying number of entries per bin.
Definition at line 40 of file DyHist2DProjector.h.
|
mutableprotectedinherited |
Sorted Z values in this projector.
Used to export FITS file.
Definition at line 119 of file ProjectorBase.h.
Referenced by ProjectorBase::getZAfterTransform(), and ProjectorBase::getZValues().