CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoVertex/VertexTools/src/LinearizedTrackStateFactory.cc

Go to the documentation of this file.
00001 #include "RecoVertex/VertexTools/interface/LinearizedTrackStateFactory.h"
00002 #include "RecoVertex/VertexTools/interface/PerigeeLinearizedTrackState.h"
00003 
00004 
00005 LinearizedTrackStateFactory::RefCountedLinearizedTrackState 
00006 LinearizedTrackStateFactory::linearizedTrackState(const GlobalPoint & linP, 
00007         const reco::TransientTrack & track, const TrajectoryStateOnSurface& tsos) const
00008 {
00009   return RefCountedLinearizedTrackState(
00010     new PerigeeLinearizedTrackState(linP, track, tsos ) );
00011 }
00012 
00013 LinearizedTrackStateFactory::RefCountedLinearizedTrackState 
00014 LinearizedTrackStateFactory::linearizedTrackState(const GlobalPoint & linP, 
00015                                         const reco::TransientTrack & track) const
00016 {
00017   return RefCountedLinearizedTrackState(
00018     new PerigeeLinearizedTrackState(linP, track, track.impactPointState() ) );
00019 }
00020  
00021 LinearizedTrackStateFactory::RefCountedLinearizedTrackState
00022 LinearizedTrackStateFactory::linearizedTrackState
00023                                 (LinearizedTrackState<5> * lts) const
00024 {
00025   return RefCountedLinearizedTrackState(lts);
00026 }    
00027 // RefCountedLinearizedTrackState
00028 // LinearizedTrackStateFactory::linearizedTrackState(const GlobalPoint & linP, RefCountedKinematicParticle & prt) const
00029 // {
00030 //  return RefCountedLinearizedTrackState(new KinematicLinearizedTrackState(linP, prt));
00031 // }
00032 //
00033 
00034 const LinearizedTrackStateFactory * LinearizedTrackStateFactory::clone() const
00035 {
00036   return new LinearizedTrackStateFactory ( *this );
00037 }
00038