Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:25

0001 #include "RecoVertex/VertexTools/interface/LinearizedTrackStateFactory.h"
0002 #include "RecoVertex/VertexTools/interface/PerigeeLinearizedTrackState.h"
0003 
0004 LinearizedTrackStateFactory::RefCountedLinearizedTrackState LinearizedTrackStateFactory::linearizedTrackState(
0005     const GlobalPoint& linP, const reco::TransientTrack& track, const TrajectoryStateOnSurface& tsos) const {
0006   return RefCountedLinearizedTrackState(new PerigeeLinearizedTrackState(linP, track, tsos));
0007 }
0008 
0009 LinearizedTrackStateFactory::RefCountedLinearizedTrackState LinearizedTrackStateFactory::linearizedTrackState(
0010     const GlobalPoint& linP, const reco::TransientTrack& track) const {
0011   return RefCountedLinearizedTrackState(new PerigeeLinearizedTrackState(linP, track, track.impactPointState()));
0012 }
0013 
0014 LinearizedTrackStateFactory::RefCountedLinearizedTrackState LinearizedTrackStateFactory::linearizedTrackState(
0015     LinearizedTrackState<5>* lts) const {
0016   return RefCountedLinearizedTrackState(lts);
0017 }
0018 
0019 const LinearizedTrackStateFactory* LinearizedTrackStateFactory::clone() const {
0020   return new LinearizedTrackStateFactory(*this);
0021 }