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) {
8  try {
9  theParameters = PerigeeConversions::ftsToPerigeeParameters(originalFTS, referencePoint, thePt);
10  if (theFTS.hasError()) {
12  errorIsAvailable = true;
13  } else {
14  errorIsAvailable = false;
15  }
16  theField = &(originalFTS.parameters().magneticField());
17  } catch (const cms::Exception& ex) {
18  if (ex.category() != "PerigeeConversions")
19  throw;
20  edm::LogInfo("TrajectoryStateClosestToPoint_PerigeeConversions")
21  << "Caught exception " << ex.explainSelf() << ".\n";
22  valid = false;
23  }
24 }
25 
27  if (!isValid())
28  throw TrajectoryStateException("TrajectoryStateClosestToPoint is invalid and cannot return any parameters");
32  theField);
33  if (errorIsAvailable) {
35  } else {
36  theFTS = FTS(gtp);
37  }
38  theFTSavailable = true;
39 }
PerigeeTrajectoryParameters ftsToPerigeeParameters(const FTS &originalFTS, const GlobalPoint &referencePoint, double &pt)
const GlobalTrajectoryParameters & parameters() const
virtual std::string explainSelf() const
Definition: Exception.cc:108
std::string const & category() const
Definition: Exception.cc:143
TrajectoryStateClosestToPoint()
parameter dimension
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)
PerigeeTrajectoryParameters theParameters