1 |
loizides |
1.7 |
// $Id: MvfInterface.cc,v 1.6 2008/09/04 13:55:29 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 |
loizides |
1.7 |
// Constructor.
|
15 |
paus |
1.1 |
}
|
16 |
|
|
|
17 |
loizides |
1.6 |
//--------------------------------------------------------------------------------------------------
|
18 |
paus |
1.5 |
bool MvfInterface::addTrack(const Track *trk, const int id, const float mass,
|
19 |
paus |
1.1 |
MultiVertexFitter::vertexNumber jv)
|
20 |
|
|
{
|
21 |
loizides |
1.7 |
// Add a track to the track pool
|
22 |
|
|
|
23 |
paus |
1.5 |
TrackParameters cmsTrk(trk);
|
24 |
|
|
TrackParameters mvfTrk = cmsTrk.mvfTrack();
|
25 |
|
|
return (mvf_->addTrack(*mvfTrk.pars(),*mvfTrk.cMat(),id,mass,jv));
|
26 |
paus |
1.1 |
}
|