CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrajectoryStateOnSurface.cc
Go to the documentation of this file.
3 
5 
7  const SurfaceType& aSurface,
8  const MagneticField* field,
9  const SurfaceSide side) {
10  if (data().canUpdateLocalParameters()) {
11  unsharedData().update(p, aSurface, field, side);
12  } else {
13  *this = TrajectoryStateOnSurface(p, aSurface, field, side);
14  }
15 }
16 
19  const SurfaceType& aSurface,
20  const MagneticField* field,
21  const SurfaceSide side) {
22  if (data().canUpdateLocalParameters()) {
23  unsharedData().update(1., p, err, aSurface, field, side);
24  } else {
25  *this = TrajectoryStateOnSurface(1., p, err, aSurface, field, side);
26  }
27 }
BasicSingleTrajectoryState BTSOS
const T & data() const
Definition: ProxyBase11.h:51
void update(const LocalTrajectoryParameters &p, const SurfaceType &aSurface, const MagneticField *field, SurfaceSide side=SurfaceSideDefinition::atCenterOfSurface)
T & unsharedData()
Definition: ProxyBase11.h:56