File indexing completed on 2024-04-06 12:23:32
0001 #ifndef PhysicsTools_IsolationUtils_IntegralOverPhiFunction_h
0002 #define PhysicsTools_IsolationUtils_IntegralOverPhiFunction_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include <Math/ParamFunction.h>
0025
0026
0027
0028
0029
0030 class IntegralOverPhiFunction : public ROOT::Math::ParamFunction<ROOT::Math::IParametricGradFunctionOneDim> {
0031 public:
0032 IntegralOverPhiFunction();
0033 ~IntegralOverPhiFunction() override;
0034
0035 void SetParameterTheta0(double theta0);
0036 void SetParameterPhi0(double phi0);
0037 void SetParameterAlpha(double alpha);
0038
0039 ROOT::Math::IGenFunction* Clone() const override { return new IntegralOverPhiFunction(*this); }
0040
0041 private:
0042 void SetParameters(double const* param) override;
0043
0044 double DoEval(double x) const override;
0045 double DoEvalPar(double x, const double* param) const override;
0046 double DoDerivative(double x) const;
0047 double DoParameterDerivative(double, const double*, unsigned int) const override;
0048 void DoParameterGradient(double x, double* paramGradient) const;
0049
0050 mutable double theta0_;
0051 mutable double phi0_;
0052 mutable double alpha_;
0053
0054
0055 mutable unsigned int numSolutionMin1_;
0056 mutable unsigned int numSolutionMax1_;
0057 mutable unsigned int numSolutionMin2_;
0058 mutable unsigned int numSolutionMax2_;
0059 mutable unsigned int numSolutionMin3_;
0060 mutable unsigned int numSolutionMax3_;
0061 mutable unsigned int numSolutionMin4_;
0062 mutable unsigned int numSolutionMax4_;
0063
0064
0065 static const unsigned int debugLevel_ = 0;
0066 };
0067
0068 #endif