CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::tau::cone::DeltaRFilter< CandType > Class Template Reference

#include <ConeTools.h>

Inheritance diagram for reco::tau::cone::DeltaRFilter< CandType >:
unary_function

List of all members.

Public Member Functions

 DeltaRFilter (const reco::Candidate::LorentzVector &axis, double min, double max)
bool operator() (const CandType &b) const

Private Attributes

reco::Candidate::LorentzVector axis_
const double max_
const double min_

Detailed Description

template<class CandType>
class reco::tau::cone::DeltaRFilter< CandType >

Definition at line 15 of file ConeTools.h.


Constructor & Destructor Documentation

template<class CandType>
reco::tau::cone::DeltaRFilter< CandType >::DeltaRFilter ( const reco::Candidate::LorentzVector axis,
double  min,
double  max 
) [inline]

Definition at line 17 of file ConeTools.h.

                                        : axis_(axis), min_(min), max_(max) {}

Member Function Documentation

template<class CandType>
bool reco::tau::cone::DeltaRFilter< CandType >::operator() ( const CandType &  b) const [inline]

Definition at line 19 of file ConeTools.h.

                                             {
      double deltaR = reco::deltaR<reco::Candidate::LorentzVector>
          (axis_, b.p4());
      return(deltaR >= min_ && deltaR < max_);
    }

Member Data Documentation

template<class CandType>
reco::Candidate::LorentzVector reco::tau::cone::DeltaRFilter< CandType >::axis_ [private]
template<class CandType>
const double reco::tau::cone::DeltaRFilter< CandType >::max_ [private]
template<class CandType>
const double reco::tau::cone::DeltaRFilter< CandType >::min_ [private]