CMS 3D CMS Logo

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

List of all members.

Public Member Functions

ROOT::Math::IGenFunction * Clone () const
 ConeAreaRootFunction (const ConeAreaRootFunction &bluePrint)
 ConeAreaRootFunction ()
ConeAreaRootFunctionoperator= (const ConeAreaRootFunction &bluePrint)
void SetParameterConeArea (double coneArea)
 ~ConeAreaRootFunction ()

Private Member Functions

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

Private Attributes

double coneArea_

Static Private Attributes

static const unsigned int debugLevel_ = 0

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 30 of file ConeAreaRootFunction.h.


Constructor & Destructor Documentation

ConeAreaRootFunction::ConeAreaRootFunction ( )

Definition at line 38 of file ConeAreaRootFunction.cc.

References coneArea_.

Referenced by Clone().

ConeAreaRootFunction::ConeAreaRootFunction ( const ConeAreaRootFunction bluePrint)

Definition at line 44 of file ConeAreaRootFunction.cc.

References coneArea_.

  : ConeAreaFunction(bluePrint)
{
  coneArea_ = bluePrint.coneArea_;
}
ConeAreaRootFunction::~ConeAreaRootFunction ( )

Definition at line 50 of file ConeAreaRootFunction.cc.

{
//--- nothing to be done yet...
}

Member Function Documentation

ROOT::Math::IGenFunction* ConeAreaRootFunction::Clone ( ) const [inline, virtual]

Reimplemented from ConeAreaFunction.

Definition at line 41 of file ConeAreaRootFunction.h.

References ConeAreaRootFunction().

{ return new ConeAreaRootFunction(*this); }
double ConeAreaRootFunction::DoEval ( double  x) const [private]

Reimplemented from ConeAreaFunction.

Definition at line 91 of file ConeAreaRootFunction.cc.

References coneArea_.

{
//--- calculate difference between area covered by cone of opening angle alpha
//    (given as function argument and measured from cone axis)
//    and cone area set as parameter

  return ConeAreaFunction::DoEval(x) - coneArea_;
}  
ConeAreaRootFunction & ConeAreaRootFunction::operator= ( const ConeAreaRootFunction bluePrint)

Definition at line 59 of file ConeAreaRootFunction.cc.

References coneArea_.

{
  ConeAreaFunction::operator=(bluePrint);

  coneArea_ = bluePrint.coneArea_;

  return (*this);
}
void ConeAreaRootFunction::SetParameterConeArea ( double  coneArea)

Definition at line 72 of file ConeAreaRootFunction.cc.

References coneArea_.

Referenced by FixedAreaIsolationCone::operator()().

{
  coneArea_ = coneArea;
}
void ConeAreaRootFunction::SetParameters ( double *  param) [private]

Reimplemented from ConeAreaFunction.

Definition at line 77 of file ConeAreaRootFunction.cc.

References coneArea_, and debugLevel_.

{
  if ( debugLevel_ > 0 ) {
    edm::LogVerbatim("") << "<ConeAreaRootFunction::SetParameters>:" << std::endl
                         << " theta0 = " << param[0] << std::endl
                         << " phi0 = " << param[1] << std::endl
                         << " coneArea = " << param[2] << std::endl;
  }

  ConeAreaFunction::SetParameters(param);
  
  coneArea_ = param[2];
}

Member Data Documentation

const unsigned int ConeAreaRootFunction::debugLevel_ = 0 [static, private]

Reimplemented from ConeAreaFunction.

Definition at line 50 of file ConeAreaRootFunction.h.

Referenced by SetParameters().