1 |
loizides |
1.6 |
// $Id:$
|
2 |
|
|
|
3 |
paus |
1.5 |
#include "MitEdm/VertexFitInterface/interface/TrackParameters.h"
|
4 |
paus |
1.1 |
#include "MitEdm/VertexFitInterface/interface/MvfInterface.h"
|
5 |
|
|
|
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 |
|
|
}
|
15 |
|
|
|
16 |
loizides |
1.6 |
//--------------------------------------------------------------------------------------------------
|
17 |
paus |
1.5 |
bool MvfInterface::addTrack(const Track *trk, const int id, const float mass,
|
18 |
paus |
1.1 |
MultiVertexFitter::vertexNumber jv)
|
19 |
|
|
{
|
20 |
paus |
1.5 |
TrackParameters cmsTrk(trk);
|
21 |
|
|
TrackParameters mvfTrk = cmsTrk.mvfTrack();
|
22 |
|
|
return (mvf_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
|
23 |
paus |
1.1 |
}
|