CMS 3D CMS Logo

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 37 of file FixedAreaIsolationCone.h.

Constructor & Destructor Documentation

FixedAreaIsolationCone::FixedAreaIsolationCone ( )

Definition at line 33 of file FixedAreaIsolationCone.cc.

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

Definition at line 44 of file FixedAreaIsolationCone.cc.

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

Member Function Documentation

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

Definition at line 55 of file FixedAreaIsolationCone.cc.

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

57 {
60  double areaSignalCone = areaFunctionSignalCone_(openingAngleSignalCone);
61 
64  areaRootFunctionIsolationCone_.SetParameterConeArea(areaIsolationCone + areaSignalCone);
66  int statusIsolationCone = areaRootFinderIsolationCone_.Solve();
67  double openingAngleIsolationCone = areaRootFinderIsolationCone_.Root();
68 
69  if ( debugLevel_ > 0 ) {
70  const std::string category = "FixedAreaIsolationCone::operator()";
71  edm::LogVerbatim(category) << "openingAngleSignalCone = " << openingAngleSignalCone << std::endl;
72  edm::LogVerbatim(category) << "areaSignalCone = " << areaSignalCone << std::endl;
73  edm::LogVerbatim(category) << "areaIsolationCone = " << areaIsolationCone << std::endl;
74  edm::LogVerbatim(category) << "openingAngleIsolationCone = " << openingAngleIsolationCone << std::endl;
75  edm::LogVerbatim(category) << "statusIsolationCone = " << statusIsolationCone << std::endl;
76  }
77 
78  if ( statusIsolationCone == 0 ) {
79  error = 0;
80  return openingAngleIsolationCone;
81  } else {
82  error = 1;
83  return 0.;
84  }
85 }
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 56 of file FixedAreaIsolationCone.h.

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

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

Definition at line 58 of file FixedAreaIsolationCone.h.

Referenced by operator()().

ConeAreaRootFunction FixedAreaIsolationCone::areaRootFunctionIsolationCone_
private

Definition at line 57 of file FixedAreaIsolationCone.h.

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

const unsigned int FixedAreaIsolationCone::debugLevel_ = 0
staticprivate

Definition at line 60 of file FixedAreaIsolationCone.h.

Referenced by operator()().