#include <FunctionProjector.h>
Inheritance diagram for FunctionProjector:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>
Sanket B. Malde <sanket@stanford.edu>
Oded Wurman <owurman@stanford.edu>
Definition at line 31 of file FunctionProjector.h.
Public Types | |
typedef void(hippodraw::Observer::* | Action )(const Observable *) |
The member function of the Observer that is called. | |
typedef std::list< hippodraw::Observer * > | ObserverList_t |
The type of STL container to maintain list of Observer objects. | |
Public Member Functions | |
void | addObserver (hippodraw::Observer *) |
Adds an Observer to the Observer list. | |
virtual void | addValues (const std::vector< double > &v) |
Add values to the projection. | |
virtual ProjectorBase * | clone () |
const std::vector< std::vector< double > > & | covariance () const |
Returns the covariance matrix. | |
virtual DataSource * | createNTuple () const |
Creates an NTuple representation of the projected values. | |
virtual const DataSource * | createOldStyleNTuple () const |
virtual Range | dataRangeOn (hippodraw::Axes::Type) const |
Returns the range of the raw data. | |
int | degreesOfFreedom () const |
Returns the number of degrees of freedom in the fit. | |
bool | fitFunction () |
Fits the function. | |
FunctionBase * | function () const |
Returns a pointer to the contained function. | |
FunctionProjector (const FunctionProjector &) | |
The copy constructor. | |
FunctionProjector (FunctionBase *function, ProjectorBase *targetProjector) | |
This constructor takes a FunctionBase pointer. | |
FunctionProjector (const std::string &name, ProjectorBase *targetProjector) | |
The following constructor takes a function name as an argument. | |
virtual double | getAverage (hippodraw::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 axis bindings. | |
virtual AxisModelBase * | getAxisModel (hippodraw::Axes::Type axis) const |
Get the AxisModel for axis axis. | |
virtual double | getBinWidth (hippodraw::Axes::Type axis) const |
Returns the bin width of the axis. | |
Fitter * | getFitter () const |
Returns the Fitter that is in use. | |
virtual NTuple * | getNTupleAfterCuts () const |
Template for projectors that can return subsets of the NTuple used by the DataRep. | |
virtual int | getNumberOfBins (hippodraw::Axes::Type) const |
Returns the number of bins. | |
int | getNumberOfEntries () const |
A call to this member function is meaningless. | |
const ObserverList_t & | getObservers () const |
Returns the list of observers. | |
virtual double | getOffset (hippodraw::Axes::Type axis) const |
Returns the offset of the axis. | |
const std::vector< std::string > & | getPointReps () const |
Return the vector of Point Reps. | |
virtual double | getPosOn (hippodraw::Axes::Type) const |
Returns the minimum positive value. | |
const DataSource * | getProjectedValues () const |
Returns ntuple representation of projected values. | |
virtual const Range & | getRange (hippodraw::Axes::Type) const |
Returns the Range along the specified axis. | |
virtual double | getRMS (hippodraw::Axes::Type axis) |
Returns the RMS. | |
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 const std::string & | getYLabel (bool density=false) const |
Finds the Y axis label of the plot. | |
const std::string & | getZLabel () const |
Is meaningless for this projector. | |
virtual double | getZValue (double x, double y) const |
Get the z value at the specified point (x,y). | |
bool | hasSavedParameters () const |
Returns true if the function's parameters have been saved. | |
void | initializeFunction (ProjectorBase *projector) |
Gives the function object initial values based on a given data projector. | |
virtual bool | isAxisBinned (const std::string &axis) const |
Returns true if specified axis is binned. | |
bool | isDirty () const |
Returns true if the projector has been marked dirty. | |
virtual bool | isEmpty () const |
Implements ProjectorBase. | |
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. | |
virtual void | normalizeTo (double norm) |
Sets a scale factor on the output so that the number of entries appears to be number. | |
virtual void | normalizeTo (const ProjectorBase *target) |
Sets the target of normalization. | |
virtual void | notifyObservers () const |
Notifies Observer objects of a change. | |
double | objectiveValue () const |
Returns the objective value (chi2 or likelihood) between the function and the data. | |
virtual Range | preferredRange (hippodraw::Axes::Type) const |
Returns the preferred Range. | |
virtual void | prepareAxis (const Range &x_view, const Range &y_view) |
Prepares the projected values for plotting. | |
const std::vector< double > & | principleErrors () const |
Returns the principle diagonal of the covariance matrix. | |
void | removeObserver (hippodraw::Observer *) |
Removes an Observer from the Observer list. | |
virtual void | reset () |
Resets the bins. | |
void | restoreParameters () |
Restores the function's parameter values from the previously saved values. | |
void | saveParameters () |
Makes a copy of the function's parameter values. | |
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 | setAxisModel (hippodraw::Axes::Type axis, AxisModelBase *) |
Sets the AxisModel for axis axis. | |
virtual void | setBinWidth (const std::string &axis, int parm, bool dragging) |
Sets the bin width. | |
virtual void | setBinWidth (hippodraw::Axes::Type axis, double width) |
Sets the bin width. | |
virtual void | setDirty (bool value=true) |
Sets the dirty flag to value. | |
virtual void | setFitCut (TupleCut *cut) |
Sets the cut to limit range of fitting. | |
virtual void | setFitRange (bool yes=true) |
Sets use of a fitting range on or off. | |
void | setFitter (Fitter *fitter) |
Sets the Fitter to be used. | |
virtual void | setNormalizing (bool on) |
Sets the scaling number of entries on if on is true , otherwise turns if off. | |
virtual void | setNumberOfBins (hippodraw::Axes::Type axis, unsigned int number) |
Sets the number of bins. | |
void | setNumberOfBins (int nb) |
Sets the number of bins to be used in the function binner. | |
virtual void | setOffset (hippodraw::Axes::Type axis, double offset) |
Sets the bin offset. | |
virtual void | setOffset (const std::string &axis, int parm, bool dragging) |
Sets the bin offset. | |
void | setParameters (const std::vector< double > ¶ms) |
Set the parameter values by hand. | |
void | setPrincipleErrors (std::vector< double >::const_iterator begin, std::vector< double >::const_iterator end) |
Sets the principle errors. | |
virtual void | setRange (hippodraw::Axes::Type, bool) |
Sets the range of the selected axis. | |
virtual void | update (const Observable *) |
Implements the Observer pattern. | |
virtual Range | valueRange () const |
virtual bool | wantsScaleFactor (const std::string &axis) const |
Returns whether the projector wants scale factor. | |
virtual void | willDelete (const Observable *) |
Notifies this Observer object that one of its Observable objects is about to be deleted. | |
virtual | ~FunctionProjector () |
The virtual destructor. | |
Protected Member Functions | |
virtual void | fillDataSource (DataSource *ntuple, bool in_range=false) const |
Fills the DataSource source with the projected values. | |
virtual void | fillProjectedValues (DataSource *ntuple, bool in_range=false) const |
Fills the NTuple ntuple with the projected values. | |
void | notifyObservers (Action action) const |
An internal method to iterate over all observers and to send the message action. | |
Protected Attributes | |
std::vector< std::string > | m_pointreps |
Vector of acceptable PointReps. | |
DataSource * | m_proj_values |
The NTuple representing the result of the projection. | |
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. | |
Private Member Functions | |
virtual void | addPointReps () |
Function to add the acceptable point reps. | |
virtual void | prepareValues () |
Prepares the projector for plotting. | |
Private Attributes | |
BinsFunction * | m_binner |
The function binner object. | |
std::vector< std::vector< double > > | m_covariance |
The error covariance matrix of the errors associated with the parameters of the function. | |
Fitter * | m_fitter |
A fitter object for the function. | |
FunctionBase * | m_function |
The list of function objects to be projected. | |
std::vector< double > | m_principleErrors |
The principle errors of the errors associated with the parameters of the function. | |
std::vector< double > | m_save_parms |
A vector used to save parameters so that they can be restored. | |
ProjectorBase * | m_target |
The ProjectorBase object containing the data points for the function and fitter. | |
std::list< std::vector< double > > | m_values |
The array of projected values. | |
std::string | m_z_label |
Dummy member so getZLabel member can return reference. | |
Static Private Attributes | |
static std::string | s_x_label |
An X label that might be used. |
|
The member function of the Observer that is called.
Definition at line 83 of file Observable.h. |
|
The type of STL container to maintain list of Observer objects.
Definition at line 46 of file Observable.h. |
|
The following constructor takes a function name as an argument. The target projector is the projector on which the function is applied. Definition at line 46 of file FunctionProjector.cxx. References addPointReps(), Factory< Type >::create(), FunctionFactory::instance(), m_binner, m_function, and setNumberOfBins(). |
|
This constructor takes a FunctionBase pointer.
Definition at line 64 of file FunctionProjector.cxx. References addPointReps(), m_binner, m_function, and setNumberOfBins(). |
|
The copy constructor.
Definition at line 81 of file FunctionProjector.cxx. |
|
The virtual destructor.
It is responsible for deleting the Definition at line 85 of file FunctionProjector.cxx. References m_binner, m_fitter, and m_function. |
|
Adds an Observer to the Observer list.
Definition at line 49 of file Observable.cxx. References Observable::m_list. Referenced by CutPlotter::addCutTarget(), XyPlotter::addDataRep(), FunctionRep::FunctionRep(), BinningProjector::normalizeTo(), DataRepController::setAxisBindings(), DisplayController::setNTuple(), CutPlotter::setNTuple(), and TextPlotter::setParentDataRep(). |
|
Function to add the acceptable point reps.
Implements ProjectorBase. Definition at line 346 of file FunctionProjector.cxx. Referenced by FunctionProjector(). |
|
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 StHist1DProjector, and StHist2DProjector. Definition at line 312 of file ProjectorBase.cxx. |
|
Implements ProjectorBase. Definition at line 93 of file FunctionProjector.cxx. |
|
Returns the covariance matrix.
Definition at line 371 of file FunctionProjector.cxx. References m_covariance, and m_fitter. |
|
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 384 of file FunctionProjector.cxx. References fillProjectedValues(), m_values, num_util::size(), and hippodraw::DataPoint2DTuple::SIZE. Referenced by prepareValues(). |
|
Reimplemented in BinningProjector. Definition at line 345 of file ProjectorBase.cxx. References ProjectorBase::getProjectedValues(), and ProjectorBase::prepareValues(). |
|
Returns the range of the raw data.
Implements ProjectorBase. Definition at line 253 of file FunctionProjector.cxx. References AxisModelBase::getRange(), ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, and hippodraw::Axes::X. |
|
Returns the number of degrees of freedom in the fit.
Definition at line 308 of file FunctionProjector.cxx. References Fitter::calcDegreesOfFreedom(), and m_fitter. Referenced by FuncChiRep::drawProjectedValues(). |
|
Fills the DataSource source with the projected values.
Fills the DataSource source with the results of projecting the data source to projected values. Derived classes must implement this method. Clients, such as plotters or fitters, can then use getProjectedValues method to access the projected value data. The default behavior is to fill the DataSource with all values that are accepted by the TupleCut objects, if any. If in_range is equal to Implements ProjectorBase. Definition at line 423 of file FunctionProjector.cxx. References m_values, and hippodraw::DataPoint2DTuple::SIZE. |
|
Fills the NTuple ntuple with the projected values.
Fills the NTuple !ntuple with the results of projecting the data source to projected values. Derived classes must implement this method. Clients, such as plotters or fitters, can then use getProjectedValues method to access the projected value data. The default behavior is to fill the NTuple with all values that are accepted by the TupleCut objects, if any. If in_range is equal to Implements ProjectorBase. Definition at line 407 of file FunctionProjector.cxx. References m_values, and hippodraw::DataPoint2DTuple::SIZE. Referenced by createNTuple(), and prepareValues(). |
|
Fits the function. Attempts to fit the function to the data. Returns true if the fit converged, otherwise returns false. Creates a new fitter object if necessary. Definition at line 158 of file FunctionProjector.cxx. References Fitter::calcBestFit(), hasSavedParameters(), m_fitter, m_function, m_target, prepareValues(), saveParameters(), and ProjectorBase::setDirty(). Referenced by FunctionRep::fitFunction(). |
|
Returns a pointer to the contained function.
Definition at line 98 of file FunctionProjector.cxx. References m_function. Referenced by FunctionProjectorXML::createElement(), FuncParmRep::drawProjectedValues(), and FunctionRep::getFunction(). |
|
Get the Average of all projected values on the specified axis.
Reimplemented in DyHist1DProjector, Map1Projector, MapMatrixProjector, NTupleProjector, StHist1DProjector, and StHist2DProjector. Definition at line 268 of file ProjectorBase.cxx. Referenced by AverageTextRep::drawProjectedValues(). |
|
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 XYPlot::setAxisBindings(). |
|
Get the AxisModel for axis axis.
Definition at line 204 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(). |
|
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 BinningProjector, and MapMatrixProjector. Definition at line 299 of file ProjectorBase.cxx. Referenced by PyDataRep::getBinWidth(), and CompositePlotter::getBinWidth(). |
|
Returns the Fitter that is in use.
Definition at line 139 of file FunctionProjector.cxx. References m_fitter. |
|
Template for projectors that can return subsets of the NTuple used by the DataRep.
Reimplemented in NTupleProjector. Definition at line 324 of file ProjectorBase.cxx. Referenced by DataRep::getNTupleAfterCuts(). |
|
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 BinningProjector, and MapMatrixProjector. Definition at line 116 of file ProjectorBase.cxx. Referenced by BinningProjector::getNumberOfBins(). |
|
A call to this member function is meaningless. Thus, it raises an assertion. Implements ProjectorBase. Definition at line 244 of file FunctionProjector.cxx. |
|
Returns the list of observers.
Definition at line 57 of file Observable.cxx. References Observable::m_list. |
|
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 BinningProjector, and MapMatrixProjector. Definition at line 258 of file ProjectorBase.cxx. Referenced by CompositePlotter::getOffset(). |
|
Return the vector of Point Reps.
Definition at line 317 of file ProjectorBase.cxx. References ProjectorBase::m_pointreps. |
|
Returns the minimum positive value.
Implements ProjectorBase. Definition at line 315 of file FunctionProjector.cxx. |
|
Returns ntuple representation of projected values.
Definition at line 338 of file ProjectorBase.cxx. References ProjectorBase::m_proj_values. Referenced by BinningProjectorXML::createChildren(), ProjectorBase::createOldStyleNTuple(), StHist2DProjector::getAverage(), StHist1DProjector::getAverage(), MapMatrixProjector::getAverage(), Map1Projector::getAverage(), ProjectorBase::getRMS(), and initializeFunction(). |
|
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(), LineProjector::fillDataSource(), LineProjector::fillProjectedValues(), NTupleProjector::getAverage(), DyHist1DProjector::getAverage(), LineProjector::getPosOn(), and LineProjector::valueRange(). |
|
Returns the RMS. Returns the root mean square of the data points along the axis axis. Definition at line 279 of file ProjectorBase.cxx. References ProjectorBase::getProjectedValues(), ProjectorHelper::stdCoord(), and hippodraw::Axes::X. |
|
Finds the title of the plot.
Implements ProjectorBase. Definition at line 194 of file FunctionProjector.cxx. References m_function, and FunctionBase::name(). |
|
Finds the X axis label of the plot. Normally the label is taken from the data projector that is used in conjunction with the function projector. If called, the function returns "X". Implements ProjectorBase. Definition at line 214 of file FunctionProjector.cxx. References s_x_label. |
|
Finds the Y axis label of the plot. Normally the label is taken from the data projector that is used in conjunction with the function projector. If called, the function returns the name of the function. The argument density is not used. Implements ProjectorBase. Definition at line 219 of file FunctionProjector.cxx. References m_function, and FunctionBase::name(). |
|
Is meaningless for this projector.
Reimplemented from ProjectorBase. Definition at line 339 of file FunctionProjector.cxx. References m_z_label. |
|
Get the z value at the specified point (x,y).
Reimplemented in BinningProjector, Map3Projector, and MapMatrixProjector. Definition at line 305 of file ProjectorBase.cxx. Referenced by CompositePlotter::getZValue(). |
|
Returns true if the function's parameters have been saved.
Definition at line 108 of file FunctionProjector.cxx. References m_save_parms. Referenced by fitFunction(). |
|
Gives the function object initial values based on a given data projector.
Definition at line 144 of file FunctionProjector.cxx. References ProjectorBase::getProjectedValues(), FunctionBase::initialParameters(), m_function, m_target, ProjectorBase::prepareValues(), and saveParameters(). Referenced by FunctionRep::initializeWith(). |
|
Returns An axis that is binned responds to the width and offset controls. This base class implementation returns false. Reimplemented in DyHist1DProjector, DyHist2DProjector, Profile2DProjector, ProfileProjector, StHist1DProjector, and StHist2DProjector. Definition at line 121 of file ProjectorBase.cxx. Referenced by CompositePlotter::getBinWidth(), CompositePlotter::getOffset(), DisplayController::isAxisBinned(), DisplayController::setBinner(), and BinningProjector::setBinnerOn(). |
|
Returns 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 BinningProjector::createOldStyleNTuple(), Profile2DProjector::dataRangeOn(), DataRep::isDirty(), MapMatrixProjector::prepareValues(), Map2Projector::prepareValues(), prepareValues(), BinningProjector::prepareValues(), and Profile2DProjector::valueRange(). |
|
Implements ProjectorBase.
Implements ProjectorBase. Definition at line 352 of file FunctionProjector.cxx. References m_binner. |
|
Returns
The implementation in this base class returns Reimplemented in Hist1DProjImp, and Hist2DProjImp. Definition at line 126 of file ProjectorBase.cxx. Referenced by BinningProjector::normalizeTo(). |
|
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. |
|
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 entires by normalizing one to the other. Reimplemented in BinningProjector. Definition at line 355 of file ProjectorBase.cxx. |
|
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 376 of file ProjectorBase.cxx. |
|
An internal method to iterate over all observers and to send the message action.
Definition at line 69 of file Observable.cxx. References std::bind2nd(), std::for_each(), Observable::m_list, and std::mem_fun(). |
|
|
Returns the objective value (chi2 or likelihood) between the function and the data.
Definition at line 260 of file FunctionProjector.cxx. References m_fitter, and Fitter::objectiveValue(). Referenced by FuncChiRep::drawProjectedValues(). |
|
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 in Hist1DProjImp, and Hist2DProjImp. Definition at line 163 of file ProjectorBase.cxx. References ProjectorBase::dataRangeOn(), Range::length(), Range::low(), Range::setHigh(), Range::setLow(), and hippodraw::Axes::Y. Referenced by DataRep::preferredRange(). |
|
Prepares the projected values for plotting. This method is called before drawing. The ranges are in the display device coordinate system. They are used as part of the algorithm for defining what straight line segments are used for functions whose output is curved. Definition at line 224 of file FunctionProjector.cxx. References AxisModelBase::getRange(), m_binner, ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, ProjectorBase::setDirty(), BinsFunction::setRangeOn(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Prepares the projector for plotting.
Reimplemented from ProjectorBase. Definition at line 177 of file FunctionProjector.cxx. References createNTuple(), BinsFunction::createValuesArray(), fillProjectedValues(), ProjectorBase::isDirty(), m_binner, m_function, ProjectorBase::m_proj_values, m_values, ProjectorBase::setDirty(), and BinsFunction::setFunction(). Referenced by fitFunction(). |
|
Returns the principle diagonal of the covariance matrix.
Definition at line 271 of file FunctionProjector.cxx. References m_covariance, m_fitter, m_principleErrors, m_save_parms, and std::sqrt(). Referenced by FunctionRep::principleErrors(). |
|
Removes an Observer from the Observer list.
Definition at line 63 of file Observable.cxx. References Observable::m_list. Referenced by BinningProjector::normalizeTo(), CutPlotter::removeFromTarget(), DisplayController::removeTextObservers(), NTupleProjector::setNTuple(), FunctionRep::willDelete(), FunctionRep::~FunctionRep(), and NTupleProjector::~NTupleProjector(). |
|
Resets the bins. This interface is for the StHist1DProjector Reimplemented in BinningProjector, Hist1DProjImp, and StHist1DProjector. Definition at line 252 of file ProjectorBase.cxx. Referenced by CompositePlotter::reset(). |
|
Restores the function's parameter values from the previously saved values.
Definition at line 120 of file FunctionProjector.cxx. References m_function, m_save_parms, ProjectorBase::setDirty(), and FunctionBase::setParameters(). Referenced by FunctionRep::restoreParameters(). |
|
Makes a copy of the function's parameter values.
Definition at line 113 of file FunctionProjector.cxx. References FunctionBase::getParameters(), m_function, and m_save_parms. Referenced by fitFunction(), initializeFunction(), and FunctionRep::saveParameters(). |
|
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. |
|
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. |
|
Sets the AxisModel for axis axis.
Reimplemented from ProjectorBase. Definition at line 322 of file FunctionProjector.cxx. References AxisModelBase::getRange(), m_binner, ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, BinsFunction::setRange(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
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 Reimplemented in BinningProjector, DyHist2DProjector, and Profile2DProjector. Definition at line 232 of file ProjectorBase.cxx. |
|
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 BinningProjector, Hist2DProjImp, MapMatrixProjector, and Profile2DProjector. Definition at line 227 of file ProjectorBase.cxx. Referenced by DisplayController::setBinWidth(), and CompositePlotter::setBinWidth(). |
|
|
Sets the cut to limit range of fitting.
Definition at line 439 of file FunctionProjector.cxx. References m_fitter. |
|
Sets use of a fitting range on or off.
Definition at line 446 of file FunctionProjector.cxx. References m_fitter. |
|
Sets the Fitter to be used.
Definition at line 132 of file FunctionProjector.cxx. References m_fitter. |
|
Sets the scaling number of entries on if on is
Reimplemented in BinningProjector. Definition at line 362 of file ProjectorBase.cxx. |
|
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 221 of file ProjectorBase.cxx. Referenced by CompositePlotter::setNumberOfBins(). |
|
Sets the number of bins to be used in the function binner.
Definition at line 103 of file FunctionProjector.cxx. References m_binner, BinsFunction::setNumberOfBins(), and hippodraw::Axes::X. Referenced by FunctionProjector(). |
|
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 BinningProjector, Hist2DProjImp, MapMatrixProjector, and Profile2DProjector. Definition at line 246 of file ProjectorBase.cxx. |
|
Sets the bin offset.
Reimplemented in BinningProjector, DyHist2DProjector, and Profile2DProjector. Definition at line 238 of file ProjectorBase.cxx. Referenced by DisplayController::setOffset(), and CompositePlotter::setOffset(). |
|
Set the parameter values by hand.
Definition at line 357 of file FunctionProjector.cxx. References FunctionBase::getParameters(), m_function, ProjectorBase::setDirty(), and FunctionBase::setParameters(). Referenced by FunctionRep::setParameters(). |
|
Sets the principle errors. Sets the principle errors of the parameters. This function may be used, for example, to set the errors found from a fitting procedure. Definition at line 299 of file FunctionProjector.cxx. References std::copy(), m_principleErrors, and num_util::size(). Referenced by FunctionController::setErrorsFromComposite(). |
|
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 Reimplemented from ProjectorBase. Definition at line 201 of file FunctionProjector.cxx. References AxisModelBase::getRange(), m_binner, ProjectorBase::m_x_axis, ProjectorBase::m_y_axis, ProjectorBase::setDirty(), BinsFunction::setRange(), and hippodraw::Axes::X. |
|
Implements the Observer pattern. The implementation in this abstract base class does nothing. Derived class may override this method if they are observers. Implements hippodraw::Observer. Reimplemented in BinningProjector, DyHist1DProjector, DyHist2DProjector, NTupleProjector, Profile2DProjector, and ProfileProjector. Definition at line 369 of file ProjectorBase.cxx. |
|
Implements ProjectorBase. Definition at line 237 of file FunctionProjector.cxx. |
|
Returns whether the projector wants scale factor.
Returns Reimplemented in Hist1DProjImp, and Hist2DProjImp. Definition at line 331 of file ProjectorBase.cxx. Referenced by CompositePlotter::checkAxisScaling(). |
|
Notifies Since most Observable objects are owned by its Observer, it is the Observer that issued the delete. Thus the default implementation here does nothing. Derived classes that observe objects owned by another should implement this method to remove the Observable from the list they are observing. Reimplemented in FunctionRep, DataSourceController, CutPlotter, TextPlotter, BinningProjector, DyHist1DProjector, DyHist2DProjector, NTupleProjector, Profile2DProjector, and ProfileProjector. Definition at line 25 of file Observer.cxx. Referenced by DataRep::~DataRep(), DataSource::~DataSource(), NTuple::~NTuple(), and RTuple::~RTuple(). |
|
The function binner object.
Definition at line 77 of file FunctionProjector.h. Referenced by FunctionProjector(), isEmpty(), prepareAxis(), prepareValues(), setAxisModel(), setNumberOfBins(), setRange(), and ~FunctionProjector(). |
|
The error covariance matrix of the errors associated with the parameters of the function.
Definition at line 38 of file FunctionProjector.h. Referenced by covariance(), and principleErrors(). |
|
A fitter object for the function.
Definition at line 74 of file FunctionProjector.h. Referenced by covariance(), degreesOfFreedom(), fitFunction(), getFitter(), objectiveValue(), principleErrors(), setFitCut(), setFitRange(), setFitter(), and ~FunctionProjector(). |
|
The list of function objects to be projected.
Definition at line 68 of file FunctionProjector.h. Referenced by fitFunction(), function(), FunctionProjector(), getTitle(), getYLabel(), initializeFunction(), prepareValues(), restoreParameters(), saveParameters(), setParameters(), and ~FunctionProjector(). |
|
Vector of acceptable PointReps.
Definition at line 98 of file ProjectorBase.h. Referenced by StripChartProjector::addPointReps(), ProfileProjector::addPointReps(), Profile2DProjector::addPointReps(), MapMatrixProjector::addPointReps(), Map3Projector::addPointReps(), Map2Projector::addPointReps(), Map1Projector::addPointReps(), Hist2DProjImp::addPointReps(), Hist1DProjImp::addPointReps(), and ProjectorBase::getPointReps(). |
|
The principle errors of the errors associated with the parameters of the function.
Definition at line 42 of file FunctionProjector.h. Referenced by principleErrors(), and setPrincipleErrors(). |
|
The NTuple representing the result of the projection.
Definition at line 73 of file ProjectorBase.h. Referenced by BinningProjector::BinningProjector(), ProfileProjector::dataRangeOn(), Profile2DProjector::dataRangeOn(), Hist2DProjImp::dataRangeOnValue(), Hist1DProjImp::dataRangeOnValue(), DyHist1DProjector::getAverage(), ProfileProjector::getPosOn(), ProjectorBase::getProjectedValues(), Map3Projector::getZValue(), MapMatrixProjector::prepareValues(), Map3Projector::prepareValues(), Map2Projector::prepareValues(), Map1Projector::prepareValues(), LineProjector::prepareValues(), prepareValues(), BinningProjector::prepareValues(), BinningProjector::setBinner(), and ProjectorBase::~ProjectorBase(). |
|
A vector used to save parameters so that they can be restored.
Definition at line 57 of file FunctionProjector.h. Referenced by hasSavedParameters(), principleErrors(), restoreParameters(), and saveParameters(). |
|
The ProjectorBase object containing the data points for the function and fitter.
Reimplemented from ProjectorBase. Definition at line 65 of file FunctionProjector.h. Referenced by fitFunction(), and initializeFunction(). |
|
The array of projected values.
Definition at line 50 of file FunctionProjector.h. Referenced by createNTuple(), fillDataSource(), fillProjectedValues(), and prepareValues(). |
|
The
All
Definition at line 82 of file ProjectorBase.h. Referenced by LineProjector::dataRangeOn(), dataRangeOn(), LineProjector::fillDataSource(), LineProjector::fillProjectedValues(), ProjectorBase::getAxisModel(), LineProjector::getPosOn(), ProjectorBase::getRange(), Map3Projector::getZValue(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), Map1Projector::inRange(), prepareAxis(), ProjectorBase::setAxisModel(), setAxisModel(), Profile2DProjector::setOffset(), Hist2DProjImp::setOffset(), BinningProjector::setOffset(), ProfileProjector::setRange(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), Hist1DProjImp::setRange(), setRange(), and LineProjector::valueRange(). |
|
The
All Definition at line 86 of file ProjectorBase.h. Referenced by Hist1DProjImp::checkScaling(), LineProjector::dataRangeOn(), dataRangeOn(), LineProjector::fillDataSource(), LineProjector::fillProjectedValues(), StHist1DProjector::getAverage(), DyHist1DProjector::getAverage(), ProjectorBase::getAxisModel(), LineProjector::getPosOn(), ProjectorBase::getRange(), DyHist1DProjector::getYLabel(), Map3Projector::getZValue(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), Map1Projector::inRange(), prepareAxis(), ProjectorBase::setAxisModel(), setAxisModel(), Profile2DProjector::setOffset(), Hist2DProjImp::setOffset(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), setRange(), and LineProjector::valueRange(). |
|
The May not be used by all Projectors. Definition at line 90 of file ProjectorBase.h. Referenced by Hist2DProjImp::checkScaling(), StHist2DProjector::getAverage(), ProjectorBase::getAxisModel(), ProjectorBase::getRange(), Hist2DProjImp::getZLabel(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), ProjectorBase::setAxisModel(), and ProjectorBase::setRange(). |
|
Dummy member so getZLabel member can return reference.
Reimplemented from ProjectorBase. Definition at line 60 of file FunctionProjector.h. Referenced by getZLabel(). |
|
An X label that might be used.
Referenced by getXLabel(). |