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.14 by anlevin, Tue May 22 22:31:17 2012 UTC

# Line 144 | Line 144
144   #define MUON_ISOMVA_LOOSE_FORPFID_CUT_OPT_BIN5  -0.9946
145   #endif
146  
147 < #define ELECTRON_REFERENCE_PFISO_CUT  0.25
148 < #define MUON_REFERENCE_PFISO_CUT      0.25
149 < /* #define ELECTRON_REFERENCE_PFISO_CUT  0.4  */
150 < /* #define MUON_REFERENCE_PFISO_CUT      0.4  */
147 > /* #define ELECTRON_REFERENCE_PFISO_CUT  0.25 */
148 > /* #define MUON_REFERENCE_PFISO_CUT      0.25 */
149 > #define ELECTRON_REFERENCE_PFISO_CUT  0.4  
150 > #define MUON_REFERENCE_PFISO_CUT      0.4  
151  
152   Float_t computePFMuonIso(const mithep::Muon *muon,
153 <                         const mithep::Vertex & vtx,
153 >                         const mithep::Vertex * vtx,
154                           const mithep::Array<mithep::PFCandidate> * fPFCandidates,
155                           const Double_t dRMax);
156  
157   Float_t computePFEleIso(const mithep::Electron *electron,
158 <                        const mithep::Vertex & fVertex,
158 >                        const mithep::Vertex * fVertex,
159                          const mithep::Array<mithep::PFCandidate> * fPFCandidates,
160                          const Double_t dRMax);
161  
162   SelectionStatus electronIsoSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
163 < SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
163 > SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex *, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
164   bool pairwiseIsoSelection( ControlFlags &, vector<SimpleLepton> &, float rho );
165   bool noIso(ControlFlags &, vector<SimpleLepton> &, float rho);
166  
167   void initMuonIsoMVA();
168   SelectionStatus muonIsoMVASelection(ControlFlags &ctrl,
169                                      const mithep::Muon * mu,
170 <                                    const mithep::Vertex & vtx,
170 >                                    const mithep::Vertex * vtx,
171                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
172                                      const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
173                                      mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 176 | Line 176 | SelectionStatus muonIsoMVASelection(Cont
176   //hacked version
177   SelectionStatus muonIsoMVASelection(ControlFlags &ctrl,
178                                      const mithep::Muon * mu,
179 <                                    const mithep::Vertex & vtx,
179 >                                    const mithep::Vertex * vtx,
180                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
181                                      float rho,
182                                      mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 184 | Line 184 | SelectionStatus muonIsoMVASelection(Cont
184                                      vector<const mithep::Electron*> electronsToVeto);
185   double muonPFIso04(ControlFlags &ctrl,
186                     const mithep::Muon * mu,
187 <                   const mithep::Vertex & vtx,
187 >                   const mithep::Vertex * vtx,
188                     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
189                     const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
190                     mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 193 | Line 193 | double muonPFIso04(ControlFlags &ctrl,
193   // hacked version
194   double muonPFIso04(ControlFlags &ctrl,
195                     const mithep::Muon * mu,
196 <                   const mithep::Vertex & vtx,
196 >                   const mithep::Vertex * vtx,
197                     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
198                     float rho,  // the hack
199                     mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 202 | Line 202 | double muonPFIso04(ControlFlags &ctrl,
202   //
203   SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl,
204                                            const mithep::Muon * mu,
205 <                                          const mithep::Vertex & vtx,
205 >                                          const mithep::Vertex * vtx,
206                                            const mithep::Array<mithep::PFCandidate> * fPFCandidates,
207                                            const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
208                                            mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 211 | Line 211 | SelectionStatus muonReferenceIsoSelectio
211   // hacked version
212   SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl,
213                                            const mithep::Muon * mu,
214 <                                          const mithep::Vertex & vtx,
214 >                                          const mithep::Vertex * vtx,
215                                            const mithep::Array<mithep::PFCandidate> * fPFCandidates,
216                                            float,
217                                            mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
# Line 221 | Line 221 | SelectionStatus muonReferenceIsoSelectio
221   void initElectronIsoMVA();
222   SelectionStatus electronIsoMVASelection(ControlFlags &ctrl,
223                                      const mithep::Electron * ele,
224 <                                    const mithep::Vertex & vtx,
224 >                                    const mithep::Vertex * vtx,
225                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
226                                      const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
227                                      mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 230 | Line 230 | SelectionStatus electronIsoMVASelection(
230   //hacked version
231   SelectionStatus electronIsoMVASelection(ControlFlags &ctrl,
232                                      const mithep::Electron * ele,
233 <                                    const mithep::Vertex & vtx,
233 >                                    const mithep::Vertex * vtx,
234                                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
235                                          float rho,
236                                      mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 247 | Line 247 | float electronPFIso04(ControlFlags &ctrl
247   // hacked version
248   float electronPFIso04(ControlFlags &ctrl,
249                        const mithep::Electron * ele,
250 <                      const mithep::Vertex & vtx,
250 >                      const mithep::Vertex * vtx,
251                        const mithep::Array<mithep::PFCandidate> * fPFCandidates,
252                        float rho, // the hack
253                        mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 256 | Line 256 | float electronPFIso04(ControlFlags &ctrl
256   //
257   SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl,
258                                                const mithep::Electron * ele,
259 <                                              const mithep::Vertex & vtx,
259 >                                              const mithep::Vertex * vtx,
260                                                const mithep::Array<mithep::PFCandidate> * fPFCandidates,
261                                                const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
262                                                mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
# Line 265 | Line 265 | SelectionStatus electronReferenceIsoSele
265   // hacked version
266   SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl,
267                                                const mithep::Electron * ele,
268 <                                              const mithep::Vertex & vtx,
268 >                                              const mithep::Vertex * vtx,
269                                                const mithep::Array<mithep::PFCandidate> * fPFCandidates,
270                                                float,
271                                                mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines