1 |
// $Id$
|
2 |
|
3 |
#ifndef TREEFILLER_FILLELECTRONS_H
|
4 |
#define TREEFILLER_FILLELECTRONS_H
|
5 |
|
6 |
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
7 |
#include "FWCore/Framework/interface/Event.h"
|
8 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
9 |
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
10 |
|
11 |
#include "MitProd/TreeService/interface/TreeService.h"
|
12 |
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
13 |
|
14 |
#include "MitAna/DataTree/interface/Electron.h"
|
15 |
#include "MitAna/DataTree/interface/Track.h"
|
16 |
#include "MitAna/DataTree/interface/Vector.h"
|
17 |
#include <TClonesArray.h>
|
18 |
|
19 |
//--------------------------------------------------------------------------------------------------
|
20 |
//
|
21 |
// FillElectrons
|
22 |
//
|
23 |
// Module copying HepMC particles into Electrons.
|
24 |
//
|
25 |
// Authors: C.Loizides, J. Bendavid
|
26 |
//
|
27 |
//--------------------------------------------------------------------------------------------------
|
28 |
|
29 |
namespace mithep
|
30 |
{
|
31 |
class FillElectrons : public edm::EDAnalyzer
|
32 |
{
|
33 |
public:
|
34 |
FillElectrons(const edm::ParameterSet&);
|
35 |
~FillElectrons();
|
36 |
|
37 |
void analyze(const edm::Event&, const edm::EventSetup&);
|
38 |
void beginJob(edm::EventSetup const&);
|
39 |
void endJob ();
|
40 |
|
41 |
private:
|
42 |
mithep::Vector<mithep::Electron> *electrons_;
|
43 |
std::string electronSource_;
|
44 |
std::string electronBranch_;
|
45 |
};
|
46 |
|
47 |
} /*namespace mithep*/
|
48 |
|
49 |
#endif
|