3 |
|
// |
4 |
|
// FillerPATElectrons |
5 |
|
// |
6 |
< |
// Imlementation of a filler to fill PAT electrons into our mithep::Electron data structure. |
6 |
> |
// Implementation of a filler to fill PAT electrons into our mithep::Electron data structure. |
7 |
|
// |
8 |
|
// Authors: S.Xie |
9 |
|
//-------------------------------------------------------------------------------------------------- |
11 |
|
#ifndef MITPROD_TREEFILLER_FILLERPATELECTRONS_H |
12 |
|
#define MITPROD_TREEFILLER_FILLERPATELECTRONS_H |
13 |
|
|
14 |
< |
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
15 |
< |
#include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h" |
16 |
< |
#include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h" |
17 |
< |
#include "MitAna/DataUtil/interface/TreeWriter.h" |
18 |
< |
#include "MitAna/DataTree/interface/Collections.h" |
19 |
< |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
14 |
> |
#include "MitAna/DataTree/interface/ElectronFwd.h" |
15 |
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h" |
16 |
+ |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
17 |
|
|
18 |
|
namespace mithep |
19 |
|
{ |
20 |
|
class FillerPATElectrons : public BaseFiller |
21 |
|
{ |
22 |
|
public: |
23 |
< |
FillerPATElectrons(const edm::ParameterSet &cfg, bool active=1, |
28 |
< |
const GsfTrackMap* gsfTrackMap=0, const TrackMap* trackerTrackMap=0); |
23 |
> |
FillerPATElectrons(const edm::ParameterSet &cfg, const char *name, bool active=1); |
24 |
|
~FillerPATElectrons(); |
25 |
|
|
26 |
< |
void BookDataBlock(TreeWriter &tws); |
27 |
< |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
26 |
> |
void BookDataBlock(TreeWriter &tws, const edm::EventSetup &es); |
27 |
> |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
28 |
|
|
29 |
|
private: |
30 |
< |
std::string edmName_; |
31 |
< |
std::string mitName_; |
32 |
< |
std::string gsfTrackMapName_; //name of imported map wrt gsf tracks |
33 |
< |
std::string trackerTrackMapName_; //name of imported map wrt to trk tracks |
34 |
< |
|
35 |
< |
mithep::ElectronArr *electrons_; |
36 |
< |
const mithep::GsfTrackMap *gsfTrackMap_; |
42 |
< |
const mithep::TrackMap *trackerTrackMap_; |
30 |
> |
std::string edmName_; //edm name of electron collection |
31 |
> |
std::string mitName_; //mit name of electron collection |
32 |
> |
std::string gsfTrackMapName_; //name of imported map wrt gsf tracks |
33 |
> |
std::string trackerTrackMapName_; //name of imported map wrt to trk tracks |
34 |
> |
mithep::ElectronArr *electrons_; //electron array |
35 |
> |
const mithep::TrackMap *gsfTrackMap_; //imported gsf track map |
36 |
> |
const mithep::TrackMap *trackerTrackMap_; //imported track track map |
37 |
|
}; |
38 |
|
} |
39 |
|
#endif |