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