CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

CalIsolationAlgoNoExp< T1, C2 > Class Template Reference

#include <CalIsolationAlgoNoExp.h>

List of all members.

Public Types

typedef double value_type

Public Member Functions

 CalIsolationAlgoNoExp ()
 CalIsolationAlgoNoExp (double dRMin, double dRMax)
double operator() (const T1 &, const C2 &) const
 ~CalIsolationAlgoNoExp ()

Private Attributes

double dRMax_
double dRMin_

Detailed Description

template<typename T1, typename C2>
class CalIsolationAlgoNoExp< T1, C2 >

Definition at line 10 of file CalIsolationAlgoNoExp.h.


Member Typedef Documentation

template<typename T1 , typename C2 >
typedef double CalIsolationAlgoNoExp< T1, C2 >::value_type

Definition at line 12 of file CalIsolationAlgoNoExp.h.


Constructor & Destructor Documentation

template<typename T1 , typename C2 >
CalIsolationAlgoNoExp< T1, C2 >::CalIsolationAlgoNoExp ( )
template<typename T1 , typename C2 >
CalIsolationAlgoNoExp< T1, C2 >::CalIsolationAlgoNoExp ( double  dRMin,
double  dRMax 
) [inline]

Definition at line 14 of file CalIsolationAlgoNoExp.h.

: dRMin_( dRMin ), dRMax_( dRMax ) { }
template<typename T1 , typename C2 >
CalIsolationAlgoNoExp< T1, C2 >::~CalIsolationAlgoNoExp ( ) [inline]

Definition at line 15 of file CalIsolationAlgoNoExp.h.

{ } 

Member Function Documentation

template<typename T1 , typename C2 >
double CalIsolationAlgoNoExp< T1, C2 >::operator() ( const T1 &  cand,
const C2 &  elements 
) const

Definition at line 23 of file CalIsolationAlgoNoExp.h.

References deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, and HTMLExport::elem().

                                                       {
  double etSum = 0;
  for( typename C2::const_iterator elem = elements.begin(); 
       elem != elements.end(); ++elem ) {
    double dR = deltaR( elem->eta(), elem->phi(), 
                        cand.eta(), cand.phi() );
    if ( dR < dRMax_ && dR > dRMin_ ) {
      etSum += elem->et();
    }
  }
  return etSum;
}

Member Data Documentation

template<typename T1 , typename C2 >
double CalIsolationAlgoNoExp< T1, C2 >::dRMax_ [private]

Definition at line 19 of file CalIsolationAlgoNoExp.h.

template<typename T1 , typename C2 >
double CalIsolationAlgoNoExp< T1, C2 >::dRMin_ [private]

Definition at line 19 of file CalIsolationAlgoNoExp.h.