ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/VertexFitInterface/src/MvfInterface.cc
Revision: 1.8
Committed: Thu Nov 13 16:36:48 2008 UTC (16 years, 5 months ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008, Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a, Mit_006
Changes since 1.7: +38 -2 lines
Log Message:
Interface to allow for the three optimized versions.

File Contents

# User Rev Content
1 paus 1.8 // $Id: MvfInterface.cc,v 1.7 2008/09/27 05:48:26 loizides 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 paus 1.5 TrackParameters cmsTrk(trk);
38     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     TrackParameters cmsTrk(trk);
49     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     TrackParameters cmsTrk(trk);
60     TrackParameters mvfTrk = cmsTrk.mvfTrack();
61     return (mvfD_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
62     }