Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TrackingTools
GeomPropagators
src
RealQuadEquation.h
Go to the documentation of this file.
1
#ifndef RealQuadEquation_H
2
#define RealQuadEquation_H
3
4
#include <utility>
5
#include <cmath>
6
#include "
FWCore/Utilities/interface/Visibility.h
"
7
12
struct
dso_internal
RealQuadEquation
{
13
14
bool
hasSolution
;
15
double
first
;
16
double
second
;
17
18
RealQuadEquation
(
double
A
,
double
B
,
double
C
) {
19
double
D
= B*B - 4*A*
C
;
20
if
(D<0) hasSolution =
false
;
21
else
{
22
hasSolution =
true
;
23
double
q
= -0.5*(B + (B>0 ?
sqrt
(D) : -
sqrt
(D)));
24
first
= q/
A
;
25
second
= C/
q
;
26
}
27
}
28
29
};
30
31
#endif
RealQuadEquation::second
double second
Definition:
RealQuadEquation.h:16
lumiQueryAPI.q
tuple q
Definition:
lumiQueryAPI.py:1839
funct::C
C
Definition:
Factorize.h:141
RealQuadEquation::RealQuadEquation
RealQuadEquation(double A, double B, double C)
Definition:
RealQuadEquation.h:18
RealQuadEquation::hasSolution
bool hasSolution
Definition:
RealQuadEquation.h:14
double_binary
Definition:
DDStreamer.cc:227
edm::second
U second(std::pair< T, U > const &p)
Definition:
ParameterSet.cc:250
Visibility.h
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:48
dso_internal
#define dso_internal
Definition:
Visibility.h:13
first
bool first
Definition:
L1TdeRCT.cc:79
funct::A
A
Definition:
Factorize.h:54
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition:
Factorize.h:150
RealQuadEquation::first
double first
Definition:
RealQuadEquation.h:15
RealQuadEquation
Definition:
RealQuadEquation.h:12
Generated for CMSSW Reference Manual by
1.8.5