Go to the documentation of this file.
19 if (newStatePair.first) {
34 if (newStatePair.first) {
59 double pxOrig = pvecOrig.
x();
60 double pyOrig = pvecOrig.
y();
61 double pzOrig = pvecOrig.
z();
62 double xOrig = xvecOrig.
x();
63 double yOrig = xvecOrig.
y();
64 double zOrig = xvecOrig.
z();
89 std::pair<bool, double> propResult = planeCrossing.
pathLength(*plane);
90 if (!propResult.first) {
91 edm::LogWarning(
"TSCPBuilderNoMaterial") <<
"Propagation to perigee plane failed!";
94 double s = propResult.second;
99 pGen *= pvecOrig.
mag() / pGen.mag();
122 const FTS& originalFTS,
const GlobalPoint& referencePoint)
const {
126 double xOrig = xvecOrig.
x();
127 double yOrig = xvecOrig.
y();
128 double zOrig = xvecOrig.
z();
129 double xR = referencePoint.
x();
130 double yR = referencePoint.
y();
132 double s2D = (xR - xOrig) *
cos(
phi) + (yR - yOrig) *
sin(
phi);
134 double xGen = xOrig + s2D *
cos(
phi);
135 double yGen = yOrig + s2D *
sin(
phi);
136 double zGen = zOrig + s2D /
tan(
theta);
PairBoolFTS createFTSatTransverseImpactPointCharged(const FTS &originalFTS, const GlobalPoint &referencePoint) const
GlobalVector momentum() const
const AlgebraicMatrix55 & jacobian() const
Geom::Theta< T > theta() const
GlobalPoint globalPosition() const
TrackCharge charge() const
GlobalPoint position() const
Global3DVector GlobalVector
Log< level::Warning, false > LogWarning
Sin< T >::type sin(const T &t)
static bool positionEqual(const GlobalPoint &ptB, const GlobalPoint &ptA)
std::pair< bool, double > pathLength(const Plane &) override
T y() const
Cartesian y coordinate.
Vector3DBase unit() const
Cos< T >::type cos(const T &t)
FreeTrajectoryState const * freeState(bool withErrors=true) const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55
const CurvilinearTrajectoryError & curvilinearError() const
TrajectoryStateClosestToPoint operator()(const FTS &originalFTS, const GlobalPoint &referencePoint) const override
Vector3DBase< double, GlobalTag > GlobalVectorDouble
Geom::Theta< T > theta() const
Global3DPoint GlobalPoint
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
DirectionType direction(double s) const override
Tan< T >::type tan(const T &t)
const GlobalTrajectoryParameters & parameters() const
std::pair< bool, FreeTrajectoryState > PairBoolFTS
static TrajectoryStateClosestToPoint constructTSCP(const FTS &originalFTS, const GlobalPoint &referencePoint)
PositionType position(double s) const override
T x() const
Cartesian x coordinate.
const MagneticField & magneticField() const
static const G4double kappa
PairBoolFTS createFTSatTransverseImpactPointNeutral(const FTS &originalFTS, const GlobalPoint &referencePoint) const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
T z() const
Cartesian z coordinate.
double transverseCurvature() const
Geom::Phi< T > phi() const
const AlgebraicSymMatrix55 & matrix() const
PairBoolFTS createFTSatTransverseImpactPoint(const FTS &originalFTS, const GlobalPoint &referencePoint) const