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.15 by khahn, Sun Jun 3 15:51:56 2012 UTC vs.
Revision 1.17 by dkralph, Tue Oct 23 10:21:54 2012 UTC

# Line 15 | Line 15
15   #include "SelectionStatus.h"
16   #include "SimpleLepton.h"
17  
18 + using namespace std;
19 + using namespace mithep;
20 +
21   #define MUON_ISOMVA_CUT_BIN0  -0.615
22   #define MUON_ISOMVA_CUT_BIN1   0.235
23   #define MUON_ISOMVA_CUT_BIN2  -0.825
# Line 164 | Line 167 | Float_t computePFEleIso(const mithep::El
167  
168   SelectionStatus electronIsoSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
169   SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex *, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol   );
167 bool pairwiseIsoSelection( ControlFlags &, vector<SimpleLepton> &, float rho );
170   bool noIso(ControlFlags &, vector<SimpleLepton> &, float rho);
171  
172   void initMuonIsoMVA();
# Line 191 | Line 193 | double muonPFIso04(ControlFlags &ctrl,
193                     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
194                     const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
195                     mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
196 <                   vector<const mithep::Muon*> muonsToVeto,
197 <                   vector<const mithep::Electron*> electronsToVeto);
196 < // hacked version
197 < double muonPFIso04(ControlFlags &ctrl,
198 <                   const mithep::Muon * mu,
199 <                   const mithep::Vertex * vtx,
200 <                   const mithep::Array<mithep::PFCandidate> * fPFCandidates,
201 <                   float rho,  // the hack
202 <                   mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
203 <                   vector<const mithep::Muon*> muonsToVeto,
204 <                   vector<const mithep::Electron*> electronsToVeto);
205 < //
196 >                   vector<const mithep::PFCandidate*> photonsToVeto);
197 >
198   SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl,
199                                            const mithep::Muon * mu,
200                                            const mithep::Vertex * vtx,
201                                            const mithep::Array<mithep::PFCandidate> * fPFCandidates,
202                                            const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
203                                            mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
204 <                                          vector<const mithep::Muon*> muonsToVeto,
213 <                                          vector<const mithep::Electron*> electronsToVeto);
214 < // hacked version
215 < SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl,
216 <                                          const mithep::Muon * mu,
217 <                                          const mithep::Vertex * vtx,
218 <                                          const mithep::Array<mithep::PFCandidate> * fPFCandidates,
219 <                                          float,
220 <                                          mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
221 <                                          vector<const mithep::Muon*> muonsToVeto,
222 <                                          vector<const mithep::Electron*> electronsToVeto);
204 >                                          vector<const mithep::PFCandidate*> photonsToVeto);
205  
206   void initElectronIsoMVA();
207   SelectionStatus electronIsoMVASelection(ControlFlags &ctrl,
# Line 245 | Line 227 | float electronPFIso04(ControlFlags &ctrl
227                        const mithep::Array<mithep::PFCandidate> * fPFCandidates,
228                        const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
229                        mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
230 <                      vector<const mithep::Muon*> muonsToVeto,
231 <                      vector<const mithep::Electron*> electronsToVeto) ;
250 < // hacked version
251 < float electronPFIso04(ControlFlags &ctrl,
252 <                      const mithep::Electron * ele,
253 <                      const mithep::Vertex * vtx,
254 <                      const mithep::Array<mithep::PFCandidate> * fPFCandidates,
255 <                      float rho, // the hack
256 <                      mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
257 <                      vector<const mithep::Muon*> muonsToVeto,
258 <                      vector<const mithep::Electron*> electronsToVeto) ;
259 < //
230 >                      vector<const mithep::PFCandidate*> photonsToVeto);                
231 >
232   SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl,
233                                                const mithep::Electron * ele,
234                                                const mithep::Vertex * vtx,
235                                                const mithep::Array<mithep::PFCandidate> * fPFCandidates,
236                                                const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
237                                                mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
238 <                                              vector<const mithep::Muon*> muonsToVeto,
267 <                                              vector<const mithep::Electron*> electronsToVeto);
268 < // hacked version
269 < SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl,
270 <                                              const mithep::Electron * ele,
271 <                                              const mithep::Vertex * vtx,
272 <                                              const mithep::Array<mithep::PFCandidate> * fPFCandidates,
273 <                                              float,
274 <                                              mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
275 <                                              vector<const mithep::Muon*> muonsToVeto,
276 <                                              vector<const mithep::Electron*> electronsToVeto);
238 >                                              vector<const mithep::PFCandidate*> photonsToVeto);
239  
240   double  dbetaCorrectedIsoDr03(ControlFlags & ctrl,
241                                const mithep::PFCandidate * photon,
# Line 285 | Line 247 | double  dbetaCorrectedIsoDr03(ControlFla
247                                const mithep::Electron * el, // need to veto              
248                                const mithep::Array<mithep::PFCandidate> * fPFCandidates);
249  
250 < double  betaCorrectedIsoDr03(ControlFlags & ctrl,
251 <                             const mithep::PFCandidate * photon,
252 <                             const mithep::Muon * mu, // need to veto          
253 <                             const mithep::Array<mithep::PFCandidate> * fPFCandidates);
254 <
255 < double  betaCorrectedIsoDr03(ControlFlags & ctrl,
256 <                             const mithep::PFCandidate * photon,
257 <                             const mithep::Electron * el, // need to veto              
258 <                             const mithep::Array<mithep::PFCandidate> * fPFCandidates);
250 > double  nonCorrectedIsoDr03(ControlFlags & ctrl,
251 >                            const mithep::PFCandidate * photon,
252 >                            const mithep::Muon * mu, // need to veto            
253 >                            const mithep::Array<mithep::PFCandidate> * fPFCandidates);
254 >
255 > double  nonCorrectedIsoDr03(ControlFlags & ctrl,
256 >                            const mithep::PFCandidate * photon,
257 >                            const mithep::Electron * el, // need to veto                
258 >                            const mithep::Array<mithep::PFCandidate> * fPFCandidates);
259 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines