CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/RecoTracker/DebugTools/interface/TSOSFromSimHitFactory.h

Go to the documentation of this file.
00001 #ifndef TSOSFromSimHitFactory_H
00002 #define TSOSFromSimHitFactory_H
00003 
00004 #include "RecoTracker/DebugTools/interface/FTSFromSimHitFactory.h"
00005 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
00006 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
00007 #include "Geometry/CommonDetUnit/interface/GeomDetUnit.h"
00008 
00009 class SimHit;
00010 class MagneticField;
00011 
00020 class TSOSFromSimHitFactory {
00021 public:
00022 
00023   TrajectoryStateOnSurface operator()( const PSimHit& hit, const GeomDetUnit& det,
00024                                        const MagneticField& field) const {
00025     return TrajectoryStateOnSurface( FTSFromSimHitFactory()( hit, det, field),
00026                                      det.surface());
00027   }
00028 };
00029 
00030 #endif