CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
FixedAreaIsolationCone Class Reference

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

Public Member Functions

 FixedAreaIsolationCone ()
 
double operator() (double coneAxisTheta, double coneAxisPhi, double openingAngleSignalCone, double areaIsolationCone, int &error)
 
void setAcceptanceLimit (double etaMaxTrackingAcceptance)
 
 ~FixedAreaIsolationCone ()
 

Private Attributes

ConeAreaFunction areaFunctionSignalCone_
 
ROOT::Math::RootFinder areaRootFinderIsolationCone_
 
ConeAreaRootFunction areaRootFunctionIsolationCone_
 

Static Private Attributes

static const unsigned int debugLevel_ = 0
 

Detailed Description

Description: highest level class to compute size of isolation cone such that area weighted by particle density (proportional to dEta/dTheta = 1/sin(theta)) is constant

Implementation: imported into CMSSW on 05/18/2007

Definition at line 38 of file FixedAreaIsolationCone.h.

Constructor & Destructor Documentation

FixedAreaIsolationCone::FixedAreaIsolationCone ( )

Definition at line 34 of file FixedAreaIsolationCone.cc.

36 {
37 //--- nothing to be done yet
38 //
39 // WARNING: do NOT call ROOT::Math::RootFinder<ROOT::Math::Roots::Brent>::SetFunction here;
40 // this will cause the function to be evaluated before all function parameters are set,
41 // leading to an error message first and erroneous behaviour of the root-finding later on !!!
42 //
43 }
ConeAreaFunction areaFunctionSignalCone_
ConeAreaRootFunction areaRootFunctionIsolationCone_
FixedAreaIsolationCone::~FixedAreaIsolationCone ( )

Definition at line 45 of file FixedAreaIsolationCone.cc.

46 {
47 //--- nothing to be done yet
48 }

Member Function Documentation

double FixedAreaIsolationCone::operator() ( double  coneAxisTheta,
double  coneAxisPhi,
double  openingAngleSignalCone,
double  areaIsolationCone,
int &  error 
)

Definition at line 56 of file FixedAreaIsolationCone.cc.

References areaFunctionSignalCone_, areaRootFinderIsolationCone_, areaRootFunctionIsolationCone_, python.rootplot.argparse::category, debugLevel_, Pi, ConeAreaRootFunction::SetParameterConeArea(), ConeAreaFunction::SetParameterPhi0(), and ConeAreaFunction::SetParameterTheta0().

58 {
61  double areaSignalCone = areaFunctionSignalCone_(openingAngleSignalCone);
62 
65  areaRootFunctionIsolationCone_.SetParameterConeArea(areaIsolationCone + areaSignalCone);
67  int statusIsolationCone = areaRootFinderIsolationCone_.Solve();
68  double openingAngleIsolationCone = areaRootFinderIsolationCone_.Root();
69 
70  if ( debugLevel_ > 0 ) {
71  const std::string category = "FixedAreaIsolationCone::operator()";
72  edm::LogVerbatim(category) << "openingAngleSignalCone = " << openingAngleSignalCone << std::endl;
73  edm::LogVerbatim(category) << "areaSignalCone = " << areaSignalCone << std::endl;
74  edm::LogVerbatim(category) << "areaIsolationCone = " << areaIsolationCone << std::endl;
75  edm::LogVerbatim(category) << "openingAngleIsolationCone = " << openingAngleIsolationCone << std::endl;
76  edm::LogVerbatim(category) << "statusIsolationCone = " << statusIsolationCone << std::endl;
77  }
78 
79  if ( statusIsolationCone == 0 ) {
80  error = 0;
81  return openingAngleIsolationCone;
82  } else {
83  error = 1;
84  return 0.;
85  }
86 }
const double Pi
ConeAreaFunction areaFunctionSignalCone_
ConeAreaRootFunction areaRootFunctionIsolationCone_
void SetParameterPhi0(double phi0)
void SetParameterConeArea(double coneArea)
static const unsigned int debugLevel_
void SetParameterTheta0(double theta0)
ROOT::Math::RootFinder areaRootFinderIsolationCone_
void FixedAreaIsolationCone::setAcceptanceLimit ( double  etaMaxTrackingAcceptance)

Member Data Documentation

ConeAreaFunction FixedAreaIsolationCone::areaFunctionSignalCone_
private

Definition at line 57 of file FixedAreaIsolationCone.h.

Referenced by operator()(), and setAcceptanceLimit().

ROOT::Math::RootFinder FixedAreaIsolationCone::areaRootFinderIsolationCone_
private

Definition at line 59 of file FixedAreaIsolationCone.h.

Referenced by operator()().

ConeAreaRootFunction FixedAreaIsolationCone::areaRootFunctionIsolationCone_
private

Definition at line 58 of file FixedAreaIsolationCone.h.

Referenced by operator()(), and setAcceptanceLimit().

const unsigned int FixedAreaIsolationCone::debugLevel_ = 0
staticprivate

Definition at line 61 of file FixedAreaIsolationCone.h.

Referenced by operator()().