5 |
|
#include <vector> |
6 |
|
#include <string> |
7 |
|
|
8 |
< |
#include "DataFormats/PatCandidates/interface/Muon.h" |
8 |
> |
#include "DataFormats/PatCandidates/interface/Electron.h" |
9 |
|
|
10 |
|
#include "UserCode/HbbAnalysis/interface/HistosBase.hh" |
11 |
|
|
22 |
|
|
23 |
|
public: |
24 |
|
|
25 |
< |
HistosElecs(){}; |
25 |
> |
HistosElecs(): |
26 |
> |
doGenMatched_(false) |
27 |
> |
{}; |
28 |
|
~HistosElecs(){}; |
29 |
|
|
30 |
< |
void Initialise(TFileDirectory & aDir, std::string aName); |
30 |
> |
void Initialise(TFileDirectory & aDir, std::string aName, bool aDoGenMatched=false); |
31 |
|
|
32 |
< |
void FillHistograms(const pat::Muon & aMuon); |
32 |
> |
void FillEventHistograms(edm::Handle<std::vector<pat::Electron> > aElecCol); |
33 |
> |
|
34 |
> |
void FillHistograms(const pat::Electron & aElec, bool isLead=true); |
35 |
> |
|
36 |
> |
bool MatchesGenElectron(const pat::Electron & aElec); |
37 |
|
|
38 |
|
private: |
39 |
|
|
40 |
+ |
bool doGenMatched_; |
41 |
+ |
|
42 |
+ |
TH1F *p_nElectrons; |
43 |
+ |
|
44 |
|
TH1F *p_nChambers; |
45 |
|
|
46 |
|
|