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.3 by kukartse, Thu Nov 20 22:34:48 2008 UTC vs.
Revision 1.7 by kukartse, Tue Feb 24 23:33:21 2009 UTC

# Line 38 | Line 38 | public:
38    
39    
40   private:
41 +
42 +  virtual void beginJob(const edm::EventSetup&);
43 +  virtual void analyze(const edm::Event&, const edm::EventSetup&);
44 +  virtual void endJob(void);
45 +
46 +  // _____ quantities read from the config file _________________________
47    std::string _jetSource, _electronSource, _muonSource, _METSource;
48    std::string _outFile;
49    int nCaloJets_min;
# Line 53 | Line 59 | private:
59    double electron_trackIso_max ;
60    double electron_caloIso_max  ;
61    double met_et_min            ;
62 +  double min_dr_jet_lepton     ;
63  
64    RooGKCounter eventCounter;
65    RooGKCounter selectedEvents;
# Line 60 | Line 67 | private:
67    TFile * _file;
68    TTree * _tree;
69  
70 +  //
71 +  // _____ output tree variables ________________________________________
72    Int_t _event;
73    Int_t _process_id;
74    Int_t _n_jets;
75 +  Int_t _n_removed_jets;
76    Int_t _n_met;
77    Int_t _n_muons;
78    Int_t _n_electrons;
79    Int_t _lepton_is_muon;
80    Double_t _event_weight;
81 +  Double_t _lepton_et;
82    Double_t _lepton_pt;
83    Double_t _lepton_eta;
84    Double_t _lepton_phi;
# Line 86 | Line 97 | private:
97    Double_t _lepton_ecal_iso;
98    Double_t _lepton_hcal_iso;
99    Double_t _lepton_user_iso;
89  Double_t _met_pt;
100    Double_t _met_et;
101 +  Double_t _met_pt;
102    Double_t _met_eta;
103    Double_t _met_phi;
104    Double_t _met_energy;
105 +  Double_t _jet1_et;
106    Double_t _jet1_pt;
107    Double_t _jet1_eta;
108    Double_t _jet1_phi;
109    Double_t _jet1_energy;
110 +  Double_t _jet2_et;
111    Double_t _jet2_pt;
112    Double_t _jet2_eta;
113    Double_t _jet2_phi;
114    Double_t _jet2_energy;
115 +  Double_t _jet3_et;
116    Double_t _jet3_pt;
117    Double_t _jet3_eta;
118    Double_t _jet3_phi;
119    Double_t _jet3_energy;
120 +  Double_t _jet4_et;
121    Double_t _jet4_pt;
122    Double_t _jet4_eta;
123    Double_t _jet4_phi;
124    Double_t _jet4_energy;
110
125    Double_t _aplanarity       ;
126    Double_t _centrality       ;
127    Double_t _sphericity       ;
# Line 129 | Line 143 | private:
143    Double_t _jet1Jet2_Pt      ;
144    Double_t _jet1Jet2W_M      ;
145    Double_t _jet1Jet2W_Pt     ;
132
146    Double_t _hz               ;
147    Double_t _HT2              ;
148    Double_t _HT2prime         ;
# Line 137 | Line 150 | private:
150    Double_t _W_M              ;
151    Double_t _W_Pt             ;
152    Double_t _DphiJMET         ;
140                      
153    // Ht              
154    Double_t _getHt            ;
155    Double_t _getHtp           ;
# Line 161 | Line 173 | private:
173    Double_t _getEta2Sum       ;
174    Double_t _getMwRec         ;
175    Double_t _getH             ;
164                      
176    // event topo      
177    Double_t _getSph           ;
178    Double_t _getApl           ;
179    Double_t _getAplMu         ;
169                      
180    // Kt              
181    Double_t _getKtminp        ;
182    Double_t _getKtminpReduced ;
183    Double_t _getDrMinJetJet   ;
174                      
184    // mT              
185    Double_t _getDphiMuMet     ;
186    Double_t _getMt            ;
187 <
188 <  Double_t _lepton_id;
189 <  Double_t _electron_id_robust;
190 <  Double_t _electron_id_loose;
191 <  Double_t _electron_id_tight;
192 <  Double_t _electron_tdrid_medium;
193 <  Double_t _electron_tdrid_loose;
185 <  Double_t _electron_tdrid_tight;
187 >  //
188 >  //
189 >  //_____ b tagging ______________________________________________
190 >  vector<string> * _b_tagger_label;
191 >  vector<float> * _b_tagger_discr;
192 >  TBranch * b_b_tagger_label;
193 >  TBranch * b_b_tagger_discr;
194    Int_t _n_tagged_jets_trackCounting_loose;
195    Int_t _n_tagged_jets_trackCounting_medium;
196    Int_t _n_tagged_jets_trackCounting_tight;
# Line 190 | Line 198 | private:
198    Int_t _n_tagged_jets_jetProb_medium;
199    Int_t _n_tagged_jets_jetProb_tight;
200  
201 +  //
202 +  //
203 +  //_____ electron quality _______________________________________
204 +  Float_t _eidLoose;
205 +  Float_t _eidRobustHighEnergy;
206 +  Float_t _eidRobustLoose;
207 +  Float_t _eidRobustTight;
208 +  Float_t _eidTight;
209 +  Int_t    _GsfElectron_classification;
210 +  Double_t _GsfElectron_hadronicOverEm;
211 +  Double_t _GsfElectron_caloEnergyError;
212 +  Double_t _GsfElectron_trackMomentumError;
213 +  Int_t    _GsfElectron_numberOfClusters;
214 +  Double_t _GsfElectron_caloEnergy;  // the super cluster energy corrected by EnergyScaleFactor
215 +  Double_t _GsfElectron_eSuperClusterOverP;  // the supercluster energy / track momentum at impact point
216 +  Double_t _GsfElectron_eSeedClusterOverPout;  // the seed cluster energy / track momentum at calo from outermost state
217 +  Double_t _GsfElectron_deltaEtaSuperClusterTrackAtVtx;  // the supercluster eta - track eta from helix extrapolation from impact point
218 +  Double_t _GsfElectron_deltaEtaSeedClusterTrackAtCalo;  // the seed cluster eta - track eta at calo from outermost state
219 +  Double_t _GsfElectron_deltaPhiSuperClusterTrackAtVtx;  // the supercluster phi - track phi from helix extrapolation from impact point
220 +  Double_t _GsfElectron_deltaPhiSeedClusterTrackAtCalo;  // the seed cluster phi - track phi at calo from outermost state
221 +  // ____ branches
222 +  TBranch * b_eidLoose;
223 +  TBranch * b_eidRobustHighEnergy;
224 +  TBranch * b_eidRobustLoose;
225 +  TBranch * b_eidRobustTight;
226 +  TBranch * b_eidTight;
227 +  TBranch * b_GsfElectron_classification;
228 +  TBranch * b_GsfElectron_hadronicOverEm;
229 +  TBranch * b_GsfElectron_caloEnergyError;
230 +  TBranch * b_GsfElectron_trackMomentumError;
231 +  TBranch * b_GsfElectron_numberOfClusters;
232 +  TBranch * b_GsfElectron_caloEnergy;  // the super cluster energy corrected by EnergyScaleFactor
233 +  TBranch * b_GsfElectron_eSuperClusterOverP;  // the supercluster energy / track momentum at impact point
234 +  TBranch * b_GsfElectron_eSeedClusterOverPout;  // the seed cluster energy / track momentum at calo from outermost state
235 +  TBranch * b_GsfElectron_deltaEtaSuperClusterTrackAtVtx;  // the supercluster eta - track eta from helix extrapolation from impact point
236 +  TBranch * b_GsfElectron_deltaEtaSeedClusterTrackAtCalo;  // the seed cluster eta - track eta at calo from outermost state
237 +  TBranch * b_GsfElectron_deltaPhiSuperClusterTrackAtVtx;  // the supercluster phi - track phi from helix extrapolation from impact point
238 +  TBranch * b_GsfElectron_deltaPhiSeedClusterTrackAtCalo;  // the seed cluster phi - track phi at calo from outermost state
239 +  //
240 +  //
241 +  //_____ muon quality _______________________________________
242 +  bool _muon_isGood_All;                      // dummy options - always true
243 +  bool _muon_isGood_AllGlobalMuons;           // checks isGlobalMuon flag
244 +  bool _muon_isGood_AllStandAloneMuons;       // checks isStandAloneMuon flag
245 +  bool _muon_isGood_AllTrackerMuons;          // checks isTrackerMuon flag
246 +  bool _muon_isGood_TrackerMuonArbitrated;    // resolve ambiguity of sharing segments
247 +  bool _muon_isGood_AllArbitrated;            // all muons with the tracker muon arbitrated
248 +  bool _muon_isGood_GlobalMuonPromptTight;    // global muons with tighter fit requirements
249 +  bool _muon_isGood_TMLastStationLoose;       // penetration depth loose selector
250 +  bool _muon_isGood_TMLastStationTight;       // penetration depth tight selector
251 +  bool _muon_isGood_TM2DCompatibilityLoose;   // likelihood based loose selector
252 +  bool _muon_isGood_TM2DCompatibilityTight;   // likelihood based tight selector
253 +  bool _muon_isGood_TMOneStationLoose;        // require one well matched segment
254 +  bool _muon_isGood_TMOneStationTight;        // require one well matched segment
255 +  bool _muon_isGood_TMLastStationOptimizedLowPtLoose; // combination of TMLastStation and TMOneStation
256 +  bool _muon_isGood_TMLastStationOptimizedLowPtTight;  // combination of TMLastStation and TMOneStation
257 +  //____ branches
258 +  TBranch * b_muon_isGood_All;                      // dummy options - always true
259 +  TBranch * b_muon_isGood_AllGlobalMuons;           // checks isGlobalMuon flag
260 +  TBranch * b_muon_isGood_AllStandAloneMuons;       // checks isStandAloneMuon flag
261 +  TBranch * b_muon_isGood_AllTrackerMuons;          // checks isTrackerMuon flag
262 +  TBranch * b_muon_isGood_TrackerMuonArbitrated;    // resolve ambiguity of sharing segments
263 +  TBranch * b_muon_isGood_AllArbitrated;            // all muons with the tracker muon arbitrated
264 +  TBranch * b_muon_isGood_GlobalMuonPromptTight;    // global muons with tighter fit requirements
265 +  TBranch * b_muon_isGood_TMLastStationLoose;       // penetration depth loose selector
266 +  TBranch * b_muon_isGood_TMLastStationTight;       // penetration depth tight selector
267 +  TBranch * b_muon_isGood_TM2DCompatibilityLoose;   // likelihood based loose selector
268 +  TBranch * b_muon_isGood_TM2DCompatibilityTight;   // likelihood based tight selector
269 +  TBranch * b_muon_isGood_TMOneStationLoose;        // require one well matched segment
270 +  TBranch * b_muon_isGood_TMOneStationTight;        // require one well matched segment
271 +  TBranch * b_muon_isGood_TMLastStationOptimizedLowPtLoose; // combination of TMLastStation and TMOneStation
272 +  TBranch * b_muon_isGood_TMLastStationOptimizedLowPtTight;  // combination of TMLastStation and TMOneStation
273 +  //____ output tree variables
274    TBranch * b_event;
275    TBranch * b_process_id;
276    TBranch * b_n_jets;
# Line 198 | Line 279 | private:
279    TBranch * b_n_electrons;
280    TBranch * b_lepton_is_muon;
281    TBranch * b_event_weight;
282 +  TBranch * b_lepton_et;
283    TBranch * b_lepton_pt;
284    TBranch * b_lepton_eta;
285    TBranch * b_lepton_phi;
# Line 216 | Line 298 | private:
298    TBranch * b_lepton_ecal_iso;
299    TBranch * b_lepton_hcal_iso;
300    TBranch * b_lepton_user_iso;
219  TBranch * b_met_pt;
301    TBranch * b_met_et;
302 +  TBranch * b_met_pt;
303    TBranch * b_met_eta;
304    TBranch * b_met_phi;
305    TBranch * b_met_energy;
306 +  TBranch * b_jet1_et;
307    TBranch * b_jet1_pt;
308    TBranch * b_jet1_eta;
309    TBranch * b_jet1_phi;
310    TBranch * b_jet1_energy;
311 +  TBranch * b_jet2_et;
312    TBranch * b_jet2_pt;
313    TBranch * b_jet2_eta;
314    TBranch * b_jet2_phi;
315    TBranch * b_jet2_energy;
316 +  TBranch * b_jet3_et;
317    TBranch * b_jet3_pt;
318    TBranch * b_jet3_eta;
319    TBranch * b_jet3_phi;
320    TBranch * b_jet3_energy;
321 +  TBranch * b_jet4_et;
322    TBranch * b_jet4_pt;
323    TBranch * b_jet4_eta;
324    TBranch * b_jet4_phi;
325    TBranch * b_jet4_energy;
240  TBranch * b_lepton_id;
241  TBranch * b_electron_id_robust;
242  TBranch * b_electron_id_loose;
243  TBranch * b_electron_id_tight;
244  TBranch * b_electron_tdrid_medium;
245  TBranch * b_electron_tdrid_loose;
246  TBranch * b_electron_tdrid_tight;
326    TBranch * b_n_tagged_jets_trackCounting_loose;
327    TBranch * b_n_tagged_jets_trackCounting_medium;
328    TBranch * b_n_tagged_jets_trackCounting_tight;
329    TBranch * b_n_tagged_jets_jetProb_loose;
330    TBranch * b_n_tagged_jets_jetProb_medium;
331    TBranch * b_n_tagged_jets_jetProb_tight;      
332 <
332 >  // ____
333    TBranch * b_aplanarity       ;
334    TBranch * b_centrality       ;
335    TBranch * b_sphericity       ;
# Line 272 | Line 351 | private:
351    TBranch * b_jet1Jet2_Pt      ;
352    TBranch * b_jet1Jet2W_M      ;
353    TBranch * b_jet1Jet2W_Pt     ;
275                      
354    TBranch * b_hz               ;
355 <  TBranch * b_HT2              ;
356 <  TBranch * b_HT2prime         ;
357 <  TBranch * b_W_MT             ;
355 >  TBranch * b_HT2;
356 >  TBranch * b_HT2prime;
357 >  TBranch * b_W_MT;
358    TBranch * b_W_M              ;
359    TBranch * b_W_Pt             ;
360    TBranch * b_DphiJMET         ;
283                      
361    // Ht              
362    TBranch * b_getHt            ;
363    TBranch * b_getHtp           ;
# Line 304 | Line 381 | private:
381    TBranch * b_getEta2Sum       ;
382    TBranch * b_getMwRec         ;
383    TBranch * b_getH             ;
307                      
384    // event topo      
385    TBranch * b_getSph           ;
386    TBranch * b_getApl           ;
387    TBranch * b_getAplMu         ;
312                      
388    // Kt              
389    TBranch * b_getKtminp        ;
390    TBranch * b_getKtminpReduced ;
391    TBranch * b_getDrMinJetJet   ;
317                      
392    // mT              
393    TBranch * b_getDphiMuMet     ;
394    TBranch * b_getMt            ;
395  
396 <  virtual void beginJob(const edm::EventSetup&) ;
323 <  virtual void analyze(const edm::Event&, const edm::EventSetup&);
324 <  virtual void endJob() ;
396 >  
397   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines