1 |
|
#ifndef ElectronAnalyzer_h |
2 |
|
#define ElectronAnalyzer_h |
3 |
|
|
4 |
< |
// system include files |
5 |
< |
#include <iostream> |
6 |
< |
|
7 |
< |
// user include files |
8 |
< |
#include "FWCore/Framework/interface/Event.h" |
9 |
< |
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
10 |
< |
#include "FWCore/Framework/interface/ESHandle.h" |
11 |
< |
|
4 |
> |
#include "DataFormats/Common/interface/ValueMap.h" |
5 |
|
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h" |
6 |
|
#include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h" |
7 |
+ |
#include "DataFormats/PatCandidates/interface/Electron.h" |
8 |
+ |
#include "DataFormats/EgammaReco/interface/BasicCluster.h" |
9 |
+ |
#include "DataFormats/EgammaReco/interface/BasicClusterFwd.h" |
10 |
+ |
#include "DataFormats/RecoCandidate/interface/IsoDeposit.h" |
11 |
+ |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h" |
12 |
|
|
13 |
< |
#include "UserCode/Morgan/interface/TRootElectron.h" |
13 |
> |
#include "../interface/LeptonAnalyzer.h" |
14 |
> |
#include "../interface/TRootElectron.h" |
15 |
|
|
16 |
|
#include "TClonesArray.h" |
17 |
|
|
18 |
|
|
19 |
< |
class ElectronAnalyzer{ |
20 |
< |
|
21 |
< |
public: |
22 |
< |
ElectronAnalyzer(const edm::ParameterSet& producersNames); |
23 |
< |
ElectronAnalyzer(const edm::ParameterSet& producersNames, int verbosity); |
24 |
< |
~ElectronAnalyzer(); |
25 |
< |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
26 |
< |
void Process(const edm::Event& iEvent, TClonesArray* rootElectrons); |
27 |
< |
|
28 |
< |
private: |
29 |
< |
int verbosity_; |
31 |
< |
edm::InputTag electronProducer_; |
19 |
> |
class ElectronAnalyzer : public LeptonAnalyzer |
20 |
> |
{ |
21 |
> |
|
22 |
> |
public: |
23 |
> |
ElectronAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity); |
24 |
> |
~ElectronAnalyzer(); |
25 |
> |
bool process(const edm::Event& iEvent, TRootBeamSpot* rootBeamSpot, TClonesArray* rootElectrons, EcalClusterLazyTools* lazyTools); |
26 |
> |
|
27 |
> |
private: |
28 |
> |
bool useMC_; |
29 |
> |
edm::InputTag electronProducer_; |
30 |
|
|
31 |
|
}; |
32 |
|
|