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 }
MessageLogger.h
TrajectoryStateClosestToPoint::theParameters
PerigeeTrajectoryParameters theParameters
Definition: TrajectoryStateClosestToPoint.h:130
FreeTrajectoryState::hasError
bool hasError() const
Definition: FreeTrajectoryState.h:77
TrajectoryStateClosestToPoint.h
PerigeeConversions::ftsToPerigeeParameters
PerigeeTrajectoryParameters ftsToPerigeeParameters(const FTS &originalFTS, const GlobalPoint &referencePoint, double &pt)
Definition: PerigeeConversions.cc:7
edm::LogInfo
Definition: MessageLogger.h:254
TrajectoryStateClosestToPoint::calculateFTS
void calculateFTS() const
Definition: TrajectoryStateClosestToPoint.cc:26
TrajectoryStateClosestToPoint::theFTS
FTS theFTS
Definition: TrajectoryStateClosestToPoint.h:127
validateGeometry_cfg.valid
valid
Definition: validateGeometry_cfg.py:21
TrajectoryStateClosestToPoint::thePt
double thePt
Definition: TrajectoryStateClosestToPoint.h:131
TrajectoryStateClosestToPoint::errorIsAvailable
bool errorIsAvailable
Definition: TrajectoryStateClosestToPoint.h:135
TrajectoryStateException
Common base class.
Definition: TrajectoryStateExceptions.h:12
PerigeeConversions::positionFromPerigee
GlobalPoint positionFromPerigee(const PerigeeTrajectoryParameters &parameters, const GlobalPoint &referencePoint)
Definition: PerigeeConversions.cc:63
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
Point3DBase< float, GlobalTag >
TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint
TrajectoryStateClosestToPoint()
parameter dimension
Definition: TrajectoryStateClosestToPoint.h:24
funct::true
true
Definition: Factorize.h:173
FreeTrajectoryState::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: FreeTrajectoryState.h:79
TrajectoryStateClosestToPoint::thePerigeeError
PerigeeTrajectoryError thePerigeeError
Definition: TrajectoryStateClosestToPoint.h:132
TrajectoryStateClosestToPoint::valid
bool valid
Definition: TrajectoryStateClosestToPoint.h:133
TrajectoryStateClosestToPoint::theRefPoint
GlobalPoint theRefPoint
Definition: TrajectoryStateClosestToPoint.h:129
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
PerigeeTrajectoryParameters::charge
TrackCharge charge() const
Definition: PerigeeTrajectoryParameters.h:44
PerigeeConversions::curvilinearError
CurvilinearTrajectoryError curvilinearError(const PerigeeTrajectoryError &perigeeError, const GlobalTrajectoryParameters &gtp)
Definition: PerigeeConversions.cc:57
PerigeeConversions::momentumFromPerigee
GlobalVector momentumFromPerigee(const AlgebraicVector3 &momentum, const TrackCharge &charge, const GlobalPoint &referencePoint, const MagneticField *field)
Definition: PerigeeConversions.cc:79
cms::Exception::explainSelf
virtual std::string explainSelf() const
Definition: Exception.cc:108
TrajectoryStateClosestToPoint::theField
const MagneticField * theField
Definition: TrajectoryStateClosestToPoint.h:125
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
TrajectoryStateClosestToPoint::isValid
bool isValid() const
Definition: TrajectoryStateClosestToPoint.h:111
cms::Exception
Definition: Exception.h:70
TrajectoryStateClosestToPoint::referencePoint
const GlobalPoint & referencePoint() const
Definition: TrajectoryStateClosestToPoint.h:67
TrajectoryStateClosestToPoint::FTS
FreeTrajectoryState FTS
Definition: TrajectoryStateClosestToPoint.h:20
PerigeeConversions::ftsToPerigeeError
PerigeeTrajectoryError ftsToPerigeeError(const FTS &originalFTS)
Definition: PerigeeConversions.cc:51
cms::Exception::category
std::string const & category() const
Definition: Exception.cc:143
TrajectoryStateClosestToPoint::theFTSavailable
bool theFTSavailable
Definition: TrajectoryStateClosestToPoint.h:134