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