CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
IntegralOverPhiFunction.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_IsolationUtils_IntegralOverPhiFunction_h
2 #define PhysicsTools_IsolationUtils_IntegralOverPhiFunction_h
3 
4 // -*- C++ -*-
5 //
6 // Package: IntegralOverPhiFunction
7 // Class: IntegralOverPhiFunction
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 
26 //
27 // class declaration
28 //
29 
30 class IntegralOverPhiFunction : public ROOT::Math::ParamFunction<ROOT::Math::IParametricGradFunctionOneDim> {
31 public:
33  ~IntegralOverPhiFunction() override;
34 
35  void SetParameterTheta0(double theta0);
36  void SetParameterPhi0(double phi0);
37  void SetParameterAlpha(double alpha);
38 
39  ROOT::Math::IGenFunction* Clone() const override { return new IntegralOverPhiFunction(*this); }
40 
41 private:
42  void SetParameters(double const* param) override;
43 
44  double DoEval(double x) const override;
45  double DoEvalPar(double x, const double* param) const override;
46  double DoDerivative(double x) const;
47  double DoParameterDerivative(double, const double*, unsigned int) const override;
48  void DoParameterGradient(double x, double* paramGradient) const;
49 
50  mutable double theta0_; // polar angle of cone axis
51  mutable double phi0_; // azimuth angle of cone axis
52  mutable double alpha_; // opening angle of cone (measured from cone axis)
53 
54  // !!! ONLY FOR TESTING
55  mutable unsigned int numSolutionMin1_;
56  mutable unsigned int numSolutionMax1_;
57  mutable unsigned int numSolutionMin2_;
58  mutable unsigned int numSolutionMax2_;
59  mutable unsigned int numSolutionMin3_;
60  mutable unsigned int numSolutionMax3_;
61  mutable unsigned int numSolutionMin4_;
62  mutable unsigned int numSolutionMax4_;
63  // FOR TESTING ONLY !!!
64 
65  static const unsigned int debugLevel_ = 0;
66 };
67 
68 #endif
void SetParameters(double const *param) override
float alpha
Definition: AMPTWrapper.h:105
ROOT::Math::IGenFunction * Clone() const override
void SetParameterAlpha(double alpha)
double DoDerivative(double x) const
double DoEvalPar(double x, const double *param) const override
static const unsigned int debugLevel_
double DoEval(double x) const override
void DoParameterGradient(double x, double *paramGradient) const
double DoParameterDerivative(double, const double *, unsigned int) const override
void SetParameterTheta0(double theta0)