ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/interface/TtLJetsAnalyzer.h
(Generate patch)

Comparing UserCode/LJMet/MultivariateAnalysis/interface/TtLJetsAnalyzer.h (file contents):
Revision 1.9 by kukartse, Thu Apr 2 16:43:50 2009 UTC vs.
Revision 1.16 by kukartse, Fri Jun 26 17:43:54 2009 UTC

# Line 17 | Line 17
17   //
18   //
19  
20 + #include "DataFormats/BeamSpot/interface/BeamSpot.h"
21 +
22   #include "LJMet/MultivariateAnalysis/interface/RooGKCounter.h"
23  
24   #include <memory>
25   #include <string>
26 < #include "TFile.h"
26 > //#include "TFile.h"
27   #include "TTree.h"
28   #include "Rtypes.h"
29   #include "FWCore/Framework/interface/Frameworkfwd.h"
# Line 30 | Line 32
32   #include "FWCore/Framework/interface/MakerMacros.h"
33   #include "FWCore/ParameterSet/interface/ParameterSet.h"
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:
44    explicit TtLJetsAnalyzer(const edm::ParameterSet&);
# Line 42 | Line 51 | private:
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;
68 >  std::string _jetSource, _electronSource, _muonSource, _METSource,
69 >    _beamSpotSource, _trigger_source, _track_source;
70 >  std::string pdfWeightTag_;
71 >  bool _lepton_flavor_is_muon;
72    std::string _outFile;
73    bool _is_mc;
74    int nCaloJets_min;
# Line 60 | Line 85 | private:
85    double electron_caloIso_max  ;
86    double met_et_min            ;
87    double min_dr_jet_lepton     ;
88 +  double _bfield;
89 +  double _dist_min;
90 +  double _dist_max;
91 +  double _abs_dcot_max;
92 +  double _e_track_dr;
93  
94    RooGKCounter eventCounter;
95    RooGKCounter selectedEvents;
96  
67  TFile * _file;
97    TTree * _tree;
98  
99    //
100    // _____ output tree variables ________________________________________
101 +  //
102    Int_t _event;
103    Int_t _process_id;
104    Int_t _n_jets;
# Line 77 | Line 107 | private:
107    Int_t _n_muons;
108    Int_t _n_electrons;
109    Int_t _lepton_is_muon;
110 +  //
111 +  //_____ photon conversion _____________________________________________
112 +  //
113 +  vector<double> * _e_dist;
114 +  vector<double> * _e_dcot;
115 +  bool     _is_conv;
116 +  //
117 +  //_____ PDF weights ___________________________________________________
118 +  //
119 +  vector<double> * _pdf_weights;
120 +  Double_t _weight_pdf_pos;
121 +  Double_t _weight_pdf_neg;
122 +  //
123 +  //_____ trigger _______________________________________________________
124 +  //
125 +  std::map<std::string,bool> _hlt;
126 +  //vector<TBranch> b_hlt;
127 +  //
128    Double_t _event_weight;
129    Double_t _lepton_et;
130    Double_t _lepton_pt;
131    Double_t _lepton_eta;
132    Double_t _lepton_phi;
133 +  Double_t _lepton_jet_min_dr;
134 +  Double_t _lepton_ptrel; // relative to the nearest jet
135 +  Double_t _lepton_d0;    // relative to the beam spot
136 +  Double_t _lepton_d0_err;    // relative to the beam spot
137 +  Double_t _lepton_d0_significance;    // relative to the beam spot
138    Double_t _lepton_energy;
139 +  Double_t _lepton_track_iso;
140 +  Double_t _lepton_calo_iso;
141 +  Double_t _lepton_ecal_iso;
142 +  Double_t _lepton_hcal_iso;
143 +  Double_t _lepton_user_iso;
144 +  Double_t _lepton_IsoDeposit_em;
145 +  Double_t _lepton_IsoDeposit_had;
146 +  Int_t    _muon_track_nhits;
147    Double_t _muon_track_chi2;
148    Double_t _muon_track_ndof;
149    Double_t _muon_track_nChi2;
# Line 92 | Line 153 | private:
153    Double_t _muon_globalTrack_chi2;
154    Double_t _muon_globalTrack_ndof;
155    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;
156    Double_t _met_et;
157    Double_t _met_pt;
158    Double_t _met_eta;
# Line 236 | Line 290 | private:
290    TBranch * b_lepton_et;
291    TBranch * b_lepton_energy;
292    TBranch * b_lepton_flavor;
293 +  TBranch * b_lepton_jet_min_dr;
294 +  TBranch * b_lepton_ptrel;
295 +  TBranch * b_lepton_d0;
296 +  TBranch * b_lepton_d0_err;
297 +  TBranch * b_lepton_d0_significance;
298    //
299    vector<string> * _b_tagger_label;
300    vector<float> * _b_tagger_discr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines