13 theQuadraticSolutionFromStart(point,direction,curvature,propDir),
23 double px = direction.
x();
24 double py = direction.
y();
25 double pz = direction.
z();
26 double pt = px*px+py*py;
27 double p =
sqrt(pt+pz*pz);
57 template <
class T> std::pair<bool,double>
62 const int maxIterations(100);
84 if ( --iteration == 0 ) {
85 return std::pair<bool,double>(
false,0);
91 std::pair<bool,double> deltaS1;
103 if ( !deltaS1.first )
return deltaS1;
107 dSTotal += deltaS1.second;
113 if ( newDir!=propDir )
return std::pair<bool,double>(
false,0);
118 if ( deltaS1.second*deltaS1.second<maxDeltaS2 )
break;
128 return std::pair<bool,double>(
true,dSTotal);
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
Sin< T >::type sin(const T &t)
T curvature(T InversePt, const edm::EventSetup &iSetup)
T z() const
Cartesian z coordinate.
Cos< T >::type cos(const T &t)
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point