CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
funct::Exponential Struct Reference

#include <Exponential.h>

Public Member Functions

 Exponential (const Parameter &l)
 
 Exponential (std::shared_ptr< double > l)
 
 Exponential (double l)
 
double operator() (double x) const
 

Public Attributes

std::shared_ptr< double > lambda
 

Detailed Description

Definition at line 9 of file Exponential.h.

Constructor & Destructor Documentation

◆ Exponential() [1/3]

funct::Exponential::Exponential ( const Parameter l)
inline

Definition at line 10 of file Exponential.h.

10 : lambda(l.ptr()) {}
std::shared_ptr< double > lambda
Definition: Exponential.h:14

◆ Exponential() [2/3]

funct::Exponential::Exponential ( std::shared_ptr< double >  l)
inline

Definition at line 11 of file Exponential.h.

11 : lambda(l) {}
std::shared_ptr< double > lambda
Definition: Exponential.h:14

◆ Exponential() [3/3]

funct::Exponential::Exponential ( double  l)
inline

Definition at line 12 of file Exponential.h.

12 : lambda(new double(l)) {}
std::shared_ptr< double > lambda
Definition: Exponential.h:14

Member Function Documentation

◆ operator()()

double funct::Exponential::operator() ( double  x) const
inline

Definition at line 13 of file Exponential.h.

References JetChargeProducer_cfi::exp, lambda, and x.

13 { return std::exp((*lambda) * x); }
std::shared_ptr< double > lambda
Definition: Exponential.h:14

Member Data Documentation

◆ lambda

std::shared_ptr<double> funct::Exponential::lambda

Definition at line 14 of file Exponential.h.

Referenced by operator()().