CMS 3D CMS Logo

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

◆ operator()()

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

Definition at line 22 of file TSOSFromSimHitFactory.h.

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

References GeomDet::surface().

FTSFromSimHitFactory
Definition: FTSFromSimHitFactory.h:17
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
hit
Definition: SiStripHitEffFromCalibTree.cc:88