test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryStateOnSurface.cc
Go to the documentation of this file.
3 
5 
6 
7 
8 void
11  const SurfaceType& aSurface,
12  const MagneticField* field,
13  const SurfaceSide side)
14 {
15  if (data().canUpdateLocalParameters()) {
16  unsharedData().update(p, aSurface, field, side);
17  } else {
18  *this = TrajectoryStateOnSurface(p, aSurface, field, side);
19  }
20 }
21 
22 
23 void
26  const LocalTrajectoryError& err,
27  const SurfaceType& aSurface,
28  const MagneticField* field,
29  const SurfaceSide side)
30 {
31  if (data().canUpdateLocalParameters()) {
32  unsharedData().update(1., p, err, aSurface, field, side);
33  } else {
34  *this = TrajectoryStateOnSurface(1., p, err, aSurface, field, side );
35  }
36 }
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:53