CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/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 
00028 const LinearizedTrackStateFactory * LinearizedTrackStateFactory::clone() const
00029 {
00030   return new LinearizedTrackStateFactory ( *this );
00031 }
00032