#include <FTSFromSimHitFactory.h>
Public Member Functions | |
FreeTrajectoryState | operator() (const PSimHit &hit, const GeomDetUnit &det, const MagneticField &field) const |
Private Member Functions | |
TrackCharge | charge (int particleId) const |
Produces a FreeTrajectoryState from a SimHit. the FreeTrajectoryState 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.
Definition at line 17 of file FTSFromSimHitFactory.h.
|
private |
FreeTrajectoryState FTSFromSimHitFactory::operator() | ( | const PSimHit & | hit, |
const GeomDetUnit & | det, | ||
const MagneticField & | field | ||
) | const |
Definition at line 7 of file FTSFromSimHitFactory.cc.
References charge(), PSimHit::localPosition(), PSimHit::momentumAtEntry(), PSimHit::particleType(), and GeomDet::toGlobal().