ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/LeptonSelection/interface/IsolationSelection.h
(Generate patch)

Comparing UserCode/MitHzz4l/LeptonSelection/interface/IsolationSelection.h (file contents):
Revision 1.13 by khahn, Mon May 21 22:30:16 2012 UTC vs.
Revision 1.16 by khahn, Tue Jun 5 19:35:47 2012 UTC

# Line 1 | Line 1
1 + #include "Array.h"
2   #include "Electron.h"
3   #include "Muon.h"
4   #include "Vertex.h"
# Line 5 | Line 6
6   #include "PFCandidateCol.h"
7   #include "PileupEnergyDensity.h"
8  
9 + #include "TLorentzVector.h"
10 +
11   #include "MuonTools.h"
12   #include "ElectronTools.h"
13  
# Line 144 | Line 147
147   #define MUON_ISOMVA_LOOSE_FORPFID_CUT_OPT_BIN5  -0.9946
148   #endif
149  
150 < #define ELECTRON_REFERENCE_PFISO_CUT  0.25
151 < #define MUON_REFERENCE_PFISO_CUT      0.25
152 < /* #define ELECTRON_REFERENCE_PFISO_CUT  0.4  */
153 < /* #define MUON_REFERENCE_PFISO_CUT      0.4  */
150 > /* #define ELECTRON_REFERENCE_PFISO_CUT  0.25 */
151 > /* #define MUON_REFERENCE_PFISO_CUT      0.25 */
152 > #define ELECTRON_REFERENCE_PFISO_CUT  0.4  
153 > #define MUON_REFERENCE_PFISO_CUT      0.4  
154  
155   Float_t computePFMuonIso(const mithep::Muon *muon,
156 <                         const mithep::Vertex & vtx,
156 >                         const mithep::Vertex * vtx,
157                           const mithep::Array<mithep::PFCandidate> * fPFCandidates,
158                           const Double_t dRMax);
159  
160   Float_t computePFEleIso(const mithep::Electron *electron,
161 <                        const mithep::Vertex & fVertex,
161 >                        const mithep::Vertex * fVertex,
162                          const mithep::Array<mithep::PFCandidate> * fPFCandidates,
163                          const Double_t dRMax);
164  
165   SelectionStatus electronIsoSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
166 < SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
166 > SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex *, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
167   bool pairwiseIsoSelection( ControlFlags &, vector<SimpleLepton> &, float rho );
168   bool noIso(ControlFlags &, vector<SimpleLepton> &, float rho);
169  
170   void initMuonIsoMVA();
171   SelectionStatus muonIsoMVASelection(ControlFlags &ctrl,
172                                      const mithep::Muon * mu,
173 <                                    const mithep::Vertex & vtx,
173 >                                    const mithep::Vertex * vtx,
174                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
175                                      const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
176                                      mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 176 | Line 179 | SelectionStatus muonIsoMVASelection(Cont
179   //hacked version
180   SelectionStatus muonIsoMVASelection(ControlFlags &ctrl,
181                                      const mithep::Muon * mu,
182 <                                    const mithep::Vertex & vtx,
182 >                                    const mithep::Vertex * vtx,
183                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
184                                      float rho,
185                                      mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 184 | Line 187 | SelectionStatus muonIsoMVASelection(Cont
187                                      vector<const mithep::Electron*> electronsToVeto);
188   double muonPFIso04(ControlFlags &ctrl,
189                     const mithep::Muon * mu,
190 <                   const mithep::Vertex & vtx,
190 >                   const mithep::Vertex * vtx,
191                     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
192                     const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
193                     mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
194 <                   vector<const mithep::Muon*> muonsToVeto,
195 <                   vector<const mithep::Electron*> electronsToVeto);
194 >                   vector<const mithep::PFCandidate*> photonsToVeto);
195 >
196   // hacked version
197   double muonPFIso04(ControlFlags &ctrl,
198                     const mithep::Muon * mu,
199 <                   const mithep::Vertex & vtx,
199 >                   const mithep::Vertex * vtx,
200                     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
201                     float rho,  // the hack
202                     mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 202 | Line 205 | double muonPFIso04(ControlFlags &ctrl,
205   //
206   SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl,
207                                            const mithep::Muon * mu,
208 <                                          const mithep::Vertex & vtx,
208 >                                          const mithep::Vertex * vtx,
209                                            const mithep::Array<mithep::PFCandidate> * fPFCandidates,
210                                            const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
211                                            mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
212 <                                          vector<const mithep::Muon*> muonsToVeto,
210 <                                          vector<const mithep::Electron*> electronsToVeto);
212 >                                          vector<const mithep::PFCandidate*> photonsToVeto);
213   // hacked version
214   SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl,
215                                            const mithep::Muon * mu,
216 <                                          const mithep::Vertex & vtx,
216 >                                          const mithep::Vertex * vtx,
217                                            const mithep::Array<mithep::PFCandidate> * fPFCandidates,
218                                            float,
219                                            mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 221 | Line 223 | SelectionStatus muonReferenceIsoSelectio
223   void initElectronIsoMVA();
224   SelectionStatus electronIsoMVASelection(ControlFlags &ctrl,
225                                      const mithep::Electron * ele,
226 <                                    const mithep::Vertex & vtx,
226 >                                    const mithep::Vertex * vtx,
227                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
228                                      const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
229                                      mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 230 | Line 232 | SelectionStatus electronIsoMVASelection(
232   //hacked version
233   SelectionStatus electronIsoMVASelection(ControlFlags &ctrl,
234                                      const mithep::Electron * ele,
235 <                                    const mithep::Vertex & vtx,
235 >                                    const mithep::Vertex * vtx,
236                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
237                                          float rho,
238                                      mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 242 | Line 244 | float electronPFIso04(ControlFlags &ctrl
244                        const mithep::Array<mithep::PFCandidate> * fPFCandidates,
245                        const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
246                        mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
247 <                      vector<const mithep::Muon*> muonsToVeto,
248 <                      vector<const mithep::Electron*> electronsToVeto) ;
247 >                      vector<const mithep::PFCandidate*> photonsToVeto);                
248 >
249   // hacked version
250   float electronPFIso04(ControlFlags &ctrl,
251                        const mithep::Electron * ele,
252 <                      const mithep::Vertex & vtx,
252 >                      const mithep::Vertex * vtx,
253                        const mithep::Array<mithep::PFCandidate> * fPFCandidates,
254                        float rho, // the hack
255                        mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 256 | Line 258 | float electronPFIso04(ControlFlags &ctrl
258   //
259   SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl,
260                                                const mithep::Electron * ele,
261 <                                              const mithep::Vertex & vtx,
261 >                                              const mithep::Vertex * vtx,
262                                                const mithep::Array<mithep::PFCandidate> * fPFCandidates,
263                                                const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
264                                                mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
265 <                                              vector<const mithep::Muon*> muonsToVeto,
264 <                                              vector<const mithep::Electron*> electronsToVeto);
265 >                                              vector<const mithep::PFCandidate*> photonsToVeto);
266   // hacked version
267   SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl,
268                                                const mithep::Electron * ele,
269 <                                              const mithep::Vertex & vtx,
269 >                                              const mithep::Vertex * vtx,
270                                                const mithep::Array<mithep::PFCandidate> * fPFCandidates,
271                                                float,
272                                                mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
273                                                vector<const mithep::Muon*> muonsToVeto,
274                                                vector<const mithep::Electron*> electronsToVeto);
275 +
276 + double  dbetaCorrectedIsoDr03(ControlFlags & ctrl,
277 +                              const mithep::PFCandidate * photon,
278 +                              const mithep::Muon * mu, // need to veto          
279 +                              const mithep::Array<mithep::PFCandidate> * fPFCandidates);
280 +
281 + double  dbetaCorrectedIsoDr03(ControlFlags & ctrl,
282 +                              const mithep::PFCandidate * photon,
283 +                              const mithep::Electron * el, // need to veto              
284 +                              const mithep::Array<mithep::PFCandidate> * fPFCandidates);
285 +
286 + double  nonCorrectedIsoDr03(ControlFlags & ctrl,
287 +                            const mithep::PFCandidate * photon,
288 +                            const mithep::Muon * mu, // need to veto            
289 +                            const mithep::Array<mithep::PFCandidate> * fPFCandidates);
290 +
291 + double  nonCorrectedIsoDr03(ControlFlags & ctrl,
292 +                            const mithep::PFCandidate * photon,
293 +                            const mithep::Electron * el, // need to veto                
294 +                            const mithep::Array<mithep::PFCandidate> * fPFCandidates);
295 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines