Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
MeshProjector Class Reference

A derived class of NTupleProjector that maps 3 DataSource columns to a two dimensional mesh projection. More...

#include <MeshProjector.h>

Inheritance diagram for MeshProjector:
Inheritance graph
[legend]
Collaboration diagram for MeshProjector:
Collaboration graph
[legend]

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.
virtual void checkScaling ()
 Checks for scaling the display of the axis range.
ProjectorBaseclone ()
 The clone function returns an object of its own kind which is a copy of this object at this moment.
virtual DataSourcecreateNTuple () const
 Creates an NTuple representation of the projected values.
virtual NTuplecreateNTupleWith (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 DataSourcecreateOldStyleNTuple () const
virtual Range dataRangeOn (hippodraw::Axes::Type) const
 Returns the range of the data on the specified axis.
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 fillProjectedValues (DataSource *ntuple, bool in_range=false) const
 Fills the DataSource the projected values.
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 AxisModelBasegetAxisModel (Axes::Type axis) const
 Get the AxisModel for axis axis.
virtual double getBinWidth (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 DataSourcegetNTuple () const
 Returns the DataSource used by the projector.
virtual DataSourcegetNTuple ()
 Returns the DataSource used by the projector.
virtual NTuplegetNTupleAfterCuts () 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 (Axes::Type) const
 Returns the number of bins.
int getNumberOfEntries () const
 Returns the number of entries in to the projected values list.
const ObserverList_tgetObservers () const
 Returns the list of observers.
virtual double getOffset (Axes::Type axis) const
 Returns the offset of the axis.
virtual int getOverflow () const
 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 DataSourcegetProjectedValues () const
 Returns DataSource representation of projected values.
virtual const RangegetRange (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
 Finds the title of the plot.
virtual int getUnderflow () const
 Returns the number of underflow.
virtual const std::string & getXLabel () const
 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.
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 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 isAxisBinned (const std::string &axis) const
 Returns true if specified axis is binned.
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
 Returns true if the data source used by this projector is empty.
virtual bool isImageConvertable () const
 Returns true if the projected values can converted to an image.
virtual bool isValueBinned () const
 Returns true if the projected values are the result of binning.
virtual void matrixTranspose (bool yes)
 Transposes the X and Y axis.
 MeshProjector ()
 This default constructor binds to the first two columns.
virtual void normalizeTo (const ProjectorBase *target)
 Sets the target of normalization.
virtual void normalizeTo (double norm)
 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 axis) const
 Returns the preferred Range on the given axis.
virtual void prepareValues ()
 Informs the projector to prepare its projected values for plotting.
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 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 (Axes::Type axis, AxisModelBase *)
 Sets the AxisModel for axis axis.
virtual const RangesetBinWidth (Axes::Type axis, double width)
 Sets the bin width.
virtual const RangesetBinWidth (Axes::Type axis, int parm, bool dragging)
 Sets the bin width.
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 (Axes::Type axis, double offset)
 Sets the bin offset.
virtual void setRange (Axes::Type axis, bool const_width=true)
 Sets the range of the selected axis.
virtual void setXErrorOption (bool enable)
 Sets whether the X width options are to be enabled or not.
virtual void setYErrorOption (bool enable)
 Sets whether the Y width options are to be enabled or not.
virtual void update (const Observable *)
 Responds to update message from the data source.
virtual Range valueRange () const
 Finds the range of the projected values.
virtual bool wantsScaleFactor (const std::string &axis) const
 Returns whether the projector wants scale factor.
virtual void willDelete (const Observable *)
 Responds to willDelete message from the observed data source.
virtual ~MeshProjector ()
 The destructor.

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.
Range dataRange (int column) const
 Returns the range of data on the specified column.
Range dataRangeOnValue () const
 Returns the Range of the projected values.
Range dataRangeWithError (int data, int error) const
 Returns a range considering both data and error.
double getPos (int column) const
 Returns the minimum positive value on the specified column.
double getPosWithError (int data, int error) const
 Returns the minimum positive values considering both data and error.
virtual bool inRange (int row) const
 Returns true if value at row is within range on all axis.
bool inRangeWithZ (int row, bool flag) const
 Returns true if value at row is within range.
 MeshProjector (const MeshProjector &projector)
 The copy constructor.
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.

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.
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 DataSourcem_ntuple
 The pointer to the data source being projected.
std::vector< std::string > m_pointreps
 Vector of acceptable PointReps.
DataSourcem_proj_values
 The NTuple representing the result of the projection.
const ProjectorBasem_target
 The target projector.
AxisModelBasem_x_axis
 The AxisModel along the X axis.
AxisModelBasem_y_axis
 The AxisModel along the Y axis.
AxisModelBasem_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

std::string m_x_option
 The label for the X width binding option.
std::string m_y_option
 The label for the Y width binding option.

Detailed Description

A derived class of NTupleProjector that maps 3 DataSource columns to a two dimensional mesh projection.

Optionally, additional columns can be mapped to X and Y widths of the mesh. A DataSource is created with the projected values for presentation to clients.

Author
Paul F. Kunz Paul_.nosp@m.Kunz.nosp@m.@slac.nosp@m..sta.nosp@m.nford.nosp@m..edu

Definition at line 28 of file MeshProjector.h.

Member Typedef Documentation

typedef void( Observer::* Action)(const Observable *)
inherited

The member function of the Observer that is called.

Definition at line 86 of file Observable.h.

typedef std::list< Observer * > ObserverList_t
inherited

The type of STL container to maintain list of Observer objects.

Definition at line 45 of file Observable.h.

Constructor & Destructor Documentation

MeshProjector ( const MeshProjector projector)
protected

The copy constructor.

Note
Must initialize with the copy constructor of ProjectorBase here, otherise the default constructor will be used. This is because it is a virtual base class of the inherited classes.

Definition at line 62 of file MeshProjector.cxx.

References MeshProjector::addPointReps().

This default constructor binds to the first two columns.

Definition at line 43 of file MeshProjector.cxx.

References MeshProjector::addPointReps(), NTupleProjector::m_binding_options, and NTupleProjector::m_min_bindings.

Referenced by MeshProjector::clone().

~MeshProjector ( )
virtual

The destructor.

Definition at line 71 of file MeshProjector.cxx.

Member Function Documentation

bool acceptRow ( unsigned int  i,
const CutList_t cut_list 
) const
inherited
void addCut ( const TupleCut cut)
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().

void addObserver ( hippodraw::Observer observer)
inherited
void addPointReps ( )
protectedvirtual

Function to add the acceptable point reps.

Implements ProjectorBase.

Definition at line 196 of file MeshProjector.cxx.

References ProjectorBase::m_pointreps.

Referenced by MeshProjector::MeshProjector().

void addValues ( const std::vector< double > &  v)
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.

const vector< string > & bindingOptions ( ) const
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().

void changedNTuple ( )
protectedvirtual

This function is called when the ntuple has been changed to a new one.

The X and Y axis indexes are checked for validity and reset to the last column if invalid. The X and Y error indexes are checked for validity and reset to negative if they are invalid.

Implements NTupleProjector.

Definition at line 115 of file MeshProjector.cxx.

References DataSource::columns(), NTupleProjector::m_columns, and NTupleProjector::m_ntuple.

void checkScaling ( )
virtualinherited

Checks for scaling the display of the axis range.

This base class implementation does nothing. Derived classes should override this method if scaling of the axis is meaningful to them.

Reimplemented in Hist1DProjImp, BinningProjector, and Hist2DProjImp.

Definition at line 416 of file ProjectorBase.cxx.

ProjectorBase * clone ( )
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 75 of file MeshProjector.cxx.

References MeshProjector::MeshProjector().

DataSource * createNTuple ( ) const
virtual

Creates an NTuple representation of the projected values.

Derived classes should create a representation appropriate for their projection. They should at least include the coordinates, the width of the coordinates, the value and the error on the value.

Implements ProjectorBase.

Definition at line 203 of file MeshProjector.cxx.

References MeshProjector::fillProjectedValues(), NTupleProjector::m_columns, NTupleProjector::m_ntuple, NTuple::setLabels(), hippodraw::DataPoint2DTuple::SIZE, num_util::size(), hippodraw::DataPoint3DTuple::XWIDTH, and hippodraw::DataPoint3DTuple::YWIDTH.

Referenced by MeshProjector::prepareValues().

NTuple * createNTupleWith ( const std::vector< TupleCut > &  cut_list) const
virtualinherited

Creates a NTuple from the projector's DataSource object using cut_list for not including rows that do not pass the cuts.

Note
This base class implementation returns a null pointer.

Reimplemented from ProjectorBase.

Definition at line 565 of file NTupleProjector.cxx.

References NTupleProjector::createEmptyNTuple(), and NTupleProjector::fillNTuple().

const DataSource * createOldStyleNTuple ( ) const
virtualinherited
Range dataRange ( int  column) const
protectedinherited
Range dataRangeOn ( hippodraw::Axes::Type  axis) const
virtual

Returns the range of the data on the specified axis.

The range may need to be calculated.

Implements NTupleProjector.

Definition at line 132 of file MeshProjector.cxx.

References NTupleProjector::dataRange(), MeshProjector::dataRangeOnValue(), NTupleProjector::dataRangeWithError(), NTupleProjector::m_columns, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.

Referenced by MeshProjector::valueRange().

Range dataRangeOnValue ( ) const
protected

Returns the Range of the projected values.

Definition at line 159 of file MeshProjector.cxx.

References ProjectorBase::m_proj_values, MeshProjector::prepareValues(), and hippodraw::Axes::Z.

Referenced by MeshProjector::dataRangeOn().

Range dataRangeWithError ( int  data,
int  error 
) const
protectedinherited
void fillColumnAfterCuts ( const std::string &  column,
std::vector< double > &  columnData 
) const
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().

void fillProjectedValues ( DataSource ntuple,
bool  in_range = false 
) const
virtual

Fills the DataSource the projected values.

Fills the DataSource with the projected values from the data in the bound columns. If either the x-error or y-error columns are not bound, and the DataSource has columns that match one created by projector with width and error columns, then take that data points as the projected values.

See Also
DataPoint2DTuple.

Definition at line 253 of file MeshProjector.cxx.

References NTupleProjector::acceptRow(), MeshProjector::inRange(), NTupleProjector::m_columns, NTupleProjector::m_cut_list, NTupleProjector::m_ntuple, hippodraw::DataPoint2DTuple::SIZE, num_util::size(), hippodraw::Axes::X, hippodraw::DataPoint2DTuple::XERR, hippodraw::DataPoint3DTuple::XWIDTH, hippodraw::Axes::Y, hippodraw::DataPoint2DTuple::YERR, hippodraw::DataPoint3DTuple::YWIDTH, and hippodraw::Axes::Z.

Referenced by MeshProjector::createNTuple(), and MeshProjector::prepareValues().

double getAverage ( Axes::Type  axis) const
virtualinherited
const std::vector< std::string > & getAxisBindings ( ) const
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().

AxisModelBase * getAxisModel ( Axes::Type  axis) const
virtualinherited
double getBinWidth ( Axes::Type  axis) const
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 in MapMatrixProjector, EqualEntriesHist1DProjector, and BinningProjector.

Definition at line 316 of file ProjectorBase.cxx.

Referenced by PyDataRep::getBinWidth(), and CompositePlotter::getBinWidth().

const vector< const TupleCut * > & getCutList ( ) const
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().

int getMinEntries ( )
virtualinherited

Get the minimum entries/bin.

Reimplemented in BinningProjector.

Definition at line 531 of file ProjectorBase.cxx.

Referenced by CompositePlotter::getMinEntries().

const DataSource * getNTuple ( ) const
virtualinherited

Returns the DataSource used by the projector.

Todo:
Should be changed to getDatSource().

Definition at line 430 of file NTupleProjector.cxx.

References NTupleProjector::m_ntuple.

Referenced by NTupleProjectorXML::createElement(), DyHist1DProjector::getAverage(), NTupleProjector::getAverage(), and DisplayController::getDataSourceLabels().

DataSource * getNTuple ( )
virtualinherited

Returns the DataSource used by the projector.

Todo:
Should be changed to getDatSource().

Definition at line 438 of file NTupleProjector.cxx.

References NTupleProjector::m_ntuple.

NTuple * getNTupleAfterCuts ( ) const
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.

const string & getNTupleName ( ) const
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.

int getNumberOfBins ( Axes::Type  ) const
virtualinherited

Returns the number of bins.

Returns the number of bins on the specified axis. The result is 0 if the axis is not binned.

Reimplemented in MapMatrixProjector, and BinningProjector.

Definition at line 116 of file ProjectorBase.cxx.

int getNumberOfEntries ( ) const
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().

const Observable::ObserverList_t & getObservers ( ) const
inherited

Returns the list of observers.

Definition at line 60 of file Observable.cxx.

double getOffset ( Axes::Type  axis) const
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 in MapMatrixProjector, and BinningProjector.

Definition at line 268 of file ProjectorBase.cxx.

Referenced by CompositePlotter::getOffset().

int getOverflow ( ) const
virtualinherited

Returns the number of overflow.

It is meaningless.

Implements ProjectorBase.

Reimplemented in DyHist1DProjector, and EqualEntriesHist1DProjector.

Definition at line 396 of file NTupleProjector.cxx.

const vector< string > & getPointReps ( ) const
inherited

Return the vector of Point Reps.

Definition at line 335 of file ProjectorBase.cxx.

References ProjectorBase::m_pointreps.

double getPos ( int  column) const
protectedinherited
double getPosOn ( hippodraw::Axes::Type  axis) const
virtual

Returns the minimum positive value of the data on a specified axis.

Implements ProjectorBase.

Definition at line 173 of file MeshProjector.cxx.

References NTupleProjector::getPos(), NTupleProjector::getPosWithError(), NTupleProjector::m_columns, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.

double getPosWithError ( int  data,
int  error 
) const
protectedinherited
const DataSource * getProjectedValues ( ) const
inherited
const Range & getRange ( Axes::Type  axis) const
virtualinherited
double getRMS ( Axes::Type  axis)
virtualinherited

Returns the RMS.

Returns the root mean square of the data points along the axis axis.

Requests:
Can do better than use only the projected values in some derived classes.

Definition at line 289 of file ProjectorBase.cxx.

References ProjectorBase::getProjectedValues(), ProjectorHelper::stdCoord(), and hippodraw::Axes::X.

const std::vector< unsigned int > & getShape ( )
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().

const string & getTitle ( ) const
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().

int getUnderflow ( ) const
virtualinherited

Returns the number of underflow.

It is meaningless.

Implements ProjectorBase.

Reimplemented in DyHist1DProjector, and EqualEntriesHist1DProjector.

Definition at line 389 of file NTupleProjector.cxx.

const std::string & getXLabel ( ) const
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().

const string & getYLabel ( bool  flag = false) const
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().

const std::vector< double > & getZAfterTransform ( TransformBase transform)
inherited

Return Z values after binary transform.

Todo:
This is the only method in all the classes of this directory that needs a heder file from transform directory. Is there a better way?

Definition at line 456 of file ProjectorBase.cxx.

References ProjectorBase::getZValue(), BinaryTransform::inverseTransform(), and ProjectorBase::m_zval.

const string & getZLabel ( ) const
virtual

Returns the label (title) of the z axis.

Gets it from the ntuple object.

Reimplemented from ProjectorBase.

Definition at line 376 of file MeshProjector.cxx.

References DataSource::getLabelAt(), ProjectorBase::m_proj_values, and hippodraw::Axes::Z.

double getZValue ( double  x,
double  y 
) const
virtual

Get the z value at the specified point (x,y).

Note
The implemented algorithm is to get the value of the mesh that include x, y. We assume that any point (x,y) is covered by only one color box.

Reimplemented from ProjectorBase.

Definition at line 386 of file MeshProjector.cxx.

References ProjectorBase::m_proj_values, num_util::size(), hippodraw::Axes::X, hippodraw::DataPoint2DTuple::XERR, hippodraw::Axes::Y, hippodraw::DataPoint2DTuple::YERR, and hippodraw::Axes::Z.

const std::vector< double > & getZValues ( )
inherited
bool hasDataSourceBindings ( ) const
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.

int indexOf ( const std::string &  label) const
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().

unsigned int indexOfBindingOption ( const std::string &  axis) const
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().

bool inRange ( int  row) const
protectedvirtual

Returns true if value at row is within range on all axis.

Reimplemented from NTupleProjector.

Definition at line 340 of file MeshProjector.cxx.

References MeshProjector::inRangeWithZ().

Referenced by MeshProjector::fillProjectedValues().

bool inRangeWithZ ( int  row,
bool  flag 
) const
protected

Returns true if value at row is within range.

If flag is true, Returns true if value at row is within range on all axis, otherwise uses just the X and Y axis.

Definition at line 313 of file MeshProjector.cxx.

References ProjectorBase::getRange(), Range::includes(), NTupleProjector::m_columns, NTupleProjector::m_ntuple, ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, and ProjectorBase::m_z_axis.

Referenced by MeshProjector::inRange(), and MeshProjector::preferredRange().

bool isAxisBinned ( const std::string &  axis) const
virtualinherited

Returns true if specified axis is binned.

An axis that is binned responds to the width and offset controls. This base class implementation returns false.

Reimplemented in Profile2DProjector, EqualEntriesHist1DProjector, DyHist1DProjector, DyHist2DProjector, StHist2DProjector, StHist1DProjector, and ProfileProjector.

Definition at line 121 of file ProjectorBase.cxx.

Referenced by CompositePlotter::getBinWidth(), CompositePlotter::getOffset(), DisplayController::isAxisBinned(), DisplayController::setBinner(), and BinningProjector::setBinnerOn().

bool isDataValid ( ) const
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.

bool isDirty ( ) const
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().

bool isEmpty ( ) const
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.

bool isImageConvertable ( ) const
virtualinherited

Returns true if the projected values can converted to an image.

Returns true if this projected values can be converted to an image. An image is defined as a regular grid of values. As a convenience to implementers of derived classes, this base class method returns false.

Reimplemented in MapMatrixProjector, and BinningProjector.

Definition at line 538 of file ProjectorBase.cxx.

bool isValueBinned ( ) const
virtualinherited

Returns true if the projected values are the result of binning.

The implementation in this base class returns false. It maybe overridden in derived classes that do binning.

Reimplemented in Hist2DProjImp, and Hist1DProjImp.

Definition at line 126 of file ProjectorBase.cxx.

Referenced by BinningProjector::normalizeTo().

void matrixTranspose ( bool  yes)
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.

void normalizeTo ( const ProjectorBase target)
virtualinherited

Sets the target of normalization.

The meaning of normalizing the projected values of one projector to another one depends on the derived class. This implementation in this base does nothing.

Reimplemented in BinningProjector.

Definition at line 409 of file ProjectorBase.cxx.

void normalizeTo ( double  norm)
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 in BinningProjector.

Definition at line 388 of file ProjectorBase.cxx.

void notifyObservers ( ) const
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().

void notifyObservers ( Action  action) const
protectedinherited

An internal method to iterate over all observers and to send the message action.

Definition at line 72 of file Observable.cxx.

Range preferredRange ( hippodraw::Axes::Type  axis) const
virtual

Returns the preferred Range on the given axis.

Returns the preferred Range on the given axis that would display all the data. If axis is Axes::Z, the returned Range is only for the rows where both X and Y values are within their respective current ranges.

Reimplemented from ProjectorBase.

Definition at line 347 of file MeshProjector.cxx.

References MeshProjector::inRangeWithZ(), NTupleProjector::m_columns, NTupleProjector::m_ntuple, Range::setRange(), and hippodraw::Axes::Z.

void prepareValues ( )
virtual

Informs the projector to prepare its projected values for plotting.

This base class implementation sets the dirty flag to false indicating that the values are already prepared. Projectors that need to calculate the projected values should override this method and also set the dirty flag to false. For example, a projector might accumulate data into bins, and the position of the bin and its number of entries are used for the projected values.

Reimplemented from ProjectorBase.

Definition at line 299 of file MeshProjector.cxx.

References MeshProjector::createNTuple(), MeshProjector::fillProjectedValues(), ProjectorBase::isDirty(), ProjectorBase::m_proj_values, and ProjectorBase::setDirty().

Referenced by MeshProjector::dataRangeOnValue().

void removeCut ( const TupleCut cut)
virtualinherited

Removes the cut from the cut list.

Definition at line 356 of file NTupleProjector.cxx.

References NTupleProjector::m_cut_list.

void removeObserver ( hippodraw::Observer observer)
inherited
void reset ( )
virtualinherited

Resets the bins.

This interface is for the StHist1DProjector

Reimplemented in StHist1DProjector, BinningProjector, and Hist1DProjImp.

Definition at line 262 of file ProjectorBase.cxx.

Referenced by CompositePlotter::reset().

void setAxisBinding ( int  axis,
const std::string &  label 
)
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().

void setAxisBinding ( const std::string &  axis,
const std::string &  label 
)
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().

void setAxisBindings ( const std::vector< std::string > &  labels)
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().

void setAxisModel ( Axes::Type  axis,
AxisModelBase axis_model 
)
virtualinherited

Sets the AxisModel for axis axis.

Reimplemented in BinningProjector.

Definition at line 192 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 DataRep::setAxisModel().

const Range & setBinWidth ( Axes::Type  axis,
double  width 
)
virtualinherited

Sets the bin width.

Sets the bin width to width along the axis 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 in MapMatrixProjector, EqualEntriesHist1DProjector, Profile2DProjector, Hist2DProjImp, and BinningProjector.

Definition at line 234 of file ProjectorBase.cxx.

Referenced by CompositePlotter::setBinWidth().

const Range & setBinWidth ( Axes::Type  axis,
int  parm,
bool  dragging 
)
virtualinherited

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 in EqualEntriesHist1DProjector, Profile2DProjector, DyHist2DProjector, and BinningProjector.

Definition at line 242 of file ProjectorBase.cxx.

References ProjectorBase::getRange(), and ProjectorBase::m_x_axis.

void setDirty ( bool  value = true)
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().

void setMinEntries ( int  entries)
virtualinherited

Set the minimum entries/bin.

Reimplemented in BinningProjector.

Definition at line 525 of file ProjectorBase.cxx.

Referenced by CompositePlotter::setMinEntries().

void setNormalizing ( bool  on)
virtualinherited

Sets the scaling number of entries on if on is true, otherwise turns if off.

Reimplemented in BinningProjector.

Definition at line 395 of file ProjectorBase.cxx.

void setNTuple ( const DataSource source)
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().

void setNumberOfBins ( Axes::Type  axis,
unsigned int  number 
)
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().

void setOffset ( const std::string &  axis,
int  parm,
bool  dragging 
)
virtualinherited

Sets the bin offset.

See Also
setBinWidth ( const std::string &, int, bool )

Reimplemented in Profile2DProjector, BinningProjector, and DyHist2DProjector.

Definition at line 248 of file ProjectorBase.cxx.

Referenced by CompositePlotter::setOffset(), and DisplayController::setOffset().

void setOffset ( Axes::Type  axis,
double  offset 
)
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 in MapMatrixProjector, Profile2DProjector, Hist2DProjImp, and BinningProjector.

Definition at line 256 of file ProjectorBase.cxx.

void setRange ( Axes::Type  axis,
bool  const_width = true 
)
virtualinherited

Sets the range of the selected axis.

The base class implementation only sets the dirty flag. Derived classes may need to do more. The option bool parameter if true indicates a binning projector should hold the bin width parameter constant.

Reimplemented in FunctionProjector, Profile2DProjector, Hist2DProjImp, Hist1DProjImp, and ProfileProjector.

Definition at line 133 of file ProjectorBase.cxx.

References ProjectorBase::m_z_axis, ProjectorBase::setDirty(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.

Referenced by DataRep::setRange().

void setXErrorOption ( bool  enable)
virtual

Sets whether the X width options are to be enabled or not.

Todo:
Remove this and setYerrorOption() in favor of passing as argument s string with the name of an error option.

Reimplemented from NTupleProjector.

Definition at line 80 of file MeshProjector.cxx.

References NTupleProjector::m_binding_options, NTupleProjector::m_columns, and MeshProjector::m_x_option.

Referenced by VariableMesh::VariableMesh().

void setYErrorOption ( bool  enable)
virtual

Sets whether the Y width options are to be enabled or not.

Todo:
Remove duplication of code in this method with setXErrorOption.

Reimplemented from NTupleProjector.

Definition at line 99 of file MeshProjector.cxx.

References NTupleProjector::m_binding_options, NTupleProjector::m_columns, and MeshProjector::m_y_option.

Referenced by VariableMesh::VariableMesh().

void update ( const Observable )
virtualinherited

Responds to update message from the data source.

Implementation of Observer pattern.

Reimplemented from ProjectorBase.

Reimplemented in Profile2DProjector, DyHist1DProjector, DyHist2DProjector, and ProfileProjector.

Definition at line 82 of file NTupleProjector.cxx.

References Observable::notifyObservers(), and ProjectorBase::setDirty().

Range valueRange ( ) const
virtual

Finds the range of the projected values.

It is up to derived classes to determine what this means.

Todo:
Resolve if this method should be here.

Implements ProjectorBase.

Definition at line 125 of file MeshProjector.cxx.

References MeshProjector::dataRangeOn(), and hippodraw::Axes::Z.

bool wantsScaleFactor ( const std::string &  axis) const
virtualinherited

Returns whether the projector wants scale factor.

Returns true if the projector wants to scale the axis, otherwise returns false. A projector supporting a histogram, for example, would want to scale the Y axis by the bin width in order to show entries per bin instead of density. This base class implementation always returns false.

Reimplemented in Hist2DProjImp, and Hist1DProjImp.

Definition at line 364 of file ProjectorBase.cxx.

Referenced by CompositePlotter::checkAxisScaling().

void willDelete ( const Observable observee)
virtualinherited

Responds to willDelete message from the observed data source.

Replaces the currently referenced data source with a null one. This is an implementation of the Observer pattern.

Reimplemented from Observer.

Reimplemented in Profile2DProjector, DyHist1DProjector, DyHist2DProjector, and ProfileProjector.

Definition at line 90 of file NTupleProjector.cxx.

References NTupleProjector::m_ntuple.

Member Data Documentation

std::vector< std::string > m_binding_options
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().

std::vector< std::string > m_bindings
mutableprotectedinherited

The list of current bindings.

Definition at line 80 of file NTupleProjector.h.

Referenced by NTupleProjector::getAxisBindings().

std::vector< unsigned int > m_columns
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().

CutList_t m_cut_list
protectedinherited
unsigned int m_min_bindings
protectedinherited
const DataSource* m_ntuple
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().

std::vector< std::string > m_pointreps
protectedinherited
DataSource* m_proj_values
protectedinherited
const ProjectorBase* m_target
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().

AxisModelBase* m_x_axis
protectedinherited
std::string m_x_option
private

The label for the X width binding option.

Definition at line 32 of file MeshProjector.h.

Referenced by MeshProjector::setXErrorOption().

AxisModelBase* m_y_axis
protectedinherited
std::string m_y_option
private

The label for the Y width binding option.

Definition at line 35 of file MeshProjector.h.

Referenced by MeshProjector::setYErrorOption().

AxisModelBase* m_z_axis
protectedinherited
std::string m_z_label
protectedinherited

Dummy member so that getZLabel can return a reference.

Todo:
Remove when getLabel takes axis argument

Definition at line 101 of file ProjectorBase.h.

Referenced by ProjectorBase::getZLabel().

std::vector< double > m_zval
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().


The documentation for this class was generated from the following files:

Generated for HippoDraw Class Library by doxygen