CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
function::SmoothStepFunction Struct Reference

#include <SmoothStepFunction.h>

Public Member Functions

double operator() (double x) const
 
 SmoothStepFunction (const Parameter &t)
 
 SmoothStepFunction (boost::shared_ptr< double > t)
 
 SmoothStepFunction (double 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.

11  :
12  trend(t.ptr()) { }
boost::shared_ptr< double > trend
function::SmoothStepFunction::SmoothStepFunction ( boost::shared_ptr< double >  t)
inline

Definition at line 13 of file SmoothStepFunction.h.

13  :
14  trend(t) { }
boost::shared_ptr< double > trend
function::SmoothStepFunction::SmoothStepFunction ( double  t)
inline

Definition at line 15 of file SmoothStepFunction.h.

15  :
16  trend(new double(t)){}
boost::shared_ptr< double > trend

Member Function Documentation

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

Definition at line 17 of file SmoothStepFunction.h.

References create_public_lumi_plots::exp, trend, and detailsBasic3DVector::z.

17  {
18  double z = (x - 40)*(*trend);
19  if(fabs(z)<0) return 0;
20  return 2/(1+exp(-z)) -1;
21  }
boost::shared_ptr< double > trend
double double double z
Definition: DDAxes.h:10

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()().