#include <PhysicsTools/IsolationUtils/src/ConeAreaRootFunction.cc>
Public Member Functions | |
ROOT::Math::IGenFunction * | Clone () const |
ConeAreaRootFunction (const ConeAreaRootFunction &bluePrint) | |
ConeAreaRootFunction () | |
ConeAreaRootFunction & | operator= (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 |
Implementation: imported into CMSSW on 05/18/2007
Definition at line 30 of file ConeAreaRootFunction.h.
ConeAreaRootFunction::ConeAreaRootFunction | ( | ) |
Definition at line 38 of file ConeAreaRootFunction.cc.
References coneArea_.
Referenced by Clone().
00039 : ConeAreaFunction() 00040 { 00041 coneArea_ = 0; 00042 }
ConeAreaRootFunction::ConeAreaRootFunction | ( | const ConeAreaRootFunction & | bluePrint | ) |
Definition at line 44 of file ConeAreaRootFunction.cc.
References coneArea_.
00045 : ConeAreaFunction(bluePrint) 00046 { 00047 coneArea_ = bluePrint.coneArea_; 00048 }
ConeAreaRootFunction::~ConeAreaRootFunction | ( | ) |
ROOT::Math::IGenFunction* ConeAreaRootFunction::Clone | ( | ) | const [inline] |
Reimplemented from ConeAreaFunction.
Definition at line 41 of file ConeAreaRootFunction.h.
References ConeAreaRootFunction().
00041 { return new ConeAreaRootFunction(*this); }
double ConeAreaRootFunction::DoEval | ( | double | x | ) | const [private] |
Reimplemented from ConeAreaFunction.
Definition at line 91 of file ConeAreaRootFunction.cc.
References coneArea_, and ConeAreaFunction::DoEval().
00092 { 00093 //--- calculate difference between area covered by cone of opening angle alpha 00094 // (given as function argument and measured from cone axis) 00095 // and cone area set as parameter 00096 00097 return ConeAreaFunction::DoEval(x) - coneArea_; 00098 }
ConeAreaRootFunction & ConeAreaRootFunction::operator= | ( | const ConeAreaRootFunction & | bluePrint | ) |
Definition at line 59 of file ConeAreaRootFunction.cc.
References coneArea_, and ConeAreaFunction::operator=().
00060 { 00061 ConeAreaFunction::operator=(bluePrint); 00062 00063 coneArea_ = bluePrint.coneArea_; 00064 00065 return (*this); 00066 }
void ConeAreaRootFunction::SetParameterConeArea | ( | double | coneArea | ) |
Definition at line 72 of file ConeAreaRootFunction.cc.
References coneArea_.
Referenced by FixedAreaIsolationCone::operator()().
00073 { 00074 coneArea_ = coneArea; 00075 }
void ConeAreaRootFunction::SetParameters | ( | double * | param | ) | [private] |
Reimplemented from ConeAreaFunction.
Definition at line 77 of file ConeAreaRootFunction.cc.
References coneArea_, debugLevel_, lat::endl(), and ConeAreaFunction::SetParameters().
00078 { 00079 if ( debugLevel_ > 0 ) { 00080 edm::LogVerbatim("") << "<ConeAreaRootFunction::SetParameters>:" << std::endl 00081 << " theta0 = " << param[0] << std::endl 00082 << " phi0 = " << param[1] << std::endl 00083 << " coneArea = " << param[2] << std::endl; 00084 } 00085 00086 ConeAreaFunction::SetParameters(param); 00087 00088 coneArea_ = param[2]; 00089 }
double ConeAreaRootFunction::coneArea_ [private] |
Definition at line 48 of file ConeAreaRootFunction.h.
Referenced by ConeAreaRootFunction(), DoEval(), operator=(), SetParameterConeArea(), and SetParameters().
const unsigned int ConeAreaRootFunction::debugLevel_ = 0 [static, private] |
Reimplemented from ConeAreaFunction.
Definition at line 50 of file ConeAreaRootFunction.h.
Referenced by SetParameters().