9 #include "CLHEP/Vector/ThreeVector.h" 10 #include "CLHEP/Vector/LorentzVector.h" 11 #include "CLHEP/Matrix/Vector.h" 22 bool theIsValid =
false;
27 cout <<
"====>>>> SignedImpactParameter3D::apply : TSOS not valid = " <<
TSOS.
isValid() << endl;
28 return pair<bool, Measurement1D>(theIsValid,
Measurement1D(0., 0.));
42 double theDistanceAlongJetAxis = J.
dot(theTSOS.
globalPosition() - vertexPosition);
43 theValue =
D.mag() * (theDistanceAlongJetAxis /
abs(theDistanceAlongJetAxis));
66 double E2 = ROOT::Math::Similarity(deriv_v,
vertex.covariance());
69 theError =
sqrt(E1 + E2);
73 return pair<bool, Measurement1D>(theIsValid,
A);
75 return pair<bool, Measurement1D>(theIsValid,
Measurement1D(0., 0.));
111 double theDistanceAlongJetAxis(0.);
112 double theDistanceToJetAxis(0.);
113 double theLDist_err(0.);
117 cout <<
"====>>>> SignedImpactParameter3D::distanceWithJetAxis : TSOS not valid = " <<
TSOS.
isValid() << endl;
118 return pair<double, Measurement1D>(theDistanceAlongJetAxis,
Measurement1D(theDistanceToJetAxis, theLDist_err));
151 theDistanceToJetAxis = (
jet.distance(
track)).
mag();
153 theDistanceToJetAxis = -theDistanceToJetAxis;
159 theDistanceAlongJetAxis =
P.dot(
V -
pos) / Q.
dot(
dir);
171 CLHEP::HepVector Hh(3);
190 return pair<double, Measurement1D>(theDistanceAlongJetAxis, DTJA);
Vector3DBase< typename PreciseFloatType< T, U >::Type, FrameTag > cross(const Vector3DBase< U, FrameTag > &v) const
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
PreciseFloatType< T, U >::Type dot(const Vector3DBase< U, FrameTag > &v) const
Global3DPoint GlobalPoint
static TrajectoryStateOnSurface closestApproachToJet(const FreeTrajectoryState &, const reco::Vertex &, const GlobalVector &, const MagneticField *)
std::pair< bool, Measurement1D > apply(const reco::TransientTrack &, const GlobalVector &direction, const reco::Vertex &vertex) const
const CartesianTrajectoryError cartesianError() const
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t V
GlobalPoint globalPosition() const
const MagneticField * field() const
FreeTrajectoryState const * freeTrajectoryState(bool withErrors=true) const
Abs< T >::type abs(const T &t)
Basic3DVector unit() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
DecomposeProduct< arg, typename Div::arg > D
static GlobalVector distance(const TrajectoryStateOnSurface &, const reco::Vertex &, const GlobalVector &)
std::pair< OmniClusterRef, TrackingParticleRef > P
GlobalVector globalMomentum() const
DD
single HTRIG enabling on first/second tracks
ROOT::Math::SVector< double, 3 > AlgebraicVector3
static std::pair< double, Measurement1D > distanceWithJetAxis(const reco::TransientTrack &transientTrack, const GlobalVector &direction, const reco::Vertex &vertex)
const AlgebraicSymMatrix66 & matrix() const
ROOT::Math::SVector< double, 6 > AlgebraicVector6
Vector3DBase unit() const
TrajectoryStateOnSurface impactPointState() const