14 #include "msdevstudio/MSconfig.h"
28 using std::min_element;
63 namespace dp = hippodraw::DataPoint2DTuple;
78 unsigned int min_row =
m_ntuple -> indexOfMinElement ( x_col );
83 for (
unsigned int i = min_row;
i <
size;
i++ ) {
92 = x_err < UINT_MAX ?
m_ntuple -> valueAt (
i, x_err ) : 0.0;
94 = y_err < UINT_MAX ?
m_ntuple -> valueAt (
i, y_err ) : 0.0;
98 ntuple -> addRow ( row );
100 for (
unsigned int i = 0;
i < min_row;
i++ ) {
107 = x_err < UINT_MAX ?
m_ntuple -> valueAt (
i, x_err ) : 0.0;
109 = y_err < UINT_MAX ?
m_ntuple -> valueAt (
i, y_err ) : 0.0;
114 ntuple -> addRow ( row );
CutList_t m_cut_list
A list of cuts that filter the projection.
Copyright (C) 2000-2005 The Board of Trustees of The Leland Stanford Junior University.
virtual bool inRange(int row) const
Checks if the entries in a given row are within the range of the axis model.
A derived class of NTupleProjector that maps 2 ntuple columns to a two dimensional projection...
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...
ProjectorBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
std::vector< unsigned int > m_columns
A vector containing indexes to the columns of the DataSource.
hippodraw::DataSource class interface.
error on X or half bin width
virtual void addPointReps()
Function to add the acceptable point reps.
intp size(numeric::array arr)
const DataSource * m_ntuple
The pointer to the data source being projected.
StripChartProjector()
The following default constructor binds to the first two columns.
The base class for the Projector hierarchy.
std::vector< std::string > m_pointreps
Vector of acceptable PointReps.
hippodraw::DataPointTuple namespace interface
virtual void fillProjectedValues(DataSource *ntuple, bool in_range=false) const
Fills the data source with projected values.
Base class for DataSource.