1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.4 |
// $Id: FillerVertexes.h,v 1.3 2009/03/15 11:20:40 loizides Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// FillerVertexes
|
5 |
|
|
//
|
6 |
loizides |
1.3 |
// Implementation of a filler to fill EDM reco:Vertex into our mithep::Vertex data structure.
|
7 |
bendavid |
1.1 |
//
|
8 |
|
|
// Authors: J.Bendavid
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef MITPROD_TREEFILLER_FILLERVERTEXES_H
|
12 |
|
|
#define MITPROD_TREEFILLER_FILLERVERTEXES_H
|
13 |
|
|
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
17 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
19 |
|
|
|
20 |
|
|
namespace mithep
|
21 |
|
|
{
|
22 |
|
|
class FillerVertexes : public BaseFiller
|
23 |
|
|
{
|
24 |
|
|
public:
|
25 |
|
|
FillerVertexes(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
26 |
|
|
~FillerVertexes();
|
27 |
|
|
|
28 |
loizides |
1.2 |
void BookDataBlock(TreeWriter &tws);
|
29 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
30 |
bendavid |
1.1 |
|
31 |
|
|
private:
|
32 |
loizides |
1.3 |
std::string edmName_; //edm name of Vertex collection
|
33 |
loizides |
1.4 |
std::string mitName_; //mit name of Vertices
|
34 |
loizides |
1.3 |
std::string vertexMapName_; //name of exported map
|
35 |
|
|
mithep::VertexArr *vertexes_; //array of vertexes
|
36 |
|
|
mithep::VertexMap *vertexMap_; //map wrt vertexes
|
37 |
bendavid |
1.1 |
};
|
38 |
|
|
}
|
39 |
|
|
#endif
|