110 double pos = DBL_MIN;
113 pos = std::max ( pos,
m_value );
126 pos = std::max ( pos,
m_value );
186 const char * values[] = {
"X",
"Y",
"nil",
"nil" };
187 vector < string > labels ( values, values + 4 );
188 ntuple -> setLabels ( labels );
209 ntuple -> addRow ( row );
211 ntuple -> addRow ( row );
217 ntuple -> addRow ( row );
219 ntuple -> addRow ( row );
AxisModelBase * m_x_axis
The AxisModel along the X axis.
A namespace to set the standard for indexing into 2 dimension data point tuple.
virtual const Range & getRange(Axes::Type) const
Returns the Range along the specified axis.
virtual ~LineProjector()
The virtual destructor.
virtual Range valueRange() const
Finds the range of the projected values.
virtual int getNumberOfEntries() const
Returns the total number of entries that went into creating the projected values. ...
virtual bool isEmpty() const
Returns true if the data source used by this projector is empty.
int getUnderflow() const
Returns the number of underflow.
LineProjector(const LineProjector &)
The copy constructor.
virtual double getPosOn(hippodraw::Axes::Type) const
Returns the minimum positive value.
hippodraw::AxisModelBase class interface
hippodraw::Axes::Type m_axis
The axis for the value.
DataSource * m_proj_values
The NTuple representing the result of the projection.
virtual void fillProjectedValues(DataSource *ntuple, bool in_range=false) const
int getOverflow() const
Returns the number of overflow.
double high() const
Returns the maximum of the range object.
AxisModelBase * m_y_axis
The AxisModel along the Y axis.
hippodraw::NTuple class interface.
Base class for DataSource.
double m_value
The value represented.
hippodraw::LineProjector class interface
virtual const std::string & getTitle() const
Finds the title of the plot.
virtual const std::string & getXLabel() const
Finds the X axis label of the plot.
virtual ProjectorBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
virtual void prepareValues()
Informs the projector to prepare its projected values for plotting.
double low() const
Returns the minimum of the range object.
virtual Range dataRangeOn(hippodraw::Axes::Type) const
Returns the range of the raw data.
A DataSource class implemented with std::vector<double> to store the column data. ...
void setRange(double low, double high, double pos)
Changes the current Range.
Expresses a range of values.
The base class for the Projector hierarchy.
virtual const std::string & getYLabel(bool flag=false) const
Finds the Y axis label of the plot.
virtual DataSource * createNTuple() const
Creates an NTuple representation of the projected values.
std::string m_title
A label for the line.
error on X or half bin width
void setValue(double value)
Sets the value that will be projected.
virtual void addPointReps()
Function to add the acceptable point reps.
A projector that plots a value as a horizontal or vertical line.
double pos() const
Returns the first positive element in range.
virtual void setDirty(bool value=true)
Sets the dirty flag to value.