CMS 3D CMS Logo

CalIsolationAlgoNoExp< T1, C2 > Class Template Reference

#include <PhysicsTools/IsolationUtils/interface/CalIsolationAlgoNoExp.h>

List of all members.

Public Types

typedef double value_type

Public Member Functions

 CalIsolationAlgoNoExp (double dRMin, double dRMax)
 CalIsolationAlgoNoExp ()
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.

00014 : dRMin_( dRMin ), dRMax_( dRMax ) { }

template<typename T1, typename C2>
CalIsolationAlgoNoExp< T1, C2 >::~CalIsolationAlgoNoExp (  )  [inline]

Definition at line 15 of file CalIsolationAlgoNoExp.h.

00015 { } 


Member Function Documentation

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

Definition at line 23 of file CalIsolationAlgoNoExp.h.

References deltaR(), and CalIsolationAlgoNoExp< T1, C2 >::dRMin_.

00023                                                        {
00024   double etSum = 0;
00025   for( typename C2::const_iterator elem = elements.begin(); 
00026        elem != elements.end(); ++elem ) {
00027     double dR = deltaR( elem->eta(), elem->phi(), 
00028                         cand.eta(), cand.phi() );
00029     if ( dR < dRMax_ && dR > dRMin_ ) {
00030       etSum += elem->et();
00031     }
00032   }
00033   return etSum;
00034 }


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()().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:15:42 2009 for CMSSW by  doxygen 1.5.4