CMS 3D CMS Logo

Public Member Functions

TSOSFromSimHitFactory Class Reference

#include <TSOSFromSimHitFactory.h>

List of all members.

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().

                                                                         {
    return TrajectoryStateOnSurface( FTSFromSimHitFactory()( hit, det, field),
                                     det.surface());
  }