test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfPropagatorAdapter.cc
Go to the documentation of this file.
2 
5 
6 #include <atomic>
7 
9  Propagator(aPropagator.propagationDirection()),
10  thePropagator(aPropagator.clone()) {}
11 
12 std::pair<TrajectoryStateOnSurface,double>
14  const Plane& plane) const {
16  return multiPropagator.propagateWithPath(tsos,plane);
17 }
18 
19 std::pair<TrajectoryStateOnSurface,double>
21  const Cylinder& cylinder) const {
23  return multiPropagator.propagateWithPath(tsos,cylinder);
24 }
25 
26 std::pair<TrajectoryStateOnSurface,double>
28  const Plane& plane) const {
30  static std::atomic<int> nWarn{0};
31  if ( nWarn++<5 )
32  edm::LogInfo("GsfPropagatorAdapter") << "GsfPropagator used from FTS = single state mode!";
33  return thePropagator->propagateWithPath(fts,plane);
34 }
35 
36 std::pair<TrajectoryStateOnSurface,double>
38  const Cylinder& cylinder) const {
40  static std::atomic<int> nWarn{0};
41  if ( nWarn++<5 )
42  edm::LogInfo("GsfPropagatorAdapter") << "GsfPropagator used from FTS = single state mode!";
43  return thePropagator->propagateWithPath(fts,cylinder);
44 }
45 
49 }
virtual void setPropagationDirection(PropagationDirection dir)
Definition: Propagator.h:140
GsfPropagatorAdapter(const Propagator &Propagator)
Constructor with explicit propagator.
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const TrajectoryStateOnSurface &, const Plane &) const override
PropagationDirection
Definition: Plane.h:17
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
Definition: Propagator.cc:15
virtual void setPropagationDirection(PropagationDirection dir) override
DeepCopyPointerByClone< Propagator > thePropagator
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const TrajectoryStateOnSurface &tsos, const T &surface) const
dbl *** dir
Definition: mlp_gen.cc:35