CMS 3D CMS Logo

ConeAreaFunction.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_IsolationUtils_ConeAreaFunction_h
2 #define PhysicsTools_IsolationUtils_ConeAreaFunction_h
3 
4 // -*- C++ -*-
5 //
6 // Package: ConeAreaFunction
7 // Class: ConeAreaFunction
8 //
17 //
18 // Original Author: Christian Veelken, UC Davis
19 // Created: Thu Nov 2 13:47:40 CST 2006
20 //
21 //
22 
23 // ROOT include files
24 #include <Math/ParamFunction.h>
25 #include <Math/Integrator.h>
26 
28 
29 //
30 // class declaration
31 //
32 
33 class ConeAreaFunction : public ROOT::Math::ParamFunction<ROOT::Math::IParametricGradFunctionOneDim>
34 {
35  public:
37  ConeAreaFunction(const ConeAreaFunction& bluePrint);
38  ~ConeAreaFunction() override;
39 
40  ConeAreaFunction& operator=(const ConeAreaFunction& bluePrint);
41 
42  void SetParameterTheta0(double theta0);
43  void SetParameterPhi0(double phi0);
44 
45  void SetAcceptanceLimit(double etaMax);
46 
47  ROOT::Math::IGenFunction* Clone () const override { return new ConeAreaFunction(*this); }
48 
49  protected:
50  void SetParameters(double const* param) override;
51  double DoEvalPar(double , const double *) const override;
52  double DoEval(double x) const override;
53  double DoDerivative(double x) const;
54  void DoParameterGradient(double x, double* paramGradient) const;
55  double DoParameterDerivative(double, const double*, unsigned int) const override;
56 
57 // !!! ONLY FOR TESTING
58 mutable double theta0_; // polar angle of cone axis
59 mutable double phi0_; // azimuth angle of cone axis
60 
61 mutable double etaMax_; // maximum pseudo-rapidity at which particles used for tau cone isolation can be detected (etaMax = 2.5 for charged particles; etaMax ~ 4.0 for neutrals)
62 // !!! ONLY FOR TESTING
63 
64  private:
65 /*
66  double theta0_; // polar angle of cone axis
67  double phi0_; // azimuth angle of cone axis
68 
69  double etaMax_; // maximum pseudo-rapidity at which particles used for tau cone isolation can be detected (etaMax = 2.5 for charged particles; etaMax ~ 4.0 for neutrals)
70 */
72  mutable ROOT::Math::Integrator* integrator_;
73 
74  static const unsigned int debugLevel_ = 0;
75 };
76 
77 #endif
static const unsigned int debugLevel_
double DoDerivative(double x) const
void SetAcceptanceLimit(double etaMax)
void DoParameterGradient(double x, double *paramGradient) const
void SetParameters(double const *param) override
ROOT::Math::Integrator * integrator_
void SetParameterPhi0(double phi0)
IntegrandThetaFunction * fTheta_
void SetParameterTheta0(double theta0)
double DoParameterDerivative(double, const double *, unsigned int) const override
double DoEval(double x) const override
~ConeAreaFunction() override
ROOT::Math::IGenFunction * Clone() const override
ConeAreaFunction & operator=(const ConeAreaFunction &bluePrint)
double DoEvalPar(double, const double *) const override