ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/interface/TtLJetsAnalyzer.h
Revision: 1.1
Committed: Tue Nov 11 23:01:21 2008 UTC (16 years, 6 months ago) by kukartse
Content type: text/plain
Branch: MAIN
Log Message:
initial creation of a package for LJMET multivariate analysis

File Contents

# User Rev Content
1 kukartse 1.1 // -*- C++ -*-
2     //
3     // Package: TtLJetsAnalyzer
4     // Class: TtLJetsAnalyzer
5     //
6     /**\class TtLJetsAnalyzer TtLJetsAnalyzer.cc RecoBTag/TtLJetsAnalyzer/src/TtLJetsAnalyzer.cc
7    
8     Description: Likelihood variables for ttbar events
9    
10     Implementation:
11     Ttbar cross section without b tagging. Likelihood quantities.
12     */
13     //
14     // Original Author: Gena Kukartsev, kukarzev@fnal.gov
15     // Created: Fri Jun 20 06:19:59 CDT 2008
16     // $Id$
17     //
18     //
19    
20     #include <memory>
21     #include <string>
22    
23     #include "FWCore/Framework/interface/Frameworkfwd.h"
24     #include "FWCore/Framework/interface/EDAnalyzer.h"
25     #include "FWCore/Framework/interface/Event.h"
26     #include "FWCore/Framework/interface/MakerMacros.h"
27     #include "FWCore/ParameterSet/interface/ParameterSet.h"
28     #include "LJMet/MultivariateAnalysis/interface/RooGKCounter.h"
29    
30     #include "TFile.h"
31     #include "TTree.h"
32     #include "Rtypes.h"
33    
34     class TtLJetsAnalyzer : public edm::EDAnalyzer {
35     public:
36     explicit TtLJetsAnalyzer(const edm::ParameterSet&);
37     ~TtLJetsAnalyzer();
38    
39    
40     private:
41     std::string _jetSource, _electronSource, _muonSource, _METSource;
42     std::string _outFile;
43     int nCaloJets_min;
44     int nLepton_min;
45     double jet_pt_min ;
46     double jet_eta_max ;
47     double muon_pt_min ;
48     double muon_eta_max ;
49     double muon_trackIso_max ;
50     double muon_caloIso_max ;
51     double electron_pt_min ;
52     double electron_eta_max ;
53     double electron_trackIso_max ;
54     double electron_caloIso_max ;
55     double met_et_min ;
56    
57     RooGKCounter eventCounter;
58     RooGKCounter selectedEvents;
59    
60     TFile * _file;
61     TTree * _tree;
62    
63     Int_t _event;
64     Int_t _process_id;
65     Int_t _n_jets;
66     Int_t _n_met;
67     Int_t _n_muons;
68     Int_t _n_electrons;
69     Int_t _lepton_is_muon;
70     Double_t _event_weight;
71     Double_t _lepton_pt;
72     Double_t _lepton_eta;
73     Double_t _lepton_phi;
74     Double_t _lepton_energy;
75     Double_t _lepton_track_iso;
76     Double_t _lepton_calo_iso;
77     Double_t _met_pt;
78     Double_t _met_et;
79     Double_t _met_eta;
80     Double_t _met_phi;
81     Double_t _met_energy;
82     Double_t _jet1_pt;
83     Double_t _jet1_eta;
84     Double_t _jet1_phi;
85     Double_t _jet1_energy;
86     Double_t _jet2_pt;
87     Double_t _jet2_eta;
88     Double_t _jet2_phi;
89     Double_t _jet2_energy;
90     Double_t _jet3_pt;
91     Double_t _jet3_eta;
92     Double_t _jet3_phi;
93     Double_t _jet3_energy;
94     Double_t _jet4_pt;
95     Double_t _jet4_eta;
96     Double_t _jet4_phi;
97     Double_t _jet4_energy;
98    
99     Double_t _aplanarity ;
100     Double_t _centrality ;
101     Double_t _sphericity ;
102     Double_t _ht ;
103     Double_t _htPlusLepton ;
104     Double_t _metHtPlusLepton ;
105     Double_t _h ;
106     Double_t _ktMinPrime ;
107     Double_t _dPhiLMet ;
108     Double_t _minDijetMass ;
109     Double_t _maxJetEta ;
110     Double_t _et3 ;
111     Double_t _minDiJetDeltaR ;
112     Double_t _leptonJetDeltaR ;
113     Double_t _ht2p ;
114     Double_t _jet1Jet2DeltaR ;
115     Double_t _jet1Jet2DeltaPhi ;
116     Double_t _jet1Jet2_M ;
117     Double_t _jet1Jet2_Pt ;
118     Double_t _jet1Jet2W_M ;
119     Double_t _jet1Jet2W_Pt ;
120    
121     Double_t _hz ;
122     Double_t _HT2 ;
123     Double_t _HT2prime ;
124     Double_t _W_MT ;
125     Double_t _W_M ;
126     Double_t _W_Pt ;
127     Double_t _DphiJMET ;
128    
129     // Ht
130     Double_t _getHt ;
131     Double_t _getHtp ;
132     Double_t _getHtpp ;
133     Double_t _getHt2 ;
134     Double_t _getHt2p ;
135     Double_t _getHt2pp ;
136     Double_t _getHt3 ;
137     Double_t _getHt3p ;
138     Double_t _getHt3pp ;
139     Double_t _getCen ;
140     Double_t _getNJW ;
141     Double_t _getJetEtaMax ;
142     Double_t _getMdijetMin ;
143     Double_t _getMtjets ;
144     Double_t _getSqrtsT ;
145     Double_t _getMtAurelio ;
146     Double_t _getPzOverHT ;
147     Double_t _getMevent ;
148     Double_t _getM123inv ;
149     Double_t _getEta2Sum ;
150     Double_t _getMwRec ;
151     Double_t _getH ;
152    
153     // event topo
154     Double_t _getSph ;
155     Double_t _getApl ;
156     Double_t _getAplMu ;
157    
158     // Kt
159     Double_t _getKtminp ;
160     Double_t _getKtminpReduced ;
161     Double_t _getDrMinJetJet ;
162    
163     // mT
164     Double_t _getDphiMuMet ;
165     Double_t _getMt ;
166    
167     Double_t _lepton_id;
168     Double_t _electron_id_robust;
169     Double_t _electron_id_loose;
170     Double_t _electron_id_tight;
171     Double_t _electron_tdrid_medium;
172     Double_t _electron_tdrid_loose;
173     Double_t _electron_tdrid_tight;
174     Int_t _n_tagged_jets_trackCounting_loose;
175     Int_t _n_tagged_jets_trackCounting_medium;
176     Int_t _n_tagged_jets_trackCounting_tight;
177     Int_t _n_tagged_jets_jetProb_loose;
178     Int_t _n_tagged_jets_jetProb_medium;
179     Int_t _n_tagged_jets_jetProb_tight;
180    
181     TBranch * b_event;
182     TBranch * b_process_id;
183     TBranch * b_n_jets;
184     TBranch * b_n_met;
185     TBranch * b_n_muons;
186     TBranch * b_n_electrons;
187     TBranch * b_lepton_is_muon;
188     TBranch * b_event_weight;
189     TBranch * b_lepton_pt;
190     TBranch * b_lepton_eta;
191     TBranch * b_lepton_phi;
192     TBranch * b_lepton_energy;
193     TBranch * b_lepton_track_iso;
194     TBranch * b_lepton_calo_iso;
195     TBranch * b_met_pt;
196     TBranch * b_met_et;
197     TBranch * b_met_eta;
198     TBranch * b_met_phi;
199     TBranch * b_met_energy;
200     TBranch * b_jet1_pt;
201     TBranch * b_jet1_eta;
202     TBranch * b_jet1_phi;
203     TBranch * b_jet1_energy;
204     TBranch * b_jet2_pt;
205     TBranch * b_jet2_eta;
206     TBranch * b_jet2_phi;
207     TBranch * b_jet2_energy;
208     TBranch * b_jet3_pt;
209     TBranch * b_jet3_eta;
210     TBranch * b_jet3_phi;
211     TBranch * b_jet3_energy;
212     TBranch * b_jet4_pt;
213     TBranch * b_jet4_eta;
214     TBranch * b_jet4_phi;
215     TBranch * b_jet4_energy;
216     TBranch * b_lepton_id;
217     TBranch * b_electron_id_robust;
218     TBranch * b_electron_id_loose;
219     TBranch * b_electron_id_tight;
220     TBranch * b_electron_tdrid_medium;
221     TBranch * b_electron_tdrid_loose;
222     TBranch * b_electron_tdrid_tight;
223     TBranch * b_n_tagged_jets_trackCounting_loose;
224     TBranch * b_n_tagged_jets_trackCounting_medium;
225     TBranch * b_n_tagged_jets_trackCounting_tight;
226     TBranch * b_n_tagged_jets_jetProb_loose;
227     TBranch * b_n_tagged_jets_jetProb_medium;
228     TBranch * b_n_tagged_jets_jetProb_tight;
229    
230     TBranch * b_aplanarity ;
231     TBranch * b_centrality ;
232     TBranch * b_sphericity ;
233     TBranch * b_ht ;
234     TBranch * b_htPlusLepton ;
235     TBranch * b_metHtPlusLepton ;
236     TBranch * b_h ;
237     TBranch * b_ktMinPrime ;
238     TBranch * b_dPhiLMet ;
239     TBranch * b_minDijetMass ;
240     TBranch * b_maxJetEta ;
241     TBranch * b_et3 ;
242     TBranch * b_minDiJetDeltaR ;
243     TBranch * b_leptonJetDeltaR ;
244     TBranch * b_ht2p ;
245     TBranch * b_jet1Jet2DeltaR ;
246     TBranch * b_jet1Jet2DeltaPhi ;
247     TBranch * b_jet1Jet2_M ;
248     TBranch * b_jet1Jet2_Pt ;
249     TBranch * b_jet1Jet2W_M ;
250     TBranch * b_jet1Jet2W_Pt ;
251    
252     TBranch * b_hz ;
253     TBranch * b_HT2 ;
254     TBranch * b_HT2prime ;
255     TBranch * b_W_MT ;
256     TBranch * b_W_M ;
257     TBranch * b_W_Pt ;
258     TBranch * b_DphiJMET ;
259    
260     // Ht
261     TBranch * b_getHt ;
262     TBranch * b_getHtp ;
263     TBranch * b_getHtpp ;
264     TBranch * b_getHt2 ;
265     TBranch * b_getHt2p ;
266     TBranch * b_getHt2pp ;
267     TBranch * b_getHt3 ;
268     TBranch * b_getHt3p ;
269     TBranch * b_getHt3pp ;
270     TBranch * b_getCen ;
271     TBranch * b_getNJW ;
272     TBranch * b_getJetEtaMax ;
273     TBranch * b_getMdijetMin ;
274     TBranch * b_getMtjets ;
275     TBranch * b_getSqrtsT ;
276     TBranch * b_getMtAurelio ;
277     TBranch * b_getPzOverHT ;
278     TBranch * b_getMevent ;
279     TBranch * b_getM123inv ;
280     TBranch * b_getEta2Sum ;
281     TBranch * b_getMwRec ;
282     TBranch * b_getH ;
283    
284     // event topo
285     TBranch * b_getSph ;
286     TBranch * b_getApl ;
287     TBranch * b_getAplMu ;
288    
289     // Kt
290     TBranch * b_getKtminp ;
291     TBranch * b_getKtminpReduced ;
292     TBranch * b_getDrMinJetJet ;
293    
294     // mT
295     TBranch * b_getDphiMuMet ;
296     TBranch * b_getMt ;
297    
298     virtual void beginJob(const edm::EventSetup&) ;
299     virtual void analyze(const edm::Event&, const edm::EventSetup&);
300     virtual void endJob() ;
301     };