22 if (newStatePair.first) {
40 if (newStatePair.first) {
70 double pxOrig = pvecOrig.
x();
71 double pyOrig = pvecOrig.
y();
72 double pzOrig = pvecOrig.
z();
73 double xOrig = xvecOrig.
x();
74 double yOrig = xvecOrig.
y();
75 double zOrig = xvecOrig.
z();
78 double fac = 1./originalFTS.
charge()/
101 std::pair<bool,double> propResult = planeCrossing.
pathLength(*plane);
102 if ( !propResult.first ) {
103 edm::LogWarning (
"TSCPBuilderNoMaterial") <<
"Propagation to perigee plane failed!";
106 double s = propResult.second;
111 pGen *= pvecOrig.
mag()/pGen.mag();
143 double xOrig = xvecOrig.
x();
144 double yOrig = xvecOrig.
y();
145 double zOrig = xvecOrig.
z();
146 double xR = referencePoint.
x();
147 double yR = referencePoint.
y();
149 double s2D = (xR - xOrig) *
cos(phi) + (yR - yOrig) *
sin(phi);
150 double s = s2D /
sin(theta);
151 double xGen = xOrig + s2D*
cos(phi);
152 double yGen = yOrig + s2D*
sin(phi);
153 double zGen = zOrig + s2D/
tan(theta);
virtual PositionType position(double s) const
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
virtual TrajectoryStateClosestToPoint operator()(const FTS &originalFTS, const GlobalPoint &referencePoint) const
const GlobalTrajectoryParameters & parameters() const
const AlgebraicMatrix55 & jacobian() const
Sin< T >::type sin(const T &t)
PairBoolFTS createFTSatTransverseImpactPointCharged(const FTS &originalFTS, const GlobalPoint &referencePoint) const
Geom::Phi< T > phi() const
Global3DPoint GlobalPoint
Geom::Theta< T > theta() const
GlobalPoint globalPosition() const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
TrackCharge charge() const
std::pair< bool, FreeTrajectoryState > PairBoolFTS
const CurvilinearTrajectoryError & curvilinearError() const
Geom::Theta< T > theta() const
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
static TrajectoryStateClosestToPoint constructTSCP(const FTS &originalFTS, const GlobalPoint &referencePoint)
static bool positionEqual(const GlobalPoint &ptB, const GlobalPoint &ptA)
T z() const
Cartesian z coordinate.
FreeTrajectoryState const * freeState(bool withErrors=true) const
Cos< T >::type cos(const T &t)
Vector3DBase< double, GlobalTag > GlobalVectorDouble
Tan< T >::type tan(const T &t)
GlobalVector momentum() const
virtual std::pair< bool, double > pathLength(const Plane &)
Vector3DBase unit() const
GlobalPoint position() const
double transverseCurvature() const
const AlgebraicSymMatrix55 & matrix() const
const MagneticField & magneticField() const
PairBoolFTS createFTSatTransverseImpactPointNeutral(const FTS &originalFTS, const GlobalPoint &referencePoint) const
static const G4double kappa
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55
virtual DirectionType direction(double s) const
Global3DVector GlobalVector
PairBoolFTS createFTSatTransverseImpactPoint(const FTS &originalFTS, const GlobalPoint &referencePoint) const