#include <FTSFromSimHitFactory.h>
Public Member Functions | |
FreeTrajectoryState | operator() (const PSimHit &hit, const GeomDet &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 |
Definition at line 17 of file FTSFromSimHitFactory.cc.
References funct::abs().
Referenced by operator()().
FreeTrajectoryState FTSFromSimHitFactory::operator() | ( | const PSimHit & | hit, |
const GeomDet & | det, | ||
const MagneticField & | field | ||
) | const |
Definition at line 7 of file FTSFromSimHitFactory.cc.
References charge(), PSimHit::localPosition(), PSimHit::momentumAtEntry(), PSimHit::particleType(), and GeomDet::toGlobal().