1 |
// $Id: MvfInterface.cc,v 1.9 2009/12/07 16:27:37 mrudolph Exp $
|
2 |
|
3 |
#include "MitEdm/VertexFitInterface/interface/MvfInterface.h"
|
4 |
#include "MitEdm/VertexFitInterface/interface/TrackParameters.h"
|
5 |
|
6 |
using namespace reco;
|
7 |
using namespace mitedm;
|
8 |
using namespace mithep;
|
9 |
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
MvfInterface::MvfInterface(MultiVertexFitter *fitter) :
|
12 |
mvf_(fitter)
|
13 |
{
|
14 |
// 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 |
}
|
30 |
|
31 |
//--------------------------------------------------------------------------------------------------
|
32 |
bool MvfInterface::addTrack(const Track *trk, const int id, const float mass,
|
33 |
MultiVertexFitter::vertexNumber jv)
|
34 |
{
|
35 |
// Add a track to the track pool
|
36 |
|
37 |
TrackParameters cmsTrk(trk,iCms, mvf_->bField());
|
38 |
TrackParameters mvfTrk = cmsTrk.mvfTrack();
|
39 |
return (mvf_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
|
40 |
}
|
41 |
|
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,iCms, mvfC_->bField());
|
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,iCms, mvfD_->bField());
|
60 |
TrackParameters mvfTrk = cmsTrk.mvfTrack();
|
61 |
return (mvfD_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
|
62 |
}
|
63 |
|
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 |
}
|