CMS 3D CMS Logo

TrajectoryStateClosestToPoint.cc
Go to the documentation of this file.
3 
4 // Private constructor
5 
7  : theFTS(originalFTS), theRefPoint(referencePoint), valid(true), theFTSavailable(true) {
9  if (not params) {
10  valid = false;
11  edm::LogInfo("TrajectoryStateClosestToPoint_PerigeeConversions") << "Track had pt == 0.";
12  return;
13  }
15  if (theFTS.hasError()) {
17  errorIsAvailable = true;
18  } else {
19  errorIsAvailable = false;
20  }
21  theField = &(originalFTS.parameters().magneticField());
22 }
23 
25  if (!isValid())
26  throw TrajectoryStateException("TrajectoryStateClosestToPoint is invalid and cannot return any parameters");
30  theField);
31  if (errorIsAvailable) {
33  } else {
34  theFTS = FTS(gtp);
35  }
36  theFTSavailable = true;
37 }
std::optional< PerigeeTrajectoryParameters > ftsToPerigeeParameters(const FTS &originalFTS, const GlobalPoint &referencePoint, double &pt)
const GlobalTrajectoryParameters & parameters() const
TrajectoryStateClosestToPoint()
parameter dimension
Log< level::Info, false > LogInfo
GlobalPoint positionFromPerigee(const PerigeeTrajectoryParameters &parameters, const GlobalPoint &referencePoint)
GlobalVector momentumFromPerigee(const AlgebraicVector3 &momentum, const TrackCharge &charge, const GlobalPoint &referencePoint, const MagneticField *field)
CurvilinearTrajectoryError curvilinearError(const PerigeeTrajectoryError &perigeeError, const GlobalTrajectoryParameters &gtp)
const MagneticField & magneticField() const
PerigeeTrajectoryError ftsToPerigeeError(const FTS &originalFTS)
const GlobalPoint & referencePoint() const
PerigeeTrajectoryParameters theParameters