17 |
|
// |
18 |
|
// |
19 |
|
|
20 |
+ |
#include "DataFormats/BeamSpot/interface/BeamSpot.h" |
21 |
+ |
|
22 |
|
#include "LJMet/MultivariateAnalysis/interface/RooGKCounter.h" |
23 |
|
|
24 |
|
#include <memory> |
34 |
|
|
35 |
|
#include "FWCore/ServiceRegistry/interface/Service.h" |
36 |
|
#include "PhysicsTools/UtilAlgos/interface/TFileService.h" |
37 |
+ |
#include "DataFormats/Math/interface/LorentzVector.h" |
38 |
+ |
#include "DataFormats/Common/interface/View.h" |
39 |
+ |
#include "DataFormats/PatCandidates/interface/Electron.h" |
40 |
+ |
#include "DataFormats/TrackReco/interface/Track.h" |
41 |
|
|
42 |
|
class TtLJetsAnalyzer : public edm::EDAnalyzer { |
43 |
|
public: |
51 |
|
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
52 |
|
virtual void endJob(void); |
53 |
|
|
54 |
+ |
// returns pair<dist,dcot> |
55 |
+ |
pair<float, float> getConversionInfo(const pat::Electron & el, |
56 |
+ |
const reco::Track & track, |
57 |
+ |
const reco::BeamSpot::Point _bs, |
58 |
+ |
float bField); |
59 |
+ |
|
60 |
+ |
bool ConversionAlgo(const pat::Electron& e, edm::Handle<edm::View<reco::Track> > track_h); |
61 |
+ |
double DelRTrackEle(const pat::Electron& e,const reco::Track& tk); |
62 |
+ |
|
63 |
|
edm::Service<TFileService> fs; |
64 |
|
|
65 |
|
bool first_event; |
66 |
|
|
67 |
|
// _____ quantities read from the config file _________________________ |
68 |
|
std::string _jetSource, _electronSource, _muonSource, _METSource, |
69 |
< |
_beamSpotSource, _trigger_source; |
69 |
> |
_beamSpotSource, _trigger_source, _track_source; |
70 |
|
bool _lepton_flavor_is_muon; |
71 |
|
std::string _outFile; |
72 |
|
bool _is_mc; |
84 |
|
double electron_caloIso_max ; |
85 |
|
double met_et_min ; |
86 |
|
double min_dr_jet_lepton ; |
87 |
+ |
double _bfield; |
88 |
+ |
double _dist_min; |
89 |
+ |
double _dist_max; |
90 |
+ |
double _abs_dcot_max; |
91 |
+ |
double _e_track_dr; |
92 |
|
|
93 |
|
RooGKCounter eventCounter; |
94 |
|
RooGKCounter selectedEvents; |
107 |
|
Int_t _n_electrons; |
108 |
|
Int_t _lepton_is_muon; |
109 |
|
// |
110 |
+ |
//_____ photon conversion _____________________________________________ |
111 |
+ |
// |
112 |
+ |
vector<double> * _e_dist; |
113 |
+ |
vector<double> * _e_dcot; |
114 |
+ |
bool _is_conv; |
115 |
+ |
// |
116 |
|
//_____ trigger _______________________________________________________ |
117 |
|
// |
118 |
|
std::map<std::string,bool> _hlt; |