CMS 3D CMS Logo

funct::Parameter Class Reference

#include <PhysicsTools/Utilities/interface/Parameter.h>

List of all members.

Public Member Functions

const std::string & name () const
 operator boost::shared_ptr< double > () const
 operator double () const
double operator() (double, double) const
double operator() (double) const
double operator() () const
Parameteroperator= (double value)
 Parameter (const std::string &name="undefined", double value=0)
boost::shared_ptr< double > ptr () const
double value () const

Private Attributes

std::string name_
boost::shared_ptr< double > value_


Detailed Description

Definition at line 8 of file Parameter.h.


Constructor & Destructor Documentation

funct::Parameter::Parameter ( const std::string &  name = "undefined",
double  value = 0 
) [inline, explicit]

Definition at line 10 of file Parameter.h.

00010                                                                                :
00011       name_(name), value_(new double(value)) {
00012     }
    const std::string & name() const { return name_; }


Member Function Documentation

const std::string& funct::Parameter::name ( void   )  const [inline]

Definition at line 13 of file Parameter.h.

References name_.

Referenced by fit::RootMinuit< Function >::addParameter(), funct::operator<<(), root::RooFitFunction< X, Expr >::RooFitFunction(), and root::tf1_t().

00013 { return name_; }

funct::Parameter::operator boost::shared_ptr< double > (  )  const [inline]

Definition at line 20 of file Parameter.h.

References value_.

00020 { return value_; }

funct::Parameter::operator double (  )  const [inline]

Definition at line 16 of file Parameter.h.

References value().

00016 { return value(); }

double funct::Parameter::operator() ( double  ,
double   
) const [inline]

Definition at line 18 of file Parameter.h.

References value_.

00018 { return *value_; }

double funct::Parameter::operator() ( double   )  const [inline]

Definition at line 17 of file Parameter.h.

References value_.

00017 { return *value_; }

double funct::Parameter::operator() ( void   )  const [inline]

Definition at line 15 of file Parameter.h.

References value_.

00015 { return *value_; }

Parameter& funct::Parameter::operator= ( double  value  )  [inline]

Definition at line 21 of file Parameter.h.

00021 { *value_ = value; return * this; }

boost::shared_ptr<double> funct::Parameter::ptr (  )  const [inline]

Definition at line 19 of file Parameter.h.

References value_.

Referenced by root::RooFitFunction< X, Expr >::RooFitFunction(), and root::tf1_t().

00019 { return value_; }

double funct::Parameter::value ( void   )  const [inline]

Definition at line 14 of file Parameter.h.

References value_.

Referenced by operator double(), and funct::operator<<().

00014 { return *value_; }


Member Data Documentation

std::string funct::Parameter::name_ [private]

Definition at line 23 of file Parameter.h.

Referenced by name().

boost::shared_ptr<double> funct::Parameter::value_ [private]

Definition at line 24 of file Parameter.h.

Referenced by operator boost::shared_ptr< double >(), operator()(), ptr(), and value().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:47:02 2009 for CMSSW by  doxygen 1.5.4