CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
CalIsolationAlgoNoExp< T1, C2 > Class Template Reference

#include <CalIsolationAlgoNoExp.h>

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
template<typename T1 , typename C2 >
CalIsolationAlgoNoExp< T1, C2 >::~CalIsolationAlgoNoExp ( )
inline

Definition at line 15 of file CalIsolationAlgoNoExp.h.

References CalIsolationAlgoNoExp< T1, C2 >::operator()().

15 { }

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 boostedElectronIsolation_cff::deltaR, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, CalIsolationAlgoNoExp< T1, C2 >::dRMin_, and HTMLExport::elem().

Referenced by CalIsolationAlgoNoExp< T1, C2 >::~CalIsolationAlgoNoExp().

23  {
24  double etSum = 0;
25  for( typename C2::const_iterator elem = elements.begin();
26  elem != elements.end(); ++elem ) {
27  double dR = deltaR( elem->eta(), elem->phi(),
28  cand.eta(), cand.phi() );
29  if ( dR < dRMax_ && dR > dRMin_ ) {
30  etSum += elem->et();
31  }
32  }
33  return etSum;
34 }
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19

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.

Referenced by CalIsolationAlgoNoExp< T1, C2 >::operator()().