CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Definition at line 14 of file CalIsolationAlgoNoExp.h.

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

Definition at line 15 of file CalIsolationAlgoNoExp.h.

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 deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, and HTMLExport::elem().

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 }
list elements
Definition: asciidump.py:414
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17

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.