CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
ConeAreaRootFunction Class Reference

#include <PhysicsTools/IsolationUtils/src/ConeAreaRootFunction.cc>

Inheritance diagram for ConeAreaRootFunction:
ConeAreaFunction

Public Member Functions

ROOT::Math::IGenFunction * Clone () const override
 
 ConeAreaRootFunction ()
 
 ConeAreaRootFunction (const ConeAreaRootFunction &bluePrint)
 
ConeAreaRootFunctionoperator= (const ConeAreaRootFunction &bluePrint)
 
void SetParameterConeArea (double coneArea)
 
 ~ConeAreaRootFunction ()
 
- Public Member Functions inherited from ConeAreaFunction
 ConeAreaFunction ()
 
 ConeAreaFunction (const ConeAreaFunction &bluePrint)
 
ConeAreaFunctionoperator= (const ConeAreaFunction &bluePrint)
 
void SetAcceptanceLimit (double etaMax)
 
void SetParameterPhi0 (double phi0)
 
void SetParameterTheta0 (double theta0)
 
 ~ConeAreaFunction ()
 

Private Member Functions

double DoEval (double x) const override
 
void SetParameters (const double *param) override
 

Private Attributes

double coneArea_
 

Static Private Attributes

static const unsigned int debugLevel_ = 0
 

Additional Inherited Members

- Protected Member Functions inherited from ConeAreaFunction
double DoDerivative (double x) const
 
double DoEval (double x) const override
 
virtual double DoEvalPar (double, const double *) const override
 
virtual double DoParameterDerivative (double, const double *, unsigned int) const override
 
void DoParameterGradient (double x, double *paramGradient) const
 
void SetParameters (double const *param) override
 
- Protected Attributes inherited from ConeAreaFunction
double etaMax_
 
double phi0_
 
double theta0_
 

Detailed Description

Description: low level class to compute three-dimensional opening angle of isolation cone corresponding to area given as function argument

Implementation: imported into CMSSW on 05/18/2007

Definition at line 29 of file ConeAreaRootFunction.h.

Constructor & Destructor Documentation

ConeAreaRootFunction::ConeAreaRootFunction ( )

Definition at line 37 of file ConeAreaRootFunction.cc.

References coneArea_.

Referenced by Clone().

39 {
40  coneArea_ = 0;
41 }
ConeAreaRootFunction::ConeAreaRootFunction ( const ConeAreaRootFunction bluePrint)

Definition at line 43 of file ConeAreaRootFunction.cc.

References coneArea_.

44  : ConeAreaFunction(bluePrint)
45 {
46  coneArea_ = bluePrint.coneArea_;
47 }
ConeAreaRootFunction::~ConeAreaRootFunction ( )

Definition at line 49 of file ConeAreaRootFunction.cc.

50 {
51 //--- nothing to be done yet...
52 }

Member Function Documentation

ROOT::Math::IGenFunction* ConeAreaRootFunction::Clone ( ) const
inlineoverridevirtual

Reimplemented from ConeAreaFunction.

Definition at line 40 of file ConeAreaRootFunction.h.

References ConeAreaRootFunction(), DoEval(), SetParameters(), and x.

40 { return new ConeAreaRootFunction(*this); }
double ConeAreaRootFunction::DoEval ( double  x) const
overrideprivate

Definition at line 90 of file ConeAreaRootFunction.cc.

References coneArea_, and ConeAreaFunction::DoEval().

Referenced by Clone().

91 {
92 //--- calculate difference between area covered by cone of opening angle alpha
93 // (given as function argument and measured from cone axis)
94 // and cone area set as parameter
95 
97 }
double DoEval(double x) const override
ConeAreaRootFunction & ConeAreaRootFunction::operator= ( const ConeAreaRootFunction bluePrint)

Definition at line 58 of file ConeAreaRootFunction.cc.

References coneArea_, and ConeAreaFunction::operator=().

59 {
60  ConeAreaFunction::operator=(bluePrint);
61 
62  coneArea_ = bluePrint.coneArea_;
63 
64  return (*this);
65 }
ConeAreaFunction & operator=(const ConeAreaFunction &bluePrint)
void ConeAreaRootFunction::SetParameterConeArea ( double  coneArea)

Definition at line 71 of file ConeAreaRootFunction.cc.

References coneArea_.

Referenced by FixedAreaIsolationCone::operator()().

72 {
73  coneArea_ = coneArea;
74 }
void ConeAreaRootFunction::SetParameters ( const double *  param)
overrideprivate

Definition at line 76 of file ConeAreaRootFunction.cc.

References coneArea_, debugLevel_, and ConeAreaFunction::SetParameters().

Referenced by Clone().

77 {
78  if ( debugLevel_ > 0 ) {
79  edm::LogVerbatim("") << "<ConeAreaRootFunction::SetParameters>:" << std::endl
80  << " theta0 = " << param[0] << std::endl
81  << " phi0 = " << param[1] << std::endl
82  << " coneArea = " << param[2] << std::endl;
83  }
84 
86 
87  coneArea_ = param[2];
88 }
void SetParameters(double const *param) override
static const unsigned int debugLevel_

Member Data Documentation

double ConeAreaRootFunction::coneArea_
private
const unsigned int ConeAreaRootFunction::debugLevel_ = 0
staticprivate

Definition at line 49 of file ConeAreaRootFunction.h.

Referenced by SetParameters().