1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerMCVertexes.h,v 1.8 2009/06/15 15:00:25 loizides Exp $
|
3 |
//
|
4 |
// FillerMCVertexes
|
5 |
//
|
6 |
// Implementation of a filler to find the generated main vertex into our
|
7 |
// mithep::Vertex data structure.
|
8 |
//
|
9 |
// Authors: C.Loizides
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
12 |
#ifndef MITPROD_TREEFILLER_FILLERMCVERTEXES_H
|
13 |
#define MITPROD_TREEFILLER_FILLERMCVERTEXES_H
|
14 |
|
15 |
#include "MitAna/DataTree/interface/VertexFwd.h"
|
16 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
17 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
19 |
namespace mithep
|
20 |
{
|
21 |
class FillerMCVertexes : public BaseFiller
|
22 |
{
|
23 |
public:
|
24 |
FillerMCVertexes(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
25 |
~FillerMCVertexes();
|
26 |
|
27 |
void BookDataBlock(TreeWriter &tws, const edm::EventSetup &es);
|
28 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
29 |
|
30 |
private:
|
31 |
bool useAodGen_; //=true if AOD GenParticles to be used
|
32 |
std::string edmName_; //edm name of generated particles
|
33 |
std::string mitName_; //name of MCParticles branch
|
34 |
mithep::VertexArr *vertexes_; //array of vertexes
|
35 |
};
|
36 |
}
|
37 |
#endif
|