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 {
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)
virtual std::string explainSelf() const
Definition: Exception.cc:112
std::string const & category() const
Definition: Exception.cc:147
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