39 void checkSolutions(
unsigned int i,
unsigned int& numSolution1,
unsigned int& numSolution2,
unsigned int& numSolution3,
unsigned int& numSolution4);
46 :
ROOT::Math::ParamFunction<
ROOT::Math::IParametricGradFunctionOneDim>(3)
68 edm::LogVerbatim(
"") <<
"<IntegralOverPhiFunction::~IntegralOverPhiFunction>:" << std::endl
124 if ( x < epsilon || x > (
TMath::Pi() - epsilon) )
return 0.;
132 if ( theta0 < epsilon ) theta0 =
epsilon;
134 double cosTheta0 = TMath::Cos(theta0);
135 double cos2Theta0 = TMath::Cos(2*theta0);
136 double sinTheta0 = TMath::Sin(theta0);
137 double cotTheta0 = 1./TMath::Tan(theta0);
138 double cscTheta0 = 1./TMath::Sin(theta0);
141 double cosPhi0 = TMath::Cos(
phi0_);
142 double tanPhi0 = TMath::Tan(
phi0_);
145 double cosTheta = TMath::Cos(x);
146 double cos2Theta = TMath::Cos(2*x);
147 double sinTheta = TMath::Sin(x);
148 double cotTheta = 1./TMath::Tan(x);
149 double cscTheta = 1./TMath::Sin(x);
152 double cosAlpha = TMath::Cos(
alpha_);
154 double s = -cosPhi0*cosPhi0*(2*cosAlpha*cosAlpha + cos2Theta - 4*cosAlpha*cosTheta*cosTheta0 + cos2Theta0)*sinTheta*sinTheta*sinTheta0*sinTheta0;
171 std::cerr <<
"Error in <IntegralOverPhiFunction::operator()>: failed to compute return value !" << std::endl;
174 double r = (1./TMath::Sqrt(2.))*(cscTheta*cscTheta*cscTheta0*cscTheta0*TMath::Sqrt(s)*tanPhi0);
175 double t = cosPhi0*(-cotTheta*cotTheta0 + cosAlpha*cscTheta*cscTheta0);
178 phi[0] = -TMath::ACos(t - r);
179 phi[1] = TMath::ACos(t - r);
180 phi[2] = -TMath::ACos(t + r);
181 phi[3] = TMath::ACos(t + r);
185 <<
"phi[0] = " << phi[0] <<
" (phi[0] - phi0 = " << (phi[0] -
phi0_)*180/
TMath::Pi() <<
")" << std::endl
186 <<
"phi[1] = " << phi[1] <<
" (phi[1] - phi0 = " << (phi[1] -
phi0_)*180/
TMath::Pi() <<
")" << std::endl
187 <<
"phi[2] = " << phi[2] <<
" (phi[2] - phi0 = " << (phi[2] -
phi0_)*180/
TMath::Pi() <<
")" << std::endl
188 <<
"phi[3] = " << phi[3] <<
" (phi[3] - phi0 = " << (phi[3] -
phi0_)*180/
TMath::Pi() <<
")" << std::endl;
193 for (
unsigned int i = 0;
i < 4; ++
i ) {
194 for (
unsigned int j = (
i + 1);
j < 4; ++
j ) {
198 double dPhi_i = phi[
i] -
phi0_;
199 double dPhi_j = phi0_ - phi[
j];
215 if ( phiMin == 0 && phiMax == 0 ) {
216 edm::LogError(
"") <<
"failed to compute Return Value !" << std::endl;
251 void checkSolutions(
unsigned int i,
unsigned int& numSolution1,
unsigned int& numSolution2,
unsigned int& numSolution3,
unsigned int& numSolution4)
void SetParameters(double const *param) override
void SetParameterPhi0(double phi0)
unsigned int numSolutionMin2_
unsigned int numSolutionMax4_
void checkSolutions(unsigned int i, unsigned int &numSolution1, unsigned int &numSolution2, unsigned int &numSolution3, unsigned int &numSolution4)
T x() const
Cartesian x coordinate.
void SetParameterAlpha(double alpha)
unsigned int numSolutionMin1_
unsigned int numSolutionMax3_
unsigned int numSolutionMax2_
double DoDerivative(double x) const
virtual double DoEvalPar(double x, const double *param) const override
static const unsigned int debugLevel_
unsigned int numSolutionMin3_
unsigned int numSolutionMin4_
double DoEval(double x) const override
void DoParameterGradient(double x, double *paramGradient) const
IntegralOverPhiFunction()
~IntegralOverPhiFunction()
virtual double DoParameterDerivative(double, const double *, unsigned int) const override
unsigned int numSolutionMax1_
void SetParameterTheta0(double theta0)