1 |
// $Id: VertexTools.cc,v 1.3 2011/04/21 15:07:40 bendavid Exp $
|
2 |
|
3 |
#include "MitPhysics/Utils/interface/VertexTools.h"
|
4 |
#include "MitPhysics/Utils/interface/ElectronTools.h"
|
5 |
#include "MitAna/DataTree/interface/StableData.h"
|
6 |
#include <TFile.h>
|
7 |
|
8 |
ClassImp(mithep::VertexTools)
|
9 |
|
10 |
using namespace mithep;
|
11 |
|
12 |
//--------------------------------------------------------------------------------------------------
|
13 |
VertexTools::VertexTools()
|
14 |
{
|
15 |
// Constructor.
|
16 |
}
|
17 |
|
18 |
//--------------------------------------------------------------------------------------------------
|
19 |
const Vertex *VertexTools::BestVtx(const VertexCol *c, const VertexMVA *mva) {
|
20 |
|
21 |
if (!c || !c->GetEntries()) return 0;
|
22 |
|
23 |
return c->At(0);
|
24 |
|
25 |
} |