CMS 3D CMS Logo

TrajectoryStateClosestToPoint Class Reference

Trajectory state defined at a given point on the helix, which is the point of closest approach to the reference point. More...

#include <TrackingTools/TrajectoryState/interface/TrajectoryStateClosestToPoint.h>

List of all members.

Public Member Functions

TrackCharge charge () const
bool hasError () const
 tells whether the error of the perigee parameters is available.
GlobalVector momentum () const
const PerigeeTrajectoryErrorperigeeError () const
 returns the error of the perigee parameters if it is available
const PerigeeTrajectoryParametersperigeeParameters () const
 returns the perigee parameters at the p.c.a.
GlobalPoint position () const
 returns the state defined at the point of closest approach to the reference point.
double pt () const
 returns the transverse momentum magnitude
const GlobalPoint referencePoint () const
 returns the reference point which used to construct the state.
const FreeTrajectoryStatetheState () const
 TrajectoryStateClosestToPoint (const PerigeeTrajectoryParameters &perigeeParameters, double pt, const PerigeeTrajectoryError &perigeeError, const GlobalPoint &referencePoint, const MagneticField *field)
 Public constructor, which is used to convert perigee parameters to a FreeTrajectoryState.
 TrajectoryStateClosestToPoint (const PerigeeTrajectoryParameters &perigeeParameters, double pt, const GlobalPoint &referencePoint, const MagneticField *field)
 Public constructor, which is used to convert perigee parameters to a FreeTrajectoryState.
 TrajectoryStateClosestToPoint ()
 parameter dimension

Private Types

typedef FreeTrajectoryState FTS
typedef TrajectoryStateOnSurface TSOS

Private Member Functions

void calculateFTS () const
 TrajectoryStateClosestToPoint (const FTS &originalFTS, const GlobalPoint &referencePoint)
 Use the appropriate TrajectoryStateClosestToPointBuilder to get access to this constructor.

Private Attributes

bool errorIsAvailable
PerigeeConversions perigeeConversions
const MagneticFieldtheField
FTS theFTS
bool theFTSavailable
PerigeeTrajectoryParameters theParameters
PerigeeTrajectoryError thePerigeeError
double thePt
GlobalPoint theRefPoint

Friends

class PerigeeConversions
class TrajectoryStateClosestToPointBuilder


Detailed Description

Trajectory state defined at a given point on the helix, which is the point of closest approach to the reference point.

In addition to the FreeTrajectoryState at that point, it also gives the perigee parameters.

Definition at line 18 of file TrajectoryStateClosestToPoint.h.


Member Typedef Documentation

typedef FreeTrajectoryState TrajectoryStateClosestToPoint::FTS [private]

Definition at line 21 of file TrajectoryStateClosestToPoint.h.

typedef TrajectoryStateOnSurface TrajectoryStateClosestToPoint::TSOS [private]

Definition at line 20 of file TrajectoryStateClosestToPoint.h.


Constructor & Destructor Documentation

TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint (  )  [inline]

parameter dimension

Definition at line 26 of file TrajectoryStateClosestToPoint.h.

00026                                  :
00027     theFTSavailable(false), errorIsAvailable(false) {}

TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint ( const PerigeeTrajectoryParameters perigeeParameters,
double  pt,
const GlobalPoint referencePoint,
const MagneticField field 
)

Public constructor, which is used to convert perigee parameters to a FreeTrajectoryState.

For the case where no error is provided.

Definition at line 28 of file TrajectoryStateClosestToPoint.cc.

00029                                                                  :
00030     theField(field), theFTSavailable(false), theRefPoint(referencePoint), 
00031     theParameters(perigeeParameters), thePt( pt ), errorIsAvailable(false)
00032 {}

TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint ( const PerigeeTrajectoryParameters perigeeParameters,
double  pt,
const PerigeeTrajectoryError perigeeError,
const GlobalPoint referencePoint,
const MagneticField field 
)

Public constructor, which is used to convert perigee parameters to a FreeTrajectoryState.

For the case where an error is provided.

Definition at line 41 of file TrajectoryStateClosestToPoint.cc.

00043                              :
00044     theField(field), theFTSavailable(false), theRefPoint(referencePoint), theParameters(perigeeParameters),
00045     thePt( pt ), thePerigeeError(perigeeError), errorIsAvailable(true)
00046     
00047 {}

TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint ( const FTS originalFTS,
const GlobalPoint referencePoint 
) [private]

Use the appropriate TrajectoryStateClosestToPointBuilder to get access to this constructor.

Definition at line 6 of file TrajectoryStateClosestToPoint.cc.

References errorIsAvailable, PerigeeConversions::ftsToPerigeeError(), PerigeeConversions::ftsToPerigeeParameters(), FreeTrajectoryState::hasError(), GlobalTrajectoryParameters::magneticField(), FreeTrajectoryState::parameters(), perigeeConversions, theField, theFTS, theParameters, thePerigeeError, and thePt.

00006                                                                                          :
00007   theFTS(originalFTS), theFTSavailable(true), theRefPoint(referencePoint)
00008 {
00009   theParameters = perigeeConversions.ftsToPerigeeParameters(originalFTS, referencePoint, thePt);
00010   if (theFTS.hasError()) {
00011     thePerigeeError = perigeeConversions.ftsToPerigeeError(originalFTS);
00012     errorIsAvailable = true;
00013   } 
00014   else {
00015     errorIsAvailable = false;
00016   }
00017   theField = &(originalFTS.parameters().magneticField());
00018 }


Member Function Documentation

void TrajectoryStateClosestToPoint::calculateFTS (  )  const [private]

Definition at line 50 of file TrajectoryStateClosestToPoint.cc.

References PerigeeTrajectoryParameters::charge(), PerigeeConversions::curvilinearError(), errorIsAvailable, PerigeeConversions::momentumFromPerigee(), perigeeConversions, PerigeeConversions::positionFromPerigee(), theField, theFTS, theFTSavailable, theParameters, thePerigeeError, thePt, and theRefPoint.

Referenced by theState().

TrackCharge TrajectoryStateClosestToPoint::charge ( void   )  const [inline]

Definition at line 101 of file TrajectoryStateClosestToPoint.h.

References PerigeeTrajectoryParameters::charge(), and theParameters.

Referenced by PhysicsObjectsMonitor::analyze(), TestOutliers::analyze(), VisMuon::refitTrack(), and VisEventSetupService::refitTrack().

00101                              {
00102     return theParameters.charge();
00103   }

bool TrajectoryStateClosestToPoint::hasError ( void   )  const [inline]

tells whether the error of the perigee parameters is available.

Definition at line 117 of file TrajectoryStateClosestToPoint.h.

References errorIsAvailable.

Referenced by PerigeeLinearizedTrackState::hasError(), and MuonUpdatorAtVertex::propagateToNominalLine().

00117                         {
00118     return errorIsAvailable;
00119   }

GlobalVector TrajectoryStateClosestToPoint::momentum (  )  const [inline]

Definition at line 96 of file TrajectoryStateClosestToPoint.h.

References PerigeeConversions::momentumFromPerigee(), perigeeConversions, theParameters, thePt, and theRefPoint.

Referenced by PhysicsObjectsMonitor::analyze(), V0Fitter::fitAll(), TwoBodyDecayLinearizationPointFinder::getLinearizationPoint(), and EgammaHLTPixelMatchElectronAlgo::process().

const PerigeeTrajectoryError& TrajectoryStateClosestToPoint::perigeeError (  )  const [inline]

returns the error of the perigee parameters if it is available

Definition at line 80 of file TrajectoryStateClosestToPoint.h.

References errorIsAvailable, and thePerigeeError.

Referenced by PerigeeRefittedTrackState::covariance(), VertexFitterResult::fill(), PerigeeLinearizedTrackState::predictedStateError(), PerigeeLinearizedTrackState::predictedStateMomentumError(), PerigeeLinearizedTrackState::predictedStateWeight(), and MuonTrackingRegionBuilder::region().

00080                                                       {
00081     if (!errorIsAvailable) throw TrajectoryStateException(
00082       "TrajectoryStateClosestToPoint: attempt to access errors when none available");
00083     return thePerigeeError;
00084   }

const PerigeeTrajectoryParameters& TrajectoryStateClosestToPoint::perigeeParameters (  )  const [inline]

returns the perigee parameters at the p.c.a.

to the reference point.

Definition at line 65 of file TrajectoryStateClosestToPoint.h.

References theParameters.

Referenced by PerigeeRefittedTrackState::momentumVector(), PerigeeRefittedTrackState::parameters(), PerigeeLinearizedTrackState::predictedStateMomentumParameters(), PerigeeLinearizedTrackState::predictedStateParameters(), and MuonTrackingRegionBuilder::region().

00065                                                                 {
00066     return theParameters;
00067   }

GlobalPoint TrajectoryStateClosestToPoint::position ( void   )  const [inline]

returns the state defined at the point of closest approach to the reference point.

Definition at line 91 of file TrajectoryStateClosestToPoint.h.

References perigeeConversions, PerigeeConversions::positionFromPerigee(), theParameters, and theRefPoint.

Referenced by HardTauAlgorithm::trackEcalHitPoint().

double TrajectoryStateClosestToPoint::pt ( void   )  const [inline]

returns the transverse momentum magnitude

Definition at line 73 of file TrajectoryStateClosestToPoint.h.

References thePt.

00073 { return thePt; }

const GlobalPoint TrajectoryStateClosestToPoint::referencePoint (  )  const [inline]

returns the reference point which used to construct the state.

It is thus the point with respect to which the impact parameters are defined.

Definition at line 55 of file TrajectoryStateClosestToPoint.h.

References theRefPoint.

Referenced by PerigeeRefittedTrackState::position().

00055                                            {
00056     return theRefPoint;
00057   }

const FreeTrajectoryState& TrajectoryStateClosestToPoint::theState (  )  const [inline]

Definition at line 106 of file TrajectoryStateClosestToPoint.h.

References calculateFTS(), theFTS, and theFTSavailable.

Referenced by ValidationMisalignedTracker::analyze(), PhysicsObjectsMonitor::analyze(), RPCEfficiencyFromTrack::analyze(), TestOutliers::analyze(), pat::helper::VertexingHelper::associate(), pat::LeptonVertexSignificance::calculate(), PixelTrackBuilder::checkState(), PerigeeLinearizedTrackState::computeChargedJacobians(), PerigeeLinearizedTrackState::computeNeutralJacobians(), PerigeeRefittedTrackState::freeTrajectoryState(), TransientTrackKinematicStateBuilder::operator()(), KinematicParticleFactoryFromTransientTrack::particle(), MuonUpdatorAtVertex::propagateToNominalLine(), and PerigeeRefittedTrackState::trajectoryStateOnSurface().

00106                                                {
00107     if (!theFTSavailable) calculateFTS();
00108     return theFTS;
00109   }


Friends And Related Function Documentation

friend class PerigeeConversions [friend]

Definition at line 125 of file TrajectoryStateClosestToPoint.h.

friend class TrajectoryStateClosestToPointBuilder [friend]

Definition at line 124 of file TrajectoryStateClosestToPoint.h.


Member Data Documentation

bool TrajectoryStateClosestToPoint::errorIsAvailable [private]

Definition at line 145 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), hasError(), perigeeError(), and TrajectoryStateClosestToPoint().

PerigeeConversions TrajectoryStateClosestToPoint::perigeeConversions [private]

Definition at line 146 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), momentum(), position(), and TrajectoryStateClosestToPoint().

const MagneticField* TrajectoryStateClosestToPoint::theField [private]

Definition at line 136 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), and TrajectoryStateClosestToPoint().

FTS TrajectoryStateClosestToPoint::theFTS [mutable, private]

Definition at line 138 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), theState(), and TrajectoryStateClosestToPoint().

bool TrajectoryStateClosestToPoint::theFTSavailable [mutable, private]

Definition at line 139 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), and theState().

PerigeeTrajectoryParameters TrajectoryStateClosestToPoint::theParameters [private]

Definition at line 142 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), charge(), momentum(), perigeeParameters(), position(), and TrajectoryStateClosestToPoint().

PerigeeTrajectoryError TrajectoryStateClosestToPoint::thePerigeeError [private]

Definition at line 144 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), perigeeError(), and TrajectoryStateClosestToPoint().

double TrajectoryStateClosestToPoint::thePt [private]

Definition at line 143 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), momentum(), pt(), and TrajectoryStateClosestToPoint().

GlobalPoint TrajectoryStateClosestToPoint::theRefPoint [private]

Definition at line 141 of file TrajectoryStateClosestToPoint.h.

Referenced by calculateFTS(), momentum(), position(), and referencePoint().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:23 2009 for CMSSW by  doxygen 1.5.4