1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.3 |
// $Id: FillerElectrons.h,v 1.2 2008/07/01 21:11:47 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// FillerElectrons
|
5 |
|
|
//
|
6 |
|
|
// Imlementation of a filler to fill EDM electrons into our mithep::Electron data structure.
|
7 |
|
|
//
|
8 |
|
|
// Authors: J.Bendavid
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef TREEFILLER_FILLERELECTRONS_H
|
12 |
|
|
#define TREEFILLER_FILLERELECTRONS_H
|
13 |
|
|
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
|
16 |
|
|
#include "DataFormats/EgammaCandidates/interface/PixelMatchGsfElectronFwd.h"
|
17 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
19 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
20 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
21 |
|
|
|
22 |
|
|
namespace mithep
|
23 |
|
|
{
|
24 |
|
|
class FillerElectrons : public BaseFiller
|
25 |
|
|
{
|
26 |
|
|
public:
|
27 |
loizides |
1.2 |
FillerElectrons(const edm::ParameterSet &cfg, bool active=1,
|
28 |
|
|
const GsfTrackMap* gsfTrackMap=0, const TrackMap* trackerTrackMap=0);
|
29 |
loizides |
1.1 |
~FillerElectrons();
|
30 |
|
|
|
31 |
|
|
void BookDataBlock(TreeWriter &tws);
|
32 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
33 |
|
|
|
34 |
|
|
private:
|
35 |
|
|
std::string edmName_;
|
36 |
|
|
std::string mitName_;
|
37 |
|
|
mithep::ElectronArr *electrons_;
|
38 |
|
|
const mithep::GsfTrackMap *gsfTrackMap_;
|
39 |
|
|
const mithep::TrackMap *trackerTrackMap_;
|
40 |
|
|
};
|
41 |
|
|
}
|
42 |
|
|
#endif
|