#include <EgHLTDQMCut.h>
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_ |
Definition at line 332 of file EgHLTDQMCut.h.
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){}
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);}
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; }
float egHLT::EgJetB2BCut< T >::maxDPhi_ [private] |
Definition at line 336 of file EgHLTDQMCut.h.
float egHLT::EgJetB2BCut< T >::minDPhi_ [private] |
Definition at line 335 of file EgHLTDQMCut.h.
float egHLT::EgJetB2BCut< T >::ptRelDiff_ [private] |
Definition at line 337 of file EgHLTDQMCut.h.