File indexing completed on 2024-04-06 12:28:05
0001 #ifndef TSOSFromSimHitFactory_H
0002 #define TSOSFromSimHitFactory_H
0003
0004 #include "FTSFromSimHitFactory.h"
0005 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
0006 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
0007 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0008
0009 class SimHit;
0010 class MagneticField;
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 class TSOSFromSimHitFactory {
0021 public:
0022 TrajectoryStateOnSurface operator()(const PSimHit& hit, const GeomDetUnit& det, const MagneticField& field) const {
0023 return TrajectoryStateOnSurface(FTSFromSimHitFactory()(hit, det, field), det.surface());
0024 }
0025 };
0026
0027 #endif