Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:03

0001 #ifndef FTSFromSimHitFactory_H
0002 #define FTSFromSimHitFactory_H
0003 
0004 #include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
0005 
0006 class PSimHit;
0007 class GeomDet;
0008 class MagneticField;
0009 
0010 /** Produces a FreeTrajectoryState from a SimHit.
0011  * the FreeTrajectoryState position coinsides with the SimHit
0012  * position, and direction, momenta and charge are deduced
0013  * from the SimHit itself, without any access to the SimTrack 
0014  * that produced the SimHit.
0015  */
0016 
0017 class FTSFromSimHitFactory {
0018 public:
0019   FreeTrajectoryState operator()(const PSimHit& hit, const GeomDet& det, const MagneticField& field) const;
0020 
0021 private:
0022   TrackCharge charge(int particleId) const;
0023 };
0024 
0025 #endif