1 |
sixie |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.4 |
// $Id: FillerGenJets.h,v 1.3 2009/03/22 10:00:45 loizides Exp $
|
3 |
sixie |
1.1 |
//
|
4 |
|
|
// FillerGenJets
|
5 |
|
|
//
|
6 |
loizides |
1.2 |
// Implementation of a filler to fill EDM generator-level jets into our
|
7 |
|
|
// mithep::GenJet data structure.
|
8 |
sixie |
1.1 |
//
|
9 |
|
|
// Authors: S.Xie
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef MITPROD_TREEFILLER_FILLERGENJETS_H
|
13 |
|
|
#define MITPROD_TREEFILLER_FILLERGENJETS_H
|
14 |
|
|
|
15 |
loizides |
1.4 |
#include "MitAna/DataTree/interface/GenJetFwd.h"
|
16 |
sixie |
1.1 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
17 |
|
|
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class FillerGenJets : public BaseFiller
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
|
|
FillerGenJets(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
24 |
|
|
~FillerGenJets();
|
25 |
|
|
|
26 |
loizides |
1.3 |
void BookDataBlock(TreeWriter &tws);
|
27 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
28 |
sixie |
1.1 |
|
29 |
|
|
private:
|
30 |
loizides |
1.2 |
Bool_t flavorMatchingActive_; //=true if flavor matching is done
|
31 |
|
|
std::string edmName_; //edm name of genjets collection
|
32 |
|
|
std::string mitName_; //mit name of GenJets
|
33 |
|
|
std::string flavorMatchingByReferenceName_; //name of flavor matching collection
|
34 |
|
|
std::string flavorMatchingDefinition_; //name of flavor matching algorithm
|
35 |
|
|
mithep::GenJetArr *genjets_; //array of GenJets
|
36 |
sixie |
1.1 |
};
|
37 |
|
|
}
|
38 |
|
|
#endif
|