2#ifndef RIVET_SINGLEVALUEPROJECTION_HH
3#define RIVET_SINGLEVALUEPROJECTION_HH
5#include "Rivet/Projection.hh"
22 setName(
"SingleValueProjection");
Base class for all Rivet projections.
Definition: Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:142
Base class for projections returning a single floating point value.
Definition: SingleValueProjection.hh:17
double operator()() const
Return the single value.
Definition: SingleValueProjection.hh:38
bool isValueSet() const
Returns true if the value has been set.
Definition: SingleValueProjection.hh:26
void setValue(double v)
Set the value.
Definition: SingleValueProjection.hh:46
void set(double v)
Definition: SingleValueProjection.hh:51
double value() const
Return the single value.
Definition: SingleValueProjection.hh:33
bool isSet() const
Definition: SingleValueProjection.hh:30
SingleValueProjection()
The default constructor.
Definition: SingleValueProjection.hh:21
void clear()
Unset the value.
Definition: SingleValueProjection.hh:54
Definition: MC_Cent_pPb.hh:10