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.9 by ceballos, Sat May 12 06:17:43 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 > 50)                                return true; //==> we can raise this
161 >  if(lPt < fJetPtMin)                         return false;
162    
163    int lPtId = 0;
164    if(lPt > 10 && lPt < 20) lPtId = 1;
# Line 184 | Line 183 | Bool_t JetIDMVA::pass(const PFJet *iJet,
183   Bool_t JetIDMVA::pass(const PFJet *iJet,const Vertex *iVertex,const VertexCol *iVertices) {
184    if(!JetTools::passPFLooseId(iJet))                 return false;
185    if(iJet->Pt()        < fJetPtMin) return false;
187  if(iJet->Pt()        > 50)        return true; //==> we can raise this
186    if(fabs(iJet->Eta()) > 4.99)      return false;
187    double lMVA = MVAValue(iJet,iVertex,iVertices);
188    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines