21 |
|
|
22 |
|
#include <memory> |
23 |
|
#include <string> |
24 |
< |
#include "TFile.h" |
24 |
> |
//#include "TFile.h" |
25 |
|
#include "TTree.h" |
26 |
|
#include "Rtypes.h" |
27 |
|
#include "FWCore/Framework/interface/Frameworkfwd.h" |
30 |
|
#include "FWCore/Framework/interface/MakerMacros.h" |
31 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
32 |
|
|
33 |
+ |
#include "FWCore/ServiceRegistry/interface/Service.h" |
34 |
+ |
#include "PhysicsTools/UtilAlgos/interface/TFileService.h" |
35 |
+ |
|
36 |
|
class TtLJetsAnalyzer : public edm::EDAnalyzer { |
37 |
|
public: |
38 |
|
explicit TtLJetsAnalyzer(const edm::ParameterSet&); |
45 |
|
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
46 |
|
virtual void endJob(void); |
47 |
|
|
48 |
+ |
edm::Service<TFileService> fs; |
49 |
+ |
|
50 |
|
// _____ quantities read from the config file _________________________ |
51 |
< |
std::string _jetSource, _electronSource, _muonSource, _METSource; |
51 |
> |
std::string _jetSource, _electronSource, _muonSource, _METSource, _beamSpotSource; |
52 |
> |
bool _lepton_flavor_is_muon; |
53 |
|
std::string _outFile; |
54 |
|
bool _is_mc; |
55 |
|
int nCaloJets_min; |
70 |
|
RooGKCounter eventCounter; |
71 |
|
RooGKCounter selectedEvents; |
72 |
|
|
67 |
– |
TFile * _file; |
73 |
|
TTree * _tree; |
74 |
|
|
75 |
|
// |
87 |
|
Double_t _lepton_pt; |
88 |
|
Double_t _lepton_eta; |
89 |
|
Double_t _lepton_phi; |
90 |
+ |
Double_t _lepton_ptrel; // relative to the nearest jet |
91 |
+ |
Double_t _lepton_d0; // relative to the beam spot |
92 |
+ |
Double_t _lepton_d0_err; // relative to the beam spot |
93 |
+ |
Double_t _lepton_d0_significance; // relative to the beam spot |
94 |
|
Double_t _lepton_energy; |
95 |
+ |
Double_t _lepton_track_iso; |
96 |
+ |
Double_t _lepton_calo_iso; |
97 |
+ |
Double_t _lepton_ecal_iso; |
98 |
+ |
Double_t _lepton_hcal_iso; |
99 |
+ |
Double_t _lepton_user_iso; |
100 |
+ |
Double_t _lepton_IsoDeposit_em; |
101 |
+ |
Double_t _lepton_IsoDeposit_had; |
102 |
|
Double_t _muon_track_chi2; |
103 |
|
Double_t _muon_track_ndof; |
104 |
|
Double_t _muon_track_nChi2; |
108 |
|
Double_t _muon_globalTrack_chi2; |
109 |
|
Double_t _muon_globalTrack_ndof; |
110 |
|
Double_t _muon_globalTrack_nChi2; |
95 |
– |
Double_t _lepton_track_iso; |
96 |
– |
Double_t _lepton_calo_iso; |
97 |
– |
Double_t _lepton_ecal_iso; |
98 |
– |
Double_t _lepton_hcal_iso; |
99 |
– |
Double_t _lepton_user_iso; |
100 |
– |
Double_t _lepton_IsoDeposit_em; |
101 |
– |
Double_t _lepton_IsoDeposit_had; |
111 |
|
Double_t _met_et; |
112 |
|
Double_t _met_pt; |
113 |
|
Double_t _met_eta; |