ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/VertexFitInterface/src/MvfInterface.cc
Revision: 1.10
Committed: Sun Feb 21 23:40:53 2010 UTC (15 years, 2 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, V07-05-00, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, ConvRejection-10-06-09, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, HEAD
Branch point for: Mit_025c_branch
Changes since 1.9: +34 -1 lines
Log Message:
Add TransientTrack interface for vertex fit

File Contents

# User Rev Content
1 bendavid 1.10 // $Id: MvfInterface.cc,v 1.9 2009/12/07 16:27:37 mrudolph Exp $
2 loizides 1.6
3 loizides 1.7 #include "MitEdm/VertexFitInterface/interface/MvfInterface.h"
4 paus 1.5 #include "MitEdm/VertexFitInterface/interface/TrackParameters.h"
5 paus 1.1
6     using namespace reco;
7     using namespace mitedm;
8 loizides 1.6 using namespace mithep;
9 paus 1.1
10 loizides 1.6 //--------------------------------------------------------------------------------------------------
11 paus 1.1 MvfInterface::MvfInterface(MultiVertexFitter *fitter) :
12 paus 1.5 mvf_(fitter)
13 paus 1.1 {
14 paus 1.8 // Constructor
15     }
16    
17     //--------------------------------------------------------------------------------------------------
18     MvfInterface::MvfInterface(MultiVertexFitterC *fitter) :
19     mvfC_(fitter)
20     {
21     // Constructor
22     }
23    
24     //--------------------------------------------------------------------------------------------------
25     MvfInterface::MvfInterface(MultiVertexFitterD *fitter) :
26     mvfD_(fitter)
27     {
28     // Constructor
29 paus 1.1 }
30    
31 loizides 1.6 //--------------------------------------------------------------------------------------------------
32 paus 1.5 bool MvfInterface::addTrack(const Track *trk, const int id, const float mass,
33 paus 1.1 MultiVertexFitter::vertexNumber jv)
34     {
35 loizides 1.7 // Add a track to the track pool
36    
37 mrudolph 1.9 TrackParameters cmsTrk(trk,iCms, mvf_->bField());
38 paus 1.5 TrackParameters mvfTrk = cmsTrk.mvfTrack();
39     return (mvf_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
40 paus 1.1 }
41 paus 1.8
42     //--------------------------------------------------------------------------------------------------
43     bool MvfInterface::addTrack(const Track *trk, const int id, const float mass,
44     MultiVertexFitterC::vertexNumber jv)
45     {
46     // Add a track to the track pool
47    
48 mrudolph 1.9 TrackParameters cmsTrk(trk,iCms, mvfC_->bField());
49 paus 1.8 TrackParameters mvfTrk = cmsTrk.mvfTrack();
50     return (mvfC_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
51     }
52    
53     //--------------------------------------------------------------------------------------------------
54     bool MvfInterface::addTrack(const Track *trk, const int id, const float mass,
55     MultiVertexFitterD::vertexNumber jv)
56     {
57     // Add a track to the track pool
58    
59 mrudolph 1.9 TrackParameters cmsTrk(trk,iCms, mvfD_->bField());
60 paus 1.8 TrackParameters mvfTrk = cmsTrk.mvfTrack();
61     return (mvfD_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
62     }
63 bendavid 1.10
64     //--------------------------------------------------------------------------------------------------
65     bool MvfInterface::addTrack(const TransientTrack &trk, const int id, const float mass,
66     MultiVertexFitter::vertexNumber jv)
67     {
68     // Add a track to the track pool
69    
70     TrackParameters cmsTrk(trk,iCms);
71     TrackParameters mvfTrk = cmsTrk.mvfTrack();
72     return (mvf_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
73     }
74    
75     //--------------------------------------------------------------------------------------------------
76     bool MvfInterface::addTrack(const TransientTrack &trk, const int id, const float mass,
77     MultiVertexFitterC::vertexNumber jv)
78     {
79     // Add a track to the track pool
80    
81     TrackParameters cmsTrk(trk,iCms);
82     TrackParameters mvfTrk = cmsTrk.mvfTrack();
83     return (mvfC_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
84     }
85    
86     //--------------------------------------------------------------------------------------------------
87     bool MvfInterface::addTrack(const TransientTrack &trk, const int id, const float mass,
88     MultiVertexFitterD::vertexNumber jv)
89     {
90     // Add a track to the track pool
91    
92     TrackParameters cmsTrk(trk,iCms);
93     TrackParameters mvfTrk = cmsTrk.mvfTrack();
94     return (mvfD_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
95     }