Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:52

0001 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
0002 #include "TrackingTools/TrajectoryState/interface/BasicSingleTrajectoryState.h"
0003 
0004 typedef BasicSingleTrajectoryState BTSOS;
0005 
0006 void TrajectoryStateOnSurface::update(const LocalTrajectoryParameters& p,
0007                                       const SurfaceType& aSurface,
0008                                       const MagneticField* field,
0009                                       const SurfaceSide side) {
0010   if (data().canUpdateLocalParameters()) {
0011     unsharedData().update(p, aSurface, field, side);
0012   } else {
0013     *this = TrajectoryStateOnSurface(p, aSurface, field, side);
0014   }
0015 }
0016 
0017 void TrajectoryStateOnSurface::update(const LocalTrajectoryParameters& p,
0018                                       const LocalTrajectoryError& err,
0019                                       const SurfaceType& aSurface,
0020                                       const MagneticField* field,
0021                                       const SurfaceSide side) {
0022   if (data().canUpdateLocalParameters()) {
0023     unsharedData().update(1., p, err, aSurface, field, side);
0024   } else {
0025     *this = TrajectoryStateOnSurface(1., p, err, aSurface, field, side);
0026   }
0027 }