ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/src/JetIDMVA.cc
(Generate patch)

Comparing UserCode/MitPhysics/Utils/src/JetIDMVA.cc (file contents):
Revision 1.7 by pharris, Tue May 1 16:53:38 2012 UTC vs.
Revision 1.8 by pharris, Thu May 3 14:01:48 2012 UTC

# Line 15 | Line 15 | using namespace mithep;
15  
16   //--------------------------------------------------------------------------------------------------
17   JetIDMVA::JetIDMVA() :
18 <  fJetPtMin(0)  , //We need to lower this
18 >  fJetPtMin(0.)  , //We need to lower this
19    fDZCut   (0.2),
20    fLowPtMethodName ("JetIDMVALowPt" ),
21    fHighPtMethodName("JetIDMVAHighPt"),
# Line 154 | Line 154 | Bool_t JetIDMVA::pass(const PFJet *iJet,
154                        const PileupEnergyDensityCol *iPileupEnergyDensity) {
155    
156    if(!JetTools::passPFLooseId(iJet))                 return false;
157  if(iJet->Pt() < fJetPtMin)                         return false;
157    if(fabs(iJet->Eta()) > 4.99)                       return false;
158    
159    double lMVA = MVAValue   (iJet,iVertex,iVertices,iJetCorrector,iPileupEnergyDensity);
160    double lPt  = correctedPt(iJet,                  iJetCorrector,iPileupEnergyDensity);
161 +  if(lPt < fJetPtMin)                         return false;
162    if(lPt > 50)                                return true; //==> we can raise this
163    
164    int lPtId = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines