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