CMS 3D CMS Logo

function::SmoothStepFunction Struct Reference

#include <ElectroWeakAnalysis/ZMuMu/interface/SmoothStepFunction.h>

List of all members.

Public Member Functions

double operator() (double x) const
 SmoothStepFunction (double t)
 SmoothStepFunction (boost::shared_ptr< double > t)
 SmoothStepFunction (const Parameter &t)

Public Attributes

boost::shared_ptr< double > trend

Static Public Attributes

static const unsigned int arguments = 1


Detailed Description

Definition at line 9 of file SmoothStepFunction.h.


Constructor & Destructor Documentation

function::SmoothStepFunction::SmoothStepFunction ( const Parameter &  t  )  [inline]

Definition at line 11 of file SmoothStepFunction.h.

References trend.

00011                                             : 
00012       trend(t.ptr()) { }

function::SmoothStepFunction::SmoothStepFunction ( boost::shared_ptr< double >  t  )  [inline]

Definition at line 13 of file SmoothStepFunction.h.

References trend.

00013                                                  : 
00014       trend(t) { }

function::SmoothStepFunction::SmoothStepFunction ( double  t  )  [inline]

Definition at line 15 of file SmoothStepFunction.h.

References trend.

00015                                 : 
00016       trend(new double(t)){}


Member Function Documentation

double function::SmoothStepFunction::operator() ( double  x  )  const [inline]

Definition at line 17 of file SmoothStepFunction.h.

References funct::exp(), trend, and z.

00017                                       {
00018       double z = (x - 40)*(*trend);
00019       if(fabs(z)<0) return 0;
00020       return 2/(1+exp(-z)) -1;
00021     }


Member Data Documentation

const unsigned int function::SmoothStepFunction::arguments = 1 [static]

Definition at line 10 of file SmoothStepFunction.h.

boost::shared_ptr<double> function::SmoothStepFunction::trend

Definition at line 22 of file SmoothStepFunction.h.

Referenced by operator()(), and SmoothStepFunction().


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