CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
TSOSFromSimHitFactory Class Reference

#include <TSOSFromSimHitFactory.h>

Public Member Functions

TrajectoryStateOnSurface operator() (const PSimHit &hit, const GeomDetUnit &det, const MagneticField &field) const
 

Detailed Description

Produces a TrajectoryStateOnSurface from a SimHit. the TrajectoryStateOnSurface position coinsides with the SimHit position, and direction, momenta and charge are deduced from the SimHit itself, without any access to the SimTrack that produced the SimHit. The surface of the result is the surface of the Det of the SimHit.

Definition at line 20 of file TSOSFromSimHitFactory.h.

Member Function Documentation

TrajectoryStateOnSurface TSOSFromSimHitFactory::operator() ( const PSimHit hit,
const GeomDetUnit det,
const MagneticField field 
) const
inline

Definition at line 23 of file TSOSFromSimHitFactory.h.

References GeomDet::surface().

24  {
25  return TrajectoryStateOnSurface( FTSFromSimHitFactory()( hit, det, field),
26  det.surface());
27  }
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:40