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; |
66 |
|
TFile * _file; |
67 |
|
TTree * _tree; |
68 |
|
|
69 |
+ |
// output tree variables |
70 |
|
Int_t _event; |
71 |
|
Int_t _process_id; |
72 |
|
Int_t _n_jets; |
79 |
|
Double_t _lepton_eta; |
80 |
|
Double_t _lepton_phi; |
81 |
|
Double_t _lepton_energy; |
82 |
< |
Double_t _lepton_track_chi2; |
83 |
< |
Double_t _lepton_track_ndof; |
84 |
< |
Double_t _lepton_track_nChi2; |
82 |
> |
Double_t _muon_track_chi2; |
83 |
> |
Double_t _muon_track_ndof; |
84 |
> |
Double_t _muon_track_nChi2; |
85 |
> |
Double_t _muon_outerTrack_chi2; |
86 |
> |
Double_t _muon_outerTrack_ndof; |
87 |
> |
Double_t _muon_outerTrack_nChi2; |
88 |
> |
Double_t _muon_globalTrack_chi2; |
89 |
> |
Double_t _muon_globalTrack_ndof; |
90 |
> |
Double_t _muon_globalTrack_nChi2; |
91 |
|
Double_t _lepton_track_iso; |
92 |
|
Double_t _lepton_calo_iso; |
93 |
|
Double_t _lepton_ecal_iso; |
114 |
|
Double_t _jet4_eta; |
115 |
|
Double_t _jet4_phi; |
116 |
|
Double_t _jet4_energy; |
104 |
– |
|
117 |
|
Double_t _aplanarity ; |
118 |
|
Double_t _centrality ; |
119 |
|
Double_t _sphericity ; |
135 |
|
Double_t _jet1Jet2_Pt ; |
136 |
|
Double_t _jet1Jet2W_M ; |
137 |
|
Double_t _jet1Jet2W_Pt ; |
126 |
– |
|
138 |
|
Double_t _hz ; |
139 |
|
Double_t _HT2 ; |
140 |
|
Double_t _HT2prime ; |
142 |
|
Double_t _W_M ; |
143 |
|
Double_t _W_Pt ; |
144 |
|
Double_t _DphiJMET ; |
134 |
– |
|
145 |
|
// Ht |
146 |
|
Double_t _getHt ; |
147 |
|
Double_t _getHtp ; |
165 |
|
Double_t _getEta2Sum ; |
166 |
|
Double_t _getMwRec ; |
167 |
|
Double_t _getH ; |
158 |
– |
|
168 |
|
// event topo |
169 |
|
Double_t _getSph ; |
170 |
|
Double_t _getApl ; |
171 |
|
Double_t _getAplMu ; |
163 |
– |
|
172 |
|
// Kt |
173 |
|
Double_t _getKtminp ; |
174 |
|
Double_t _getKtminpReduced ; |
175 |
|
Double_t _getDrMinJetJet ; |
168 |
– |
|
176 |
|
// mT |
177 |
|
Double_t _getDphiMuMet ; |
178 |
|
Double_t _getMt ; |
172 |
– |
|
173 |
– |
Double_t _lepton_id; |
174 |
– |
Double_t _electron_id_robust; |
175 |
– |
Double_t _electron_id_loose; |
176 |
– |
Double_t _electron_id_tight; |
177 |
– |
Double_t _electron_tdrid_medium; |
178 |
– |
Double_t _electron_tdrid_loose; |
179 |
– |
Double_t _electron_tdrid_tight; |
179 |
|
Int_t _n_tagged_jets_trackCounting_loose; |
180 |
|
Int_t _n_tagged_jets_trackCounting_medium; |
181 |
|
Int_t _n_tagged_jets_trackCounting_tight; |
183 |
|
Int_t _n_tagged_jets_jetProb_medium; |
184 |
|
Int_t _n_tagged_jets_jetProb_tight; |
185 |
|
|
186 |
+ |
// |
187 |
+ |
// |
188 |
+ |
//_____ electron quality _______________________________________ |
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; |
194 |
+ |
Double_t _electron_tdrid_tight; |
195 |
+ |
Int_t _GsfElectron_classification; |
196 |
+ |
Double_t _GsfElectron_hadronicOverEm; |
197 |
+ |
Double_t _GsfElectron_caloEnergyError; |
198 |
+ |
Double_t _GsfElectron_trackMomentumError; |
199 |
+ |
Double_t _GsfElectron_shFracInnerHits; //! measure the fraction of common hits between the GSF and CTF tracks |
200 |
+ |
Int_t _GsfElectron_numberOfClusters; |
201 |
+ |
Double_t _GsfElectron_caloEnergy; // the super cluster energy corrected by EnergyScaleFactor |
202 |
+ |
Double_t _GsfElectron_eSuperClusterOverP; // the supercluster energy / track momentum at impact point |
203 |
+ |
Double_t _GsfElectron_eSeedClusterOverPout; // the seed cluster energy / track momentum at calo from outermost state |
204 |
+ |
Double_t _GsfElectron_deltaEtaSuperClusterTrackAtVtx; // the supercluster eta - track eta from helix extrapolation from impact point |
205 |
+ |
Double_t _GsfElectron_deltaEtaSeedClusterTrackAtCalo; // the seed cluster eta - track eta at calo from outermost state |
206 |
+ |
Double_t _GsfElectron_deltaPhiSuperClusterTrackAtVtx; // the supercluster phi - track phi from helix extrapolation from impact point |
207 |
+ |
Double_t _GsfElectron_deltaPhiSeedClusterTrackAtCalo; // the seed cluster phi - track phi at calo from outermost state |
208 |
+ |
// ____ branches |
209 |
+ |
TBranch * b_electron_id_robust; |
210 |
+ |
TBranch * b_electron_id_loose; |
211 |
+ |
TBranch * b_electron_id_tight; |
212 |
+ |
TBranch * b_electron_tdrid_medium; |
213 |
+ |
TBranch * b_electron_tdrid_loose; |
214 |
+ |
TBranch * b_electron_tdrid_tight; |
215 |
+ |
TBranch * b_GsfElectron_classification; |
216 |
+ |
TBranch * b_GsfElectron_hadronicOverEm; |
217 |
+ |
TBranch * b_GsfElectron_caloEnergyError; |
218 |
+ |
TBranch * b_GsfElectron_trackMomentumError; |
219 |
+ |
TBranch * b_GsfElectron_shFracInnerHits; //! measure the fraction of common hits between the GSF and CTF tracks |
220 |
+ |
TBranch * b_GsfElectron_numberOfClusters; |
221 |
+ |
TBranch * b_GsfElectron_caloEnergy; // the super cluster energy corrected by EnergyScaleFactor |
222 |
+ |
TBranch * b_GsfElectron_eSuperClusterOverP; // the supercluster energy / track momentum at impact point |
223 |
+ |
TBranch * b_GsfElectron_eSeedClusterOverPout; // the seed cluster energy / track momentum at calo from outermost state |
224 |
+ |
TBranch * b_GsfElectron_deltaEtaSuperClusterTrackAtVtx; // the supercluster eta - track eta from helix extrapolation from impact point |
225 |
+ |
TBranch * b_GsfElectron_deltaEtaSeedClusterTrackAtCalo; // the seed cluster eta - track eta at calo from outermost state |
226 |
+ |
TBranch * b_GsfElectron_deltaPhiSuperClusterTrackAtVtx; // the supercluster phi - track phi from helix extrapolation from impact point |
227 |
+ |
TBranch * b_GsfElectron_deltaPhiSeedClusterTrackAtCalo; // the seed cluster phi - track phi at calo from outermost state |
228 |
+ |
// |
229 |
+ |
// |
230 |
+ |
//_____ muon quality _______________________________________ |
231 |
+ |
bool _muon_isGood_All; // dummy options - always true |
232 |
+ |
bool _muon_isGood_AllGlobalMuons; // checks isGlobalMuon flag |
233 |
+ |
bool _muon_isGood_AllStandAloneMuons; // checks isStandAloneMuon flag |
234 |
+ |
bool _muon_isGood_AllTrackerMuons; // checks isTrackerMuon flag |
235 |
+ |
bool _muon_isGood_TrackerMuonArbitrated; // resolve ambiguity of sharing segments |
236 |
+ |
bool _muon_isGood_AllArbitrated; // all muons with the tracker muon arbitrated |
237 |
+ |
bool _muon_isGood_GlobalMuonPromptTight; // global muons with tighter fit requirements |
238 |
+ |
bool _muon_isGood_TMLastStationLoose; // penetration depth loose selector |
239 |
+ |
bool _muon_isGood_TMLastStationTight; // penetration depth tight selector |
240 |
+ |
bool _muon_isGood_TM2DCompatibilityLoose; // likelihood based loose selector |
241 |
+ |
bool _muon_isGood_TM2DCompatibilityTight; // likelihood based tight selector |
242 |
+ |
bool _muon_isGood_TMOneStationLoose; // require one well matched segment |
243 |
+ |
bool _muon_isGood_TMOneStationTight; // require one well matched segment |
244 |
+ |
bool _muon_isGood_TMLastStationOptimizedLowPtLoose; // combination of TMLastStation and TMOneStation |
245 |
+ |
bool _muon_isGood_TMLastStationOptimizedLowPtTight; // combination of TMLastStation and TMOneStation |
246 |
+ |
//____ branches |
247 |
+ |
TBranch * b_muon_isGood_All; // dummy options - always true |
248 |
+ |
TBranch * b_muon_isGood_AllGlobalMuons; // checks isGlobalMuon flag |
249 |
+ |
TBranch * b_muon_isGood_AllStandAloneMuons; // checks isStandAloneMuon flag |
250 |
+ |
TBranch * b_muon_isGood_AllTrackerMuons; // checks isTrackerMuon flag |
251 |
+ |
TBranch * b_muon_isGood_TrackerMuonArbitrated; // resolve ambiguity of sharing segments |
252 |
+ |
TBranch * b_muon_isGood_AllArbitrated; // all muons with the tracker muon arbitrated |
253 |
+ |
TBranch * b_muon_isGood_GlobalMuonPromptTight; // global muons with tighter fit requirements |
254 |
+ |
TBranch * b_muon_isGood_TMLastStationLoose; // penetration depth loose selector |
255 |
+ |
TBranch * b_muon_isGood_TMLastStationTight; // penetration depth tight selector |
256 |
+ |
TBranch * b_muon_isGood_TM2DCompatibilityLoose; // likelihood based loose selector |
257 |
+ |
TBranch * b_muon_isGood_TM2DCompatibilityTight; // likelihood based tight selector |
258 |
+ |
TBranch * b_muon_isGood_TMOneStationLoose; // require one well matched segment |
259 |
+ |
TBranch * b_muon_isGood_TMOneStationTight; // require one well matched segment |
260 |
+ |
TBranch * b_muon_isGood_TMLastStationOptimizedLowPtLoose; // combination of TMLastStation and TMOneStation |
261 |
+ |
TBranch * b_muon_isGood_TMLastStationOptimizedLowPtTight; // combination of TMLastStation and TMOneStation |
262 |
+ |
//____ output tree variables |
263 |
|
TBranch * b_event; |
264 |
|
TBranch * b_process_id; |
265 |
|
TBranch * b_n_jets; |
272 |
|
TBranch * b_lepton_eta; |
273 |
|
TBranch * b_lepton_phi; |
274 |
|
TBranch * b_lepton_energy; |
275 |
< |
TBranch * b_lepton_track_chi2; |
276 |
< |
TBranch * b_lepton_track_ndof; |
277 |
< |
TBranch * b_lepton_track_nChi2; |
275 |
> |
TBranch * b_muon_track_chi2; |
276 |
> |
TBranch * b_muon_track_ndof; |
277 |
> |
TBranch * b_muon_track_nChi2; |
278 |
> |
TBranch * b_muon_outerTrack_chi2; |
279 |
> |
TBranch * b_muon_outerTrack_ndof; |
280 |
> |
TBranch * b_muon_outerTrack_nChi2; |
281 |
> |
TBranch * b_muon_globalTrack_chi2; |
282 |
> |
TBranch * b_muon_globalTrack_ndof; |
283 |
> |
TBranch * b_muon_globalTrack_nChi2; |
284 |
|
TBranch * b_lepton_track_iso; |
285 |
|
TBranch * b_lepton_calo_iso; |
286 |
|
TBranch * b_lepton_ecal_iso; |
307 |
|
TBranch * b_jet4_eta; |
308 |
|
TBranch * b_jet4_phi; |
309 |
|
TBranch * b_jet4_energy; |
228 |
– |
TBranch * b_lepton_id; |
229 |
– |
TBranch * b_electron_id_robust; |
230 |
– |
TBranch * b_electron_id_loose; |
231 |
– |
TBranch * b_electron_id_tight; |
232 |
– |
TBranch * b_electron_tdrid_medium; |
233 |
– |
TBranch * b_electron_tdrid_loose; |
234 |
– |
TBranch * b_electron_tdrid_tight; |
310 |
|
TBranch * b_n_tagged_jets_trackCounting_loose; |
311 |
|
TBranch * b_n_tagged_jets_trackCounting_medium; |
312 |
|
TBranch * b_n_tagged_jets_trackCounting_tight; |
313 |
|
TBranch * b_n_tagged_jets_jetProb_loose; |
314 |
|
TBranch * b_n_tagged_jets_jetProb_medium; |
315 |
|
TBranch * b_n_tagged_jets_jetProb_tight; |
316 |
< |
|
316 |
> |
// ____ |
317 |
|
TBranch * b_aplanarity ; |
318 |
|
TBranch * b_centrality ; |
319 |
|
TBranch * b_sphericity ; |
335 |
|
TBranch * b_jet1Jet2_Pt ; |
336 |
|
TBranch * b_jet1Jet2W_M ; |
337 |
|
TBranch * b_jet1Jet2W_Pt ; |
263 |
– |
|
338 |
|
TBranch * b_hz ; |
339 |
< |
TBranch * b_HT2 ; |
340 |
< |
TBranch * b_HT2prime ; |
341 |
< |
TBranch * b_W_MT ; |
339 |
> |
TBranch * b_HT2; |
340 |
> |
TBranch * b_HT2prime; |
341 |
> |
TBranch * b_W_MT; |
342 |
|
TBranch * b_W_M ; |
343 |
|
TBranch * b_W_Pt ; |
344 |
|
TBranch * b_DphiJMET ; |
271 |
– |
|
345 |
|
// Ht |
346 |
|
TBranch * b_getHt ; |
347 |
|
TBranch * b_getHtp ; |
365 |
|
TBranch * b_getEta2Sum ; |
366 |
|
TBranch * b_getMwRec ; |
367 |
|
TBranch * b_getH ; |
295 |
– |
|
368 |
|
// event topo |
369 |
|
TBranch * b_getSph ; |
370 |
|
TBranch * b_getApl ; |
371 |
|
TBranch * b_getAplMu ; |
300 |
– |
|
372 |
|
// Kt |
373 |
|
TBranch * b_getKtminp ; |
374 |
|
TBranch * b_getKtminpReduced ; |
375 |
|
TBranch * b_getDrMinJetJet ; |
305 |
– |
|
376 |
|
// mT |
377 |
|
TBranch * b_getDphiMuMet ; |
378 |
|
TBranch * b_getMt ; |
379 |
|
|
380 |
< |
virtual void beginJob(const edm::EventSetup&) ; |
311 |
< |
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
312 |
< |
virtual void endJob() ; |
380 |
> |
|
381 |
|
}; |