ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/NtupleWriter/Objects/Jet.h
(Generate patch)

Comparing UserCode/UHHAnalysis/NtupleWriter/Objects/Jet.h (file contents):
Revision 1.4 by peiffer, Fri Jun 22 09:54:32 2012 UTC vs.
Revision 1.5 by peiffer, Thu Jun 28 16:04:11 2012 UTC

# Line 115 | Line 115 | class Jet : public Particle{
115  
116    bool has_genjet() const{return m_genjet_pt>0;}
117  
118 +  bool pfID(){
119 +    //pf ID has already been applied when using goodPatJets
120 +    if(numberOfDaughters()>1
121 +       && neutralHadronEnergyFraction()<0.99
122 +       && neutralEmEnergyFraction()<0.99){
123 +      
124 +      if(fabs(eta())>=2.4)
125 +        return true;
126 +      
127 +      if(chargedEmEnergyFraction()<0.99
128 +         && chargedHadronEnergyFraction()>0
129 +         && chargedMultiplicity()>0)
130 +        return true;  
131 +    }
132 +    return false;
133 +  }
134 +
135   private:
136    
137    int m_nTracks;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines