CMS 3D CMS Logo

Public Member Functions | Private Attributes

egHLT::EgJetB2BCut< T > Struct Template Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgJetB2BCut< T >:
egHLT::EgHLTDQMCut< T >

List of all members.

Public Member Functions

EgHLTDQMCut< T > * clone () const
 EgJetB2BCut (float minDPhi=-M_PI, float maxDPhi=M_PI, float ptRelDiff=999)
bool pass (const T &obj, const OffEvt &evt) const

Private Attributes

float maxDPhi_
float minDPhi_
float ptRelDiff_

Detailed Description

template<class T>
struct egHLT::EgJetB2BCut< T >

Definition at line 332 of file EgHLTDQMCut.h.


Constructor & Destructor Documentation

template<class T >
egHLT::EgJetB2BCut< T >::EgJetB2BCut ( float  minDPhi = -M_PI,
float  maxDPhi = M_PI,
float  ptRelDiff = 999 
) [inline]

Definition at line 340 of file EgHLTDQMCut.h.

Referenced by egHLT::EgJetB2BCut< T >::clone().

                                                                           :
      minDPhi_(minDPhi),maxDPhi_(maxDPhi),ptRelDiff_(ptRelDiff){}

Member Function Documentation

template<class T >
EgHLTDQMCut<T>* egHLT::EgJetB2BCut< T >::clone ( void  ) const [inline, virtual]

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 343 of file EgHLTDQMCut.h.

References egHLT::EgJetB2BCut< T >::EgJetB2BCut().

{return new EgJetB2BCut(*this);}
template<class T >
bool egHLT::EgJetB2BCut< T >::pass ( const T obj,
const OffEvt evt 
) const [virtual]

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 348 of file EgHLTDQMCut.h.

References SiPixelRawToDigiRegional_cfi::deltaPhi, reco::deltaR2(), dPhi(), analyzePatCleaning_cfg::jets, and egHLT::OffEvt::jets().

    {
    
      bool b2bJet=false;
      const std::vector<reco::CaloJet>& jets =evt.jets();
      for(size_t jetNr=0;jetNr<jets.size();jetNr++){
        if(reco::deltaR2(obj.eta(),obj.phi(),jets[jetNr].eta(),jets[jetNr].phi())>0.1*0.1){//not in a cone of 0.1 of probe object
          float dPhi = reco::deltaPhi(obj.phi(),jets[jetNr].phi());
          if(dPhi>minDPhi_ && dPhi<maxDPhi_ && fabs(1-jets[jetNr].pt()/obj.pt()) < ptRelDiff_) b2bJet=true;
        }
      }
      return b2bJet;
    
    }

Member Data Documentation

template<class T >
float egHLT::EgJetB2BCut< T >::maxDPhi_ [private]

Definition at line 336 of file EgHLTDQMCut.h.

template<class T >
float egHLT::EgJetB2BCut< T >::minDPhi_ [private]

Definition at line 335 of file EgHLTDQMCut.h.

template<class T >
float egHLT::EgJetB2BCut< T >::ptRelDiff_ [private]

Definition at line 337 of file EgHLTDQMCut.h.